diff --git a/yum/files/yum-updatesd.conf b/yum/files/yum-updatesd.conf new file mode 100644 index 0000000..aba9e3d --- /dev/null +++ b/yum/files/yum-updatesd.conf @@ -0,0 +1,18 @@ +[main] +# how often to check for new updates (in seconds) +run_interval = 3600 +# how often to allow checking on request (in seconds) +updaterefresh = 600 + +# how to send notifications (valid: dbus, email, syslog) +emit_via = syslog +# should we listen via dbus to give out update information/check for +# new updates +dbus_listener = no + +# automatically install updates +do_update = no +# automatically download updates +do_download = yes +# automatically download deps of updates +do_download_deps = yes diff --git a/yum/manifests/init.pp b/yum/manifests/init.pp new file mode 100644 index 0000000..7bf9280 --- /dev/null +++ b/yum/manifests/init.pp @@ -0,0 +1,28 @@ + +# Install yum-updatesd service +# +class yum::updatesd { + + package { "yum-updatesd": + ensure => installed, + } + + file { "/etc/yum/yum-updatesd.conf": + ensure => present, + source => [ "puppet:///files/yum/yum-updatesd.conf.${fqdn}", + "puppet:///files/yum/yum-updatesd.conf", + "puppet:///yum/yum-updatesd.conf", ], + mode => 0644, + owner => root, + group => root, + notify => Service["yum-updatesd"], + } + + service { "yum-updatesd": + ensure => running, + enable => true, + hasstatus => true, + require => Package["yum-updatesd"], + } + +}