4 'debian-archive-debian-samhain-reports@master.debian.org',
5 'debian-admin@ftbfs.de',
32 'libfilesystem-ruby1.8',
40 if $::lsbmajdistrelease >= 7 {
41 package { 'libfilesystem-ruby1.9.1':
66 if getfromhash($site::nodeinfo, 'broken-rtc') {
67 package { 'fake-hwclock':
73 package { 'molly-guard':
76 file { '/etc/molly-guard/run.d/10-check-kvm':
78 source => 'puppet:///modules/debian-org/molly-guard/10-check-kvm',
79 require => Package['molly-guard'],
81 file { '/etc/molly-guard/run.d/15-acquire-reboot-lock':
83 source => 'puppet:///modules/debian-org/molly-guard/15-acquire-reboot-lock',
84 require => Package['molly-guard'],
87 site::aptrepo { 'security':
88 url => 'http://security.debian.org/',
89 suite => "${::lsbdistcodename}/updates",
90 components => ['main','contrib','non-free']
93 if $::lsbdistcodename != 'wheezy' {
94 site::aptrepo { 'backports.debian.org':
95 url => 'http://backports.debian.org/debian-backports/',
96 suite => "${::lsbdistcodename}-backports",
97 components => ['main','contrib','non-free']
100 if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
101 site::aptrepo { 'volatile':
102 url => getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'),
103 suite => "${::lsbdistcodename}-updates",
104 components => ['main','contrib','non-free']
107 site::aptrepo { 'volatile':
108 url => 'http://ftp.debian.org/debian',
109 suite => "${::lsbdistcodename}-updates",
110 components => ['main','contrib','non-free']
114 site::aptrepo { 'backports.org':
117 key => 'puppet:///modules/debian-org/backports.org.asc',
120 site::aptrepo { 'debian.org':
124 site::aptrepo { 'db.debian.org':
125 url => 'http://db.debian.org/debian-admin',
127 components => 'main',
128 key => 'puppet:///modules/debian-org/db.debian.org.asc',
131 if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
132 site::aptrepo { 'debian':
133 url => getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'),
134 suite => $::lsbdistcodename,
135 components => ['main','contrib','non-free']
139 file { '/etc/facter':
144 source => 'puppet:///files/empty/',
146 file { '/etc/facter/facts.d':
149 file { '/etc/facter/facts.d/debian_facts.yaml':
150 content => template('debian-org/debian_facts.yaml.erb')
152 file { '/etc/apt/preferences':
153 source => 'puppet:///modules/debian-org/apt.preferences',
155 file { '/etc/apt/trusted-keys.d/':
159 file { '/etc/apt/apt.conf.d/local-compression':
160 source => 'puppet:///modules/debian-org/apt.conf.d/local-compression',
162 file { '/etc/apt/apt.conf.d/local-recommends':
163 source => 'puppet:///modules/debian-org/apt.conf.d/local-recommends',
165 file { '/etc/apt/apt.conf.d/local-pdiffs':
166 source => 'puppet:///modules/debian-org/apt.conf.d/local-pdiffs',
168 file { '/etc/timezone':
169 source => 'puppet:///modules/debian-org/timezone',
170 notify => Exec['dpkg-reconfigure tzdata -pcritical -fnoninteractive'],
172 if $::hostname == handel {
173 include puppetmaster::db
174 $dbpassword = $puppetmaster::db::password
176 file { '/etc/puppet/puppet.conf':
177 content => template('debian-org/puppet.conf.erb'),
179 file { '/etc/default/puppet':
180 source => 'puppet:///modules/debian-org/puppet.default',
182 file { '/etc/cron.d/dsa-puppet-stuff':
183 source => 'puppet:///modules/debian-org/dsa-puppet-stuff.cron',
184 require => Package['debian.org'],
186 file { '/etc/ldap/ldap.conf':
187 require => Package['debian.org'],
188 source => 'puppet:///modules/debian-org/ldap.conf',
190 file { '/etc/pam.d/common-session':
191 require => Package['debian.org'],
192 content => template('debian-org/pam.common-session.erb'),
194 file { '/etc/pam.d/common-session-noninteractive':
195 require => Package['debian.org'],
196 content => template('debian-org/pam.common-session-noninteractive.erb'),
198 file { '/etc/rc.local':
200 source => 'puppet:///modules/debian-org/rc.local',
201 notify => Exec['rc.local start'],
207 file { '/etc/dsa/cron.ignore.dsa-puppet-stuff':
208 source => 'puppet:///modules/debian-org/dsa-puppet-stuff.cron.ignore',
209 require => Package['debian.org']
212 # set mmap_min_addr to 4096 to mitigate
213 # Linux NULL-pointer dereference exploits
214 site::sysctl { 'mmap_min_addr':
215 key => 'vm.mmap_min_addr',
218 site::alternative { 'editor':
219 linkto => '/usr/bin/vim.basic',
221 site::alternative { 'view':
222 linkto => '/usr/bin/vim.basic',
224 mailalias { 'samhain-reports':
226 recipient => $debianadmin,
227 require => Package['debian.org']
230 exec { 'apt-get update':
231 path => '/usr/bin:/usr/sbin:/bin:/sbin',
234 Exec['apt-get update']->Package<| tag == extra_repo |>
236 exec { 'dpkg-reconfigure tzdata -pcritical -fnoninteractive':
237 path => '/usr/bin:/usr/sbin:/bin:/sbin',
240 exec { 'puppetmaster restart':
241 path => '/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin',
244 exec { 'rc.local start':
245 path => '/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin',