From 4a24cc997ebbab3bd1e239a533e7beba0e724976 Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" <ardumont@softwareheritage.org> Date: Fri, 26 Jan 2024 16:30:33 +0100 Subject: [PATCH] production: Give banco rancher node abilities Refs. swh/infra/sysadm-environment#5226 --- data/hostname/banco.softwareheritage.org.yaml | 10 ++++++++++ manifests/site.pp | 3 +-- .../role/manifests/objstorage_rancher_node.pp | 16 ++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 site-modules/role/manifests/objstorage_rancher_node.pp diff --git a/data/hostname/banco.softwareheritage.org.yaml b/data/hostname/banco.softwareheritage.org.yaml index 5d99cea25..c0db6a26c 100644 --- a/data/hostname/banco.softwareheritage.org.yaml +++ b/data/hostname/banco.softwareheritage.org.yaml @@ -5,6 +5,12 @@ smtp::mynetworks: - 192.168.128.0/24 # storage array, for notification emails - 192.168.129.0/24 # storage array, for notification emails +# local cache is not compatible with rancher +dns::local_cache: false +dns::nameservers: + - 192.168.100.29 + - 192.168.200.22 + smtp::mail_aliases: - user: barman aliases: @@ -86,3 +92,7 @@ icinga2::host::vars: disk /srv/storage/f: disk_wfree: '6%' disk_cfree: '3%' + +zfs::common::zpool_configuration: + disk: + - scsi-SDELL_PERC_H730_Mini_003b2814132815c21d00aa6038708741-part3 diff --git a/manifests/site.pp b/manifests/site.pp index 0114fa6cd..e18fb5cf2 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -42,8 +42,7 @@ node /^(belvedere|somerset|massmoca|albertina).(internal.)?softwareheritage.org$ } node 'banco.softwareheritage.org' { - include role::swh_backup - include role::postgresql_backup + include role::objstorage_rancher_node } node /^esnode\d+.(internal.)?softwareheritage.org$/ { diff --git a/site-modules/role/manifests/objstorage_rancher_node.pp b/site-modules/role/manifests/objstorage_rancher_node.pp new file mode 100644 index 000000000..7470639f0 --- /dev/null +++ b/site-modules/role/manifests/objstorage_rancher_node.pp @@ -0,0 +1,16 @@ +class role::objstorage_rancher_node inherits role::swh_server { + # role::backup + include profile::swh::deploy::objstorage + include profile::swh::deploy::objstorage_ceph + include profile::megacli + include profile::borg::repository_server + + # role::postgresql_backup + include profile::postgresql::backup + + # role::rancher_node + include profile::zfs::kubelet + include profile::zfs::rancher + include profile::mountpoints + include profile::kubernetes +} -- GitLab