X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Fmanifests%2Finit.pp;h=59a3062814acb03aace063bec44b0abf00932ef3;hb=2bd5f8fb83aa8ed85616ec6565bba4a8a595fe1d;hp=b2671bc83e6660f6440c20b798ef099563d76488;hpb=9e4fd63c534d9900cb53011764f3bc4704c6fc8c;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index b2671bc83..59a306281 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -1,3 +1,7 @@ +# == Class: debian-org +# +# Stuff common to all debian.org servers +# class debian-org { if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') { $mirror = getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') @@ -95,22 +99,38 @@ class debian-org { require => Package['molly-guard'], } + file { '/etc/apt/trusted-keys.d': + ensure => absent, + force => true, + } + + file { '/etc/apt/trusted.gpg': + mode => '0600', + content => "", + } + site::aptrepo { 'security': url => 'http://security.debian.org/', suite => "${::lsbdistcodename}/updates", components => ['main','contrib','non-free'] } + if $::lsbmajdistrelease < 7 { + site::aptrepo { 'debian-lts': + url => $mirror, + suite => "${::lsbdistcodename}-lts", + components => ['main','contrib','non-free'] + } + } else { + site::aptrepo { 'debian-lts': + ensure => absent, + } + } site::aptrepo { 'backports.debian.org': url => $mirror_backports, suite => "${::lsbdistcodename}-backports", components => ['main','contrib','non-free'] } - site::aptrepo { 'backports.org': - ensure => absent, - keyid => '16BA136C', - key => 'puppet:///modules/debian-org/backports.org.asc', - } site::aptrepo { 'volatile': url => $mirror, @@ -134,7 +154,7 @@ class debian-org { url => 'http://db.debian.org/debian-admin', suite => 'lenny', components => 'main', - key => 'puppet:///modules/debian-org/db.debian.org.asc', + key => 'puppet:///modules/debian-org/db.debian.org.gpg', } augeas { 'inittab_replicate': @@ -142,9 +162,9 @@ class debian-org { changes => [ 'set ud/runlevels 2345', 'set ud/action respawn', - "set ud/process /usr/bin/ud-replicated", + 'set ud/process "/usr/bin/ud-replicated -d"', ], - notify => Exec['init q'], + notify => Exec['init q'], } if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') { @@ -171,10 +191,6 @@ class debian-org { file { '/etc/apt/preferences': source => 'puppet:///modules/debian-org/apt.preferences', } - file { '/etc/apt/trusted-keys.d/': - ensure => directory, - purge => true, - } file { '/etc/apt/apt.conf.d/local-compression': source => 'puppet:///modules/debian-org/apt.conf.d/local-compression', }