diff options
author | mh <mh@immerda.ch> | 2012-04-15 15:41:58 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2012-06-08 15:07:48 +0200 |
commit | 0cb3cd816e37a81ffc89e68b774d34930c5acc36 (patch) | |
tree | 95f513d402bdf5f3a8b0822e83eb02744e0873f7 /manifests/cron/dist_upgrade.pp | |
parent | 1af58e700e2e5c60a3f187b4a41d40755101f4f4 (diff) | |
download | puppet-apt-0cb3cd816e37a81ffc89e68b774d34930c5acc36.tar.gz puppet-apt-0cb3cd816e37a81ffc89e68b774d34930c5acc36.tar.bz2 |
Migrate - in class names to _
In newer puppet releases the old way to name class/modules with a -,
won't anymore be supported.
Conflicts:
manifests/unattended_upgrades.pp
Diffstat (limited to 'manifests/cron/dist_upgrade.pp')
-rw-r--r-- | manifests/cron/dist_upgrade.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/cron/dist_upgrade.pp b/manifests/cron/dist_upgrade.pp new file mode 100644 index 0000000..1c8adb1 --- /dev/null +++ b/manifests/cron/dist_upgrade.pp @@ -0,0 +1,23 @@ +class apt::cron::dist_upgrade inherits apt::cron::base { + + $action = "autoclean -y +dist-upgrade -y -o APT::Get::Show-Upgraded=true -o 'DPkg::Options::=--force-confold' +" + + file { "/etc/cron-apt/action.d/3-download": + ensure => absent, + } + + package { "apt-listbugs": ensure => absent } + + config_file { "/etc/cron-apt/action.d/4-dist-upgrade": + content => $action, + require => Package[cron-apt] + } + + config_file { "/etc/cron-apt/config.d/MAILON": + content => "MAILON=upgrade\n", + require => Package[cron-apt] + } + +} |