21dff1ba3d
Change-Id: I4f7314bcb1cb58f94ff7a78aebe27ec4591fc11c Reviewed-on: https://review.openstack.org/14187 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
28 lines
644 B
Puppet
28 lines
644 B
Puppet
class unattended_upgrades($ensure = present) {
|
|
package { 'unattended-upgrades':
|
|
ensure => $ensure,
|
|
}
|
|
|
|
package { 'mailutils':
|
|
ensure => $ensure,
|
|
}
|
|
|
|
file { '/etc/apt/apt.conf.d/10periodic':
|
|
ensure => $ensure,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0444',
|
|
source => 'puppet:///modules/unattended_upgrades/10periodic',
|
|
replace => true,
|
|
}
|
|
|
|
file { '/etc/apt/apt.conf.d/50unattended-upgrades':
|
|
ensure => $ensure,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0444',
|
|
source => 'puppet:///modules/unattended_upgrades/50unattended-upgrades',
|
|
replace => true,
|
|
}
|
|
}
|