+# == 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')
require => Package['molly-guard'],
}
+ file { '/etc/apt/trusted-keys.d':
+ ensure => absent,
+ }
+ file { '/etc/apt/trusted.gpg',
+ mode => '0600',
+ content => "",
+ }
site::aptrepo { 'security':
url => 'http://security.debian.org/',
suite => "${::lsbdistcodename}/updates",
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,
key => 'puppet:///modules/debian-org/db.debian.org.asc',
}
+ augeas { 'inittab_replicate':
+ context => '/files/etc/inittab',
+ changes => [
+ 'set ud/runlevels 2345',
+ 'set ud/action respawn',
+ 'set ud/process "/usr/bin/ud-replicated -d"',
+ ],
+ notify => Exec['init q'],
+ }
+
if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
site::aptrepo { 'debian':
url => getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'),
exec { 'apt-get update':
path => '/usr/bin:/usr/sbin:/bin:/sbin',
onlyif => '/usr/local/bin/check_for_updates',
- require => File['/opt/bin/check_for_updates']
+ require => File['/usr/local/bin/check_for_updates']
}
Exec['apt-get update']->Package<| tag == extra_repo |>