From 268bee680b2d078cf90d758881ed1a9cebc3e9e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Schl=C3=BCter?= Date: Wed, 18 Apr 2018 16:08:38 +0200 Subject: Change regex in node definition to a more optimized expression. --- code/environments/production/manifests/site.pp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'code/environments') diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp index 85043c6..87fd0dd 100644 --- a/code/environments/production/manifests/site.pp +++ b/code/environments/production/manifests/site.pp @@ -208,7 +208,7 @@ node "bibserv.intern" { # Notebooks in den Medienwagen -node /mw.*.intern$/ { +node /^mw.*\.intern$/ { class { 'anacron_on_battery': } class { 'ssh_pubkeys_admins': } class { 'ssh_pubkeys_firedadmins': } @@ -218,7 +218,7 @@ node /mw.*.intern$/ { class { 'itzks_systems_common': } } -node /nbw.*.intern$/ { +node /^nbw.*\.intern$/ { class { 'anacron_on_battery': } class { 'ssh_pubkeys_admins': } class { 'ssh_pubkeys_firedadmins': } @@ -228,7 +228,7 @@ node /nbw.*.intern$/ { class { 'itzks_systems_common': } } -node /net.*.intern$/ { +node /^net.*\.intern$/ { class { 'anacron_on_battery': } class { 'ssh_pubkeys_admins': } class { 'ssh_pubkeys_firedadmins': } @@ -238,7 +238,7 @@ node /net.*.intern$/ { class { 'itzks_systems_common': } } -node /snb.*.intern$/ { +node /^snb.*\.intern$/ { class { 'anacron_on_battery': } class { 'ssh_pubkeys_admins': } class { 'ssh_pubkeys_firedadmins': } @@ -248,7 +248,7 @@ node /snb.*.intern$/ { class { 'itzks_systems_common': } } -node /t410.*.intern$/ { +node /^t410.*\.intern$/ { class { 'anacron_on_battery': } class { 'ssh_pubkeys_admins': } class { 'ssh_pubkeys_firedadmins': } @@ -258,7 +258,7 @@ node /t410.*.intern$/ { class { 'itzks_systems_common': } } -node /t61.*.intern$/ { +node /^t61.*\.intern$/ { class { 'anacron_on_battery': } class { 'ssh_pubkeys_admins': } class { 'ssh_pubkeys_firedadmins': } @@ -268,7 +268,7 @@ node /t61.*.intern$/ { class { 'itzks_systems_common': } } -node /tp.*.intern$/ { +node /^tp.*\.intern$/ { class { 'anacron_on_battery': } class { 'ssh_pubkeys_admins': } class { 'ssh_pubkeys_firedadmins': } -- cgit v1.2.3