Initial version of yum module.
This commit is contained in:
parent
c7d064b58e
commit
edf7cd016d
2 changed files with 46 additions and 0 deletions
28
yum/manifests/init.pp
Normal file
28
yum/manifests/init.pp
Normal 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"],
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue