Initial version of yum module.

This commit is contained in:
Timo Mkinen 2010-10-04 12:36:19 +03:00
parent c7d064b58e
commit edf7cd016d
2 changed files with 46 additions and 0 deletions

View file

@ -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

28
yum/manifests/init.pp Normal file
View file

@ -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"],
}
}