move things from modules/roles/static* to modules/static*
[mirror/dsa-puppet.git] / modules / staticsync / templates / static-clients.conf.erb
diff --git a/modules/staticsync/templates/static-clients.conf.erb b/modules/staticsync/templates/static-clients.conf.erb
new file mode 100644 (file)
index 0000000..6d2cd5b
--- /dev/null
@@ -0,0 +1,15 @@
+##
+## 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:
+%>