From 03d8db76e86c8660f1b3278abfb6ea0df690266b Mon Sep 17 00:00:00 2001 From: Dennis Wallberg Date: Thu, 26 Sep 2024 11:27:50 +0200 Subject: [PATCH] renamed init class net -> netops and added generic rule for all sunet.se hosts --- global/overlay/etc/puppet/cosmos-rules.yaml | 3 +++ global/overlay/etc/puppet/modules/net/manifests/init.pp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/global/overlay/etc/puppet/cosmos-rules.yaml b/global/overlay/etc/puppet/cosmos-rules.yaml index 6641ef2..6c84f8d 100644 --- a/global/overlay/etc/puppet/cosmos-rules.yaml +++ b/global/overlay/etc/puppet/cosmos-rules.yaml @@ -1,4 +1,7 @@ # Note that the matching is done with re.match() +.*\.sunet\.se$: + netops: + '^ns[0-9]?.mnt.se$': nameserver: diff --git a/global/overlay/etc/puppet/modules/net/manifests/init.pp b/global/overlay/etc/puppet/modules/net/manifests/init.pp index 88354f1..b3304d5 100644 --- a/global/overlay/etc/puppet/modules/net/manifests/init.pp +++ b/global/overlay/etc/puppet/modules/net/manifests/init.pp @@ -1,5 +1,5 @@ # A great class -class net { +class netops { include sunet::tools include sunet::motd