a6202f901b
* modules/openstack_project/manifests/automatic_upgrades.pp: Pass the additional allowed origins list through to the unattended upgrades module. * modules/openstack_project/manifests/slave.pp: Add the "LP-PPA-saltstack-salt precise" repository origin to the list of allowed origins for automatic upgrades. * modules/unattended_upgrades/manifests/init.pp: Add a list of additional allowed origins for package repository upgrades and convert the apt-preferences stub for 50unattended-upgrades to a template so the list can be applied to it. * modules/unattended_upgrades/templates/50unattended-upgrades.erb: Renamed from ../../files/50unattended-upgrades and enhanced with a loop over the origins list to append to the default set of allowed upgrade origins. Change-Id: I821d199ae1a00ed78c2a52bf80ddba8a4eaa7d8b
33 lines
695 B
Puppet
33 lines
695 B
Puppet
# == Class: unattended_upgrades
|
|
#
|
|
class unattended_upgrades(
|
|
$ensure = present,
|
|
$origins = []
|
|
) {
|
|
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',
|
|
content => template('unattended_upgrades/50unattended-upgrades.erb'),
|
|
replace => true,
|
|
}
|
|
}
|