From: Peter Palfrader Date: Sat, 8 Dec 2012 17:34:58 +0000 (+0100) Subject: senfl is our first static source X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=914bf742b02962855222dbbda2a1af364689b75c senfl is our first static source --- diff --git a/modules/debian-org/misc/local.yaml b/modules/debian-org/misc/local.yaml index 9dbbe8d4..917a7dad 100644 --- a/modules/debian-org/misc/local.yaml +++ b/modules/debian-org/misc/local.yaml @@ -281,5 +281,7 @@ host_settings: - 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" diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index ede7f9b1..20304d25 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -73,5 +73,7 @@ class roles { if getfromhash($site::nodeinfo, 'static_mirror') { include roles::static_mirror + } elsif getfromhash($site::nodeinfo, 'static_source') { + include roles::static_source } } diff --git a/modules/roles/manifests/static_mirror.pp b/modules/roles/manifests/static_mirror.pp index ca9fea47..bf8d445a 100644 --- a/modules/roles/manifests/static_mirror.pp +++ b/modules/roles/manifests/static_mirror.pp @@ -1,19 +1,10 @@ -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, diff --git a/modules/roles/manifests/static_source.pp b/modules/roles/manifests/static_source.pp new file mode 100644 index 00000000..a3b61034 --- /dev/null +++ b/modules/roles/manifests/static_source.pp @@ -0,0 +1,14 @@ +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: