Install longhorn helm chart

This commit is contained in:
Daniel Flanagan 2022-02-08 16:38:17 -06:00
parent 7cdae2ac30
commit 284d72727d
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
4 changed files with 26 additions and 19 deletions

View File

@ -7,17 +7,17 @@
vars:
aur_helper_pkg: paru-bin
# common
- include_tasks: ./use-firewalld-with-iptables.yml
# - name: open http and https ports in firewalld
# ansible.builtin.command: >
# sudo firewall-cmd --add-port=443/tcp --permanent \
# && sudo firewall-cmd --add-port=80/tcp --permanent \
# && sudo firewall-cmd --reload
- include_tasks: ./upgrade-all-packages.yml
vars:
aur_helper_command: paru
# _todo: net.ipv4.ip_forward = 1
# TODO: is per-node host-level time sync necessary?
- name: install necessary utilities for longhorn
when: ansible_facts.os_family == 'Archlinux'
community.general.pacman:
executable: 'paru'
name:
- nfs-utils
- open-iscsi
state: present

View File

@ -1,9 +0,0 @@
#- name: uninstall nftables, install firewalld, configure it to use iptables, and activate it
# when: ansible_facts.os_family == 'Archlinux'
# become: true
# ansible.builtin.command: >
# pacman -Rs nftables \
# && pacman -Sy firewalld \
# && sed -i 's/FirewallBackend=.*/FirewallBackend=iptables/g' /etc/firewalld/firewalld.conf \
# && systemctl enable firewalld \
# && systemctl restart firewalld

View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: longhorn-system
labels:
name: longhorn-system

View File

@ -0,0 +1,10 @@
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
name: longhorn
namespace: longhorn-system
spec:
chart:
repository: https://charts.longhorn.io/longhorn
name: podinfo
version: 1.2.3