diff options
Diffstat (limited to 'manifests/puppetmaster')
-rw-r--r-- | manifests/puppetmaster/centos.pp | 12 | ||||
-rw-r--r-- | manifests/puppetmaster/linux.pp | 14 | ||||
-rw-r--r-- | manifests/puppetmaster/package.pp | 9 |
3 files changed, 35 insertions, 0 deletions
diff --git a/manifests/puppetmaster/centos.pp b/manifests/puppetmaster/centos.pp new file mode 100644 index 0000000..eab652b --- /dev/null +++ b/manifests/puppetmaster/centos.pp @@ -0,0 +1,12 @@ +# manifests/puppetmaster/centos.pp + +class puppet::puppetmaster::centos inherits puppet::puppetmaster::package { + file{'/etc/sysconfig/puppetmaster': + source => [ "puppet://$server/files/puppet/sysconfig/${fqdn}/puppetmaster", + "puppet://$server/files/puppet/sysconfig/${domain}/puppetmaster", + "puppet://$server/files/puppet/sysconfig/puppetmaster", + "puppet://$server/puppet/sysconfig/puppetmaster" ], + notify => Service[puppetmaster], + owner => root, group => 0, mode => 0644; + } +} diff --git a/manifests/puppetmaster/linux.pp b/manifests/puppetmaster/linux.pp new file mode 100644 index 0000000..43cd841 --- /dev/null +++ b/manifests/puppetmaster/linux.pp @@ -0,0 +1,14 @@ +# manifests/puppetmaster/linux.pp + +class puppet::puppetmaster::linux inherits puppet::linux { + + service{'puppetmaster': + ensure => running, + enable => true, + require => [ Package[puppet] ], + } + + Service[puppet]{ + require +> Service[puppetmaster], + } +} diff --git a/manifests/puppetmaster/package.pp b/manifests/puppetmaster/package.pp new file mode 100644 index 0000000..d7c477d --- /dev/null +++ b/manifests/puppetmaster/package.pp @@ -0,0 +1,9 @@ +# manifests/puppetmaster/package.pp + +class puppet::puppetmaster::package inherits puppet::puppetmaster::linux { + package { puppet-server: ensure => present } + + Service[puppetmaster]{ + require +> Package[puppet-server], + } +} |