diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-05 18:20:22 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-05 18:20:22 +0000 |
commit | 071e4b4544f9936ac09f644921733c35f9903810 (patch) | |
tree | bc00655e130c3b37cb785f6b12ca954f626c831e | |
parent | cbe7124ab586a8ed620c448111b8ae647ded93e9 (diff) | |
download | puppet-071e4b4544f9936ac09f644921733c35f9903810.tar puppet-071e4b4544f9936ac09f644921733c35f9903810.tar.gz puppet-071e4b4544f9936ac09f644921733c35f9903810.tar.bz2 puppet-071e4b4544f9936ac09f644921733c35f9903810.tar.xz puppet-071e4b4544f9936ac09f644921733c35f9903810.zip |
- add puppet module, based on my own setup
-rw-r--r-- | modules/puppet/manifests/init.pp | 34 | ||||
-rw-r--r-- | modules/puppet/templates/puppet.conf | 27 |
2 files changed, 61 insertions, 0 deletions
diff --git a/modules/puppet/manifests/init.pp b/modules/puppet/manifests/init.pp new file mode 100644 index 00000000..2451a10c --- /dev/null +++ b/modules/puppet/manifests/init.pp @@ -0,0 +1,34 @@ + +class puppet { + class client { + package { puppet: + ensure => installed + } + + service { puppet: + ensure => running, + subscribe => [ Package[puppet], File["/etc/puppet/puppet.conf"]] + } + + file { "/etc/puppet/puppet.conf": + ensure => present, + owner => root, + group => root, + mode => 644, + content => template("puppet/puppet.conf"), + require => Package[puppet] + } + } + + class master inherits client { + package { puppet-server: + ensure => installed + } + + service { puppetmaster: + ensure => running, + path => "/etc/init.d/puppetmaster", + subscribe => [ Package[puppet-server], File["/etc/puppet/puppet.conf"]] + } + } +} diff --git a/modules/puppet/templates/puppet.conf b/modules/puppet/templates/puppet.conf new file mode 100644 index 00000000..bb59fa2a --- /dev/null +++ b/modules/puppet/templates/puppet.conf @@ -0,0 +1,27 @@ +[main] + # The Puppet log directory. + # The default value is '$vardir/log'. + logdir = /var/log/puppet + + # Where Puppet PID files are kept. + # The default value is '$vardir/run'. + rundir = /var/run/puppet + + # Where SSL certificates are kept. + # The default value is '$confdir/ssl'. + ssldir = $vardir/ssl + +[puppetd] + server = puppetmaster.<%= domain %> + + # The file in which puppetd stores a list of the classes + # associated with the retrieved configuratiion. Can be loaded in + # the separate ``puppet`` executable using the ``--loadclasses`` + # option. + # The default value is '$confdir/classes.txt'. + classfile = $vardir/classes.txt + + # Where puppetd caches the local configuration. An + # extension indicating the cache format is added automatically. + # The default value is '$confdir/localconfig'. + localconfig = $vardir/localconfig |