From 3eff096c7203985c7559d74895094eebd8204bfb Mon Sep 17 00:00:00 2001 From: Maria Haider Date: Thu, 30 Jan 2025 17:17:01 +0100 Subject: [PATCH] fixed autoupdate for net-ops --- global/overlay/etc/puppet/cosmos-rules.yaml | 1 + global/overlay/etc/puppet/manifests/cosmos-site.pp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/global/overlay/etc/puppet/cosmos-rules.yaml b/global/overlay/etc/puppet/cosmos-rules.yaml index f18d6f2..76887cc 100644 --- a/global/overlay/etc/puppet/cosmos-rules.yaml +++ b/global/overlay/etc/puppet/cosmos-rules.yaml @@ -130,6 +130,7 @@ nifrontend-sto1-prod-1.sunet.se: '^zoomproxy+\S+-[1-3]\.sunet\.se': sunet::dockerhost2: + autoupdate: net::zoom_metadata: filename: /etc/satosa/metadata/zoom.xml url: https://sunet.zoom.us/saml/metadata/sp diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index fa5de03..5bb40bc 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -54,3 +54,8 @@ node default { class infra_ca_rp { sunet::ici_ca::rp { 'infra': } } + +# enable automatic updates, and automatic reboots +class autoupdate { + class { 'sunet::updater': cron => true, cosmos_automatic_reboot => true } +}