diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-12-25 10:53:15 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-12-25 10:53:15 -0200 |
commit | 842467e86e24890d3fb6d4d8d4e2ecdafe1d9d3f (patch) | |
tree | 6f13e0a26ed3c5d45e896d3df7aa07819daa8918 /manifests/unattended_upgrades.pp | |
parent | 1bf9d1addc805e8512cd14e6ef25e7bcd6137b03 (diff) | |
download | puppet-apt-842467e86e24890d3fb6d4d8d4e2ecdafe1d9d3f.tar.gz puppet-apt-842467e86e24890d3fb6d4d8d4e2ecdafe1d9d3f.tar.bz2 |
Add 10periodic config needed by unattended-upgrades on ubuntu
Diffstat (limited to 'manifests/unattended_upgrades.pp')
-rw-r--r-- | manifests/unattended_upgrades.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/unattended_upgrades.pp b/manifests/unattended_upgrades.pp index b90fcbb..1732fe2 100644 --- a/manifests/unattended_upgrades.pp +++ b/manifests/unattended_upgrades.pp @@ -18,4 +18,15 @@ class apt::unattended_upgrades { before => Concatenated_file[apt_config], } } + + if $operatingsystem == 'ubuntu' { + file { '/etc/apt/apt.conf.d/10periodic': + ensure => present, + owner => root, + group => root, + mode => 0644, + source => 'puppet:///modules/apt/10periodic', + require => Package['unattended-upgrades'], + } + } } |