fd2f6b4944
Change-Id: Idcf8af9712f8d10b50cfffc0aa74f7caa1a24c77 Reviewed-on: https://review.openstack.org/10833 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
29 lines
627 B
Puppet
29 lines
627 B
Puppet
class unattended_upgrades($ensure = present) {
|
|
package { 'unattended-upgrades':
|
|
ensure => $ensure;
|
|
}
|
|
|
|
package { 'mailutils':
|
|
ensure => $ensure;
|
|
}
|
|
|
|
file { '/etc/apt/apt.conf.d/10periodic':
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => 444,
|
|
ensure => $ensure,
|
|
source => "puppet:///modules/unattended_upgrades/10periodic",
|
|
replace => 'true',
|
|
}
|
|
|
|
file { '/etc/apt/apt.conf.d/50unattended-upgrades':
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => 444,
|
|
ensure => $ensure,
|
|
source => "puppet:///modules/unattended_upgrades/50unattended-upgrades",
|
|
replace => 'true',
|
|
}
|
|
|
|
}
|