From f7c43dece0ae8dbd383267a717161abd9dae3c97 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sat, 27 Jan 2024 09:24:41 -0600 Subject: [PATCH] Update rook nodes. --- ansible/main/inventory/hosts.yaml | 8 +++++--- ansible/main/playbooks/cluster-installation.yaml | 4 ++-- ansible/main/playbooks/cluster-prepare.yaml | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ansible/main/inventory/hosts.yaml b/ansible/main/inventory/hosts.yaml index 1c7f29d..74d9c2c 100644 --- a/ansible/main/inventory/hosts.yaml +++ b/ansible/main/inventory/hosts.yaml @@ -16,14 +16,16 @@ kubernetes: hosts: nenya: ansible_host: 10.1.1.41 + ceph_drives: + - /dev/disk/by-id/nvme-PC300_NVMe_SK_hynix_256GB_EJ75N587410705M4U vilya: ansible_host: 10.1.1.42 ceph_drives: - - /dev/disk/by-id/nvme-PC300_NVMe_SK_hynix_256GB_EJ75N587410705M4U - gollum: + - /dev/disk/by-id/nvme-PC300_NVMe_SK_hynix_256GB_EJ75N587411205N58 + elrond: ansible_host: 10.1.1.43 ceph_drives: - - /dev/disk/by-id/nvme-Samsung_SSD_960_EVO_250GB_S3ESNX0K308457X + - /dev/vdb narya: ansible_host: 10.1.1.44 ceph_drives: diff --git a/ansible/main/playbooks/cluster-installation.yaml b/ansible/main/playbooks/cluster-installation.yaml index d5b2919..965f39b 100644 --- a/ansible/main/playbooks/cluster-installation.yaml +++ b/ansible/main/playbooks/cluster-installation.yaml @@ -80,7 +80,7 @@ # TODO: Replace this with embedded spegel in the future - name: Copy custom containerd configuration - when: inventory_hostname != 'nenya' + when: inventory_hostname != 'temp' notify: Restart Kubernetes ansible.builtin.copy: src: files/config.toml.tmpl @@ -90,7 +90,7 @@ mode: "0644" - name: Copy custom containerd configuration - when: inventory_hostname == 'nenya' + when: inventory_hostname == 'temp' notify: Restart Kubernetes ansible.builtin.copy: src: files/config.nvidia.toml.tmpl diff --git a/ansible/main/playbooks/cluster-prepare.yaml b/ansible/main/playbooks/cluster-prepare.yaml index b993446..1992537 100644 --- a/ansible/main/playbooks/cluster-prepare.yaml +++ b/ansible/main/playbooks/cluster-prepare.yaml @@ -23,7 +23,7 @@ filename: non-free update_cache: true - name: Packages | Install Intel common packages - when: inventory_hostname == 'orome' + when: inventory_hostname != 'elrond' ansible.builtin.apt: name: vim,i965-va-driver-shaders,apt-transport-https,ca-certificates,conntrack,curl,dirmngr,gdisk, gnupg,hdparm,htop,btop,intel-gpu-tools,intel-media-va-driver-non-free,iperf3,iptables,iputils-ping,ipvsadm, @@ -32,7 +32,7 @@ unzip,util-linux install_recommends: false - name: Packages | Install AMD common packages - when: inventory_hostname != 'orome' + when: inventory_hostname == 'elrond' ansible.builtin.apt: name: vim,apt-transport-https,ca-certificates,conntrack,curl,dirmngr,gdisk, gnupg,hdparm,htop,btop,iperf3,iptables,iputils-ping,ipvsadm, @@ -103,7 +103,7 @@ dest: "/etc/modules-load.d/{{ item }}.conf" mode: "0644" content: "{{ item }}" - loop: ["br_netfilter", "ceph", "ip_vs", "ip_vs_rr", "nbd", "overlay", "rbd", "tcp_bbr"] + loop: ["br_netfilter", "ceph", "ip_vs", "ip_vs_rr", "overlay", "rbd", "tcp_bbr"] register: modules_status - name: System Configuration | Reload Kernel modules # noqa: no-changed-when no-handler when: modules_status.changed