owner => root,
group => root,
mode => '0644',
+ notify => Exec['apt-auto-update'],
content => $ensure ? {
'present' => template("nodo/apt/${::operatingsystem}.sources.list.erb"),
default => undef,
$apt = '/usr/bin/apt-get'
$command = "${apt} update ${log} && ${apt} dist-upgrade -y ${log} && ${apt} autoremove -y ${log} && ${apt} clean ${log}"
+ exec { 'nodo-apt-auto-update':
+ command => "${apt} update ${log}",
+ user => "root",
+ refreshonly => true,
+ }
+
cron { 'nodo-apt-auto-upgrade':
ensure => $auto_upgrade,
command => $command,