# sigh, sort this mess out, kids
if $::lsbdistcodename in [lenny,squeeze] {
- package { 'schroot': ensure => installed }
+ package { 'schroot':
+ ensure => installed,
+ require => [
+ File['/etc/apt/sources.list.d/db.debian.org.list'],
+ Exec['apt-get update']
+ ]
+ }
} else {
package { 'schroot': ensure => held }
}
+ package { 'apt-transport-https':
+ ensure => installed,
+ }
package { [
'sbuild',
- 'apt-transport-https',
'debootstrap',
'dupload'
]:
- ensure => installed
+ ensure => installed,
+ require => [
+ File['/etc/apt/sources.list.d/db.debian.org.list'],
+ Exec['apt-get update']
+ ]
}
site::linux_module { 'dm_snapshot': }
'sysklogd',
'rsyslog',
]:
- ensure => purged,
+ ensure => purged,
+ }
+ package { [
+ 'debian.org',
+ 'dsa-munin-plugins',
+ ]:
+ ensure => installed,
+ require => [
+ File['/etc/apt/sources.list.d/db.debian.org.list'],
+ Exec['apt-get update']
+ ]
}
package { [
'apt-utils',
'bash-completion',
- 'debian.org',
'dnsutils',
- 'dsa-munin-plugins',
'less',
'lsb-release',
'libfilesystem-ruby1.8',
'nload',
'pciutils',
]:
- ensure => installed,
+ ensure => installed,
}
munin::check { [
if getfromhash($site::nodeinfo, 'broken-rtc') {
package { 'fake-hwclock':
- ensure => installed
+ ensure => installed,
+ require => [
+ File['/etc/apt/sources.list.d/db.debian.org.list'],
+ Exec['apt-get update']
+ ]
}
}
}
package { 'hpacucli':
- ensure => installed,
+ ensure => installed,
+ require => [
+ File['/etc/apt/sources.list.d/debian.restricted.list'],
+ Exec['apt-get update']
+ ]
}
package { 'hp-health':
ensure => installed,
+ require => [
+ File['/etc/apt/sources.list.d/debian.restricted.list'],
+ Exec['apt-get update']
+ ]
}
package { 'arrayprobe':
ensure => installed,
}
}
}
-
-
class megactl {
package { 'megactl':
- ensure => installed
+ ensure => installed,
+ require => [
+ File['/etc/apt/sources.list.d/debian.restricted.list'],
+ Exec['apt-get update']
+ ]
}
site::aptrepo { 'debian.restricted':
ensure => purged
}
package { 'dsa-nagios-checks':
- ensure => installed
+ ensure => installed,
+ require => [
+ File['/etc/apt/sources.list.d/db.debian.org.list'],
+ Exec['apt-get update']
+ ]
}
service { 'nagios-nrpe-server':