Do not hardcode debian specifics in staticsync scripts, make them use a conffile
[mirror/dsa-puppet.git] / modules / roles / manifests / static_base.pp
index 95ad7d9..fa756d6 100644 (file)
@@ -38,4 +38,16 @@ class roles::static_base {
                rule        => 'proto tcp mod state state (NEW) mod multiport destination-ports (6881:6999) @subchain \'static-bt\' { saddr ($HOST_STATIC_V6) ACCEPT; }',
                notarule    => true,
        }
+
+       file { "/etc/staticsync.conf":
+               content  => @("EOF"),
+                               # This file is sourced by bash
+                               # and parsed by python
+                               #  - empty lines and lines starting with a # are ignored.
+                               #  - other lines are key=value.  No extra spaces anywhere.  No quoting.
+                               base=/srv/static.debian.org
+                               masterbase=/home/staticsync/static-master/master
+                               staticuser=staticsync
+                               | EOF
+       }
 }