system-config/modules/unattended_upgrades/manifests/init.pp
Monty Taylor fd2f6b4944 Replace use of local apt module with upstream.
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
2012-08-07 07:10:43 +00:00

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',
}
}