diff --git a/home_linux/config_files/nextcloud-pv.yml b/home_linux/config_files/nextcloud-pv.yml deleted file mode 100644 index 0914d64..0000000 --- a/home_linux/config_files/nextcloud-pv.yml +++ /dev/null @@ -1,18 +0,0 @@ -## nextcloud.persistentvolume.yml ---- -apiVersion: v1 -kind: PersistentVolume -metadata: - name: "nextcloud-seagate" - labels: - type: "local" -spec: - storageClassName: "manual" - capacity: - storage: "50Gi" - accessModes: - - ReadWriteOnce - hostPath: - path: "/mnt/seagate/_NEXTCLOUD" ---- - diff --git a/home_linux/config_files/nextcloud-pvc.yml b/home_linux/config_files/nextcloud-pvc.yml deleted file mode 100644 index 2e8a053..0000000 --- a/home_linux/config_files/nextcloud-pvc.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - namespace: "nextcloud" - name: "nextcloud-seagate" -spec: - storageClassName: "manual" - accessModes: - - ReadWriteOnce - resources: - requests: - storage: "50Gi" ---- - diff --git a/home_linux/home_inventory.yml b/home_linux/home_inventory.yml index 99d79ef..6c70921 100644 --- a/home_linux/home_inventory.yml +++ b/home_linux/home_inventory.yml @@ -5,6 +5,7 @@ all: 192.168.0.51: 192.168.0.52: 192.168.0.53: + 192.168.0.54: kube_masters: hosts: 192.168.0.51: @@ -12,12 +13,14 @@ all: hosts: 192.168.0.52: 192.168.0.53: + 192.168.0.54: docker: hosts: 192.168.0.50: zero: hosts: - 192.168.0.54: + 192.168.0.49: 192.168.0.55: - vars: - ansible_ssh_private_key_file = /home/vraducanu/.ssh/id_rsa + 192.168.0.48: +vars: + ansible_ssh_private_key_file = /home/vraducanu/.ssh/id_rsa diff --git a/home_linux/reboot.yml b/home_linux/reboot.yml index ee828a5..6c90321 100644 --- a/home_linux/reboot.yml +++ b/home_linux/reboot.yml @@ -1,6 +1,6 @@ --- - name: Reboot the Raspberries - hosts: all + hosts: kubernetes gather_facts: no roles: - common diff --git a/home_linux/set_hosts_file_for_k3s.yml b/home_linux/set_hosts_file_for_k3s.yml new file mode 100644 index 0000000..3207a0d --- /dev/null +++ b/home_linux/set_hosts_file_for_k3s.yml @@ -0,0 +1,14 @@ +--- +- name: Update hosts files on k3s nodes + hosts: kubernetes + roles: + - common + become: yes + gather_facts: no + + tasks: + + - name: Replace the local A records for local services in k3s + ansible.builtin.lineinfile: + path: /etc/hosts + line: 192.168.0.56 services.ze.internet.local diff --git a/home_linux/shutdown.yml b/home_linux/shutdown.yml index 01df0f5..29ee091 100644 --- a/home_linux/shutdown.yml +++ b/home_linux/shutdown.yml @@ -1,6 +1,6 @@ --- - name: Shutdown the Raspberries - hosts: all + hosts: kubernetes gather_facts: no roles: - common