ensure => absent,
}
site::aptrepo { 'buildd.debian.org':
- template => 'buildd/etc/apt/sources.list.d/buildd.list.erb',
- key => 'puppet:///modules/buildd/buildd.debian.org.asc',
+ content => template('buildd/etc/apt/sources.list.d/buildd.list.erb'),
+ key => 'puppet:///modules/buildd/buildd.debian.org.asc',
}
file { '/etc/apt/preferences.d/buildd':
if $::debarchitecture != 'armhf' {
site::aptrepo { 'security':
- template => 'debian-org/etc/apt/sources.list.d/security.list.erb',
+ content => template('debian-org/etc/apt/sources.list.d/security.list.erb'),
}
site::aptrepo { 'backports.debian.org':
- template => 'debian-org/etc/apt/sources.list.d/backports.debian.org.list.erb',
+ content => template('debian-org/etc/apt/sources.list.d/backports.debian.org.list.erb'),
}
site::aptrepo { 'volatile':
- template => 'debian-org/etc/apt/sources.list.d/volatile.list.erb',
+ content => template('debian-org/etc/apt/sources.list.d/volatile.list.erb'),
}
}
site::aptrepo { 'backports.org':
}
site::aptrepo { 'db.debian.org':
- template => 'debian-org/etc/apt/sources.list.d/debian.org.list.erb',
- key => 'puppet:///modules/debian-org/db.debian.org.asc',
+ content => template('debian-org/etc/apt/sources.list.d/debian.org.list.erb'),
+ key => 'puppet:///modules/debian-org/db.debian.org.asc',
}
file { '/etc/facter':
class debian-org::proliant {
site::aptrepo { 'debian.restricted':
- template => 'debian-org/etc/apt/sources.list.d/debian.restricted.list.erb',
+ content => template('debian-org/etc/apt/sources.list.d/debian.restricted.list.erb'),
}
package { 'hpacucli':
}
}
}
-
-
}
site::aptrepo { 'debian.restricted':
- template => 'debian-org/etc/apt/sources.list.d/debian.restricted.list.erb',
+ content => template('debian-org/etc/apt/sources.list.d/debian.restricted.list.erb'),
}
}
}
site::aptrepo { 'geoip':
- template => 'debian-org/etc/apt/sources.list.d/geoip.list.erb',
+ content => template('debian-org/etc/apt/sources.list.d/geoip.list.erb'),
}
file { '/etc/bind/':
-define site::aptrepo ($key = undef, $keyid = undef, $template = undef, $config = undef, $ensure = present) {
-
+define site::aptrepo ($key = undef, $keyid = undef, $content = '', $source = '', $ensure = present) {
case $ensure {
present: {
}
if $ensure == present {
- if ! ($config or $template) {
+ if ! ($source or $content) {
fail ( "No configuration found for ${name}" )
}
}
- if $template {
- file { "/etc/apt/sources.list.d/${name}.list":
- ensure => $ensure,
- content => template($template),
- notify => Exec['apt-get update'],
- }
- } else {
- file { "/etc/apt/sources.list.d/${name}.list":
- ensure => $ensure,
- source => $config,
- notify => Exec['apt-get update'],
- }
+ file { "/etc/apt/sources.list.d/${name}.list":
+ ensure => $ensure,
+ content => $content,
+ source => $source,
+ notify => Exec['apt-get update'],
}
}