diff options
author | mh <mh@immerda.ch> | 2012-04-15 15:41:58 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-04-15 15:41:58 +0200 |
commit | f1a0eca4662f8c7ec47bfc3d60aa9099c8f9fa77 (patch) | |
tree | 60de0e1fa00d034aab292b400ce4e651f0a12a89 /manifests/cron/dist_upgrade.pp | |
parent | bdc244667161c3fa9140632c535921db61468800 (diff) | |
download | puppet-apt-f1a0eca4662f8c7ec47bfc3d60aa9099c8f9fa77.tar.gz puppet-apt-f1a0eca4662f8c7ec47bfc3d60aa9099c8f9fa77.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.
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] + } + +} |