- bizet.debian.org
static_mirror:
- klecker.debian.org
+ static_source:
+ - senfl.debian.org
# reservedaddrs:
# ball.debian.org: "0.0.0.0/8 : 127.0.0.0/8 : 169.254.0.0/16 : 172.16.0.0/12 : 192.0.0.0/17 : 192.168.0.0/16 : 224.0.0.0/4 : 240.0.0.0/5 : 248.0.0.0/5"
if getfromhash($site::nodeinfo, 'static_mirror') {
include roles::static_mirror
+ } elsif getfromhash($site::nodeinfo, 'static_source') {
+ include roles::static_source
}
}
-class roles::static_mirror inherits roles::static_base {
+class roles::static_mirror inherits roles::static_source {
file {
- '/etc/ssh/userkeys/staticsync':
- content => template('roles/static-mirror-authorized_keys.erb'),
- ;
'/usr/local/bin/static-mirror-run':
source => "puppet:///modules/roles/static-mirroring/static-mirror-run",
mode => 555,
;
- '/usr/local/bin/static-mirror-ssh-wrap':
- source => "puppet:///modules/roles/static-mirroring/static-mirror-ssh-wrap",
- mode => 555,
- ;
- }
- file {
"/srv/static.debian.org":
ensure => directory,
owner => staticsync,
--- /dev/null
+class roles::static_source inherits roles::static_base {
+ file {
+ '/etc/ssh/userkeys/staticsync':
+ content => template('roles/static-mirror-authorized_keys.erb'),
+ ;
+ '/usr/local/bin/static-mirror-ssh-wrap':
+ source => "puppet:///modules/roles/static-mirroring/static-mirror-ssh-wrap",
+ mode => 555,
+ ;
+ }
+}
+# vim:set et:
+# vim:set sts=4 ts=4:
+# vim:set shiftwidth=4: