5 Commits

Author SHA1 Message Date
Jeremy Stanley
99d0e4d336 Correct unattended upgrades origins assignment
* modules/openstack_project/manifests/automatic_upgrades.pp: Instead
of passing through the origins list from the scope, this was handing
a literal empty list to the unattended_upgrades module instead.
Correct it.

Change-Id: I241575396167451d5b62fba36d2e96808d0d0e27
2013-10-01 18:50:56 +00:00
Jeremy Stanley
a6202f901b Add saltstack APT repository to automatic upgrades
* 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
2013-09-12 17:12:18 +00:00
Dan Prince
705eb50a51 Update automatic_upgrades to support RHEL/Centos.
Updated to use the new packagekit::cron module for RHEL.

This should provide us automatic package upgrades on our Centos
jenkins slaves.

Fixes LP Bug #1180948.

Change-Id: Iaa67a3573e89339a81761314b662041836f2d3f2
Reviewed-on: https://review.openstack.org/29423
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-05-17 17:21:37 +00:00
Jeremy Stanley
3089973311 Use facter's osfamily instead of operatingsystem.
The osfamily fact is more flexible when we want to support more
GNU/Linux distributions while avoiding unnecessary code duplication.

Change-Id: Iea4c73c19e7f94df8daccf25c764b6a4539a1ea0
Reviewed-on: https://review.openstack.org/27400
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-04-25 21:37:03 +00:00
Dan Prince
36aefd0c48 Split out tmp clean and auto upgrades.
Create abstractions for tmpcleanup and automatic_upgrades
which can be used to install/include distro specific
modules modules for these features.

On Ubuntu this will still install unattended_upgrades and tmpreaper.

On RHEL we need to implement similar functionality and modules.

Change-Id: I9209610582e23c86dccb5e70691bb598dad36950
Reviewed-on: https://review.openstack.org/23197
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-03-04 17:58:03 +00:00