Switch to collected clients.conf
authorPeter Palfrader <peter@palfrader.org>
Sat, 14 Sep 2019 14:39:34 +0000 (16:39 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 14 Sep 2019 14:39:34 +0000 (16:39 +0200)
modules/staticsync/manifests/static_master.pp
modules/staticsync/templates/static-clients.conf.erb [deleted file]

index 17efe76..716b12c 100644 (file)
@@ -22,16 +22,13 @@ class staticsync::static_master (
     source => 'puppet:///modules/staticsync/static-master-update-component',
     mode   => '0555',
   }
-  file { '/etc/static-clients.conf':
-    content => template('staticsync/static-clients.conf.erb'),
+  concat { '/etc/static-clients.conf':
+    ensure_newline => true,
+    warn           => @(EOF),
+    ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+    | EOF
   }
-#  concat { '/etc/static-clients.conf':
-#    ensure_newline => true,
-#    warn           => @(EOF),
-#    ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-#    | EOF
-#  }
-#  Concat::Fragment <<| tag == 'staticsync::static-mirrors-to-trigger' |>>
+  Concat::Fragment <<| tag == 'staticsync::static-mirrors-to-trigger' |>>
 
   file { "/home/${staticsync::user}/static-master":
     ensure => link,
diff --git a/modules/staticsync/templates/static-clients.conf.erb b/modules/staticsync/templates/static-clients.conf.erb
deleted file mode 100644 (file)
index 6d2cd5b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-##
-
-<%=
-
-# do not include mirrors in static_mirror_nopush
-static_mirror_nopush = scope.lookupvar('deprecated::roles')['static_mirror_nopush']
-
-scope.lookupvar('deprecated::roles')['static_mirror'].reject{ |x| static_mirror_nopush.include?(x) }.join("\n")
-
-# vim:set et:
-# vim:set sts=4 ts=4:
-# vim:set shiftwidth=4:
-%>