From 618384cf08340b34a4eaf1022d200c1acb8161f4 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Wed, 19 Jan 2011 20:09:16 -0500 Subject: Support puppet client for FreeBSD Some pieces of the puzzle are missing for being able to manage puppet in FreeBSD. * Add a default puppet client config template for FreeBSD * In FreeBSD, puppet.conf is not in /etc/puppet/ so let's provide a value for this variable in init.pp. * The rc script for starting and stopping puppet is not located in /etc/rc.d so let's signify this to Service[puppet] Signed-off-by: Gabriel Filion --- files/client/puppet.conf.FreeBSD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 files/client/puppet.conf.FreeBSD (limited to 'files') diff --git a/files/client/puppet.conf.FreeBSD b/files/client/puppet.conf.FreeBSD new file mode 100644 index 0000000..cd8bd2a --- /dev/null +++ b/files/client/puppet.conf.FreeBSD @@ -0,0 +1,26 @@ +[main] + logdir=/var/log/puppet + vardir=/var/puppet + rundir=/var/run/puppet + + ssldir=/usr/local/etc/puppet/ssl + + # Where 3rd party plugins and modules are installed + libdir = $vardir/lib + + templatedir=$vardir/templates + + # Turn plug-in synchronization on. + pluginsync = true + pluginsource = puppet://$server/plugins + factpath = $vardir/lib/facter + +[puppetd] + report=true + server=server.example.com + + # different run-interval, default= 30min + # e.g. run puppetd every 4 hours = 14400 + # runinterval = 14400 + + logdest=$logdir/puppet.log -- cgit v1.2.3 From 56528806115735c1717408989d6d39049574333b Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Tue, 23 Aug 2011 16:30:36 -0400 Subject: Fix ssldir value for FreeBSD config The default ssl directory in FreeBSD is /var/puppet/ssl, not /usr/local/etc/puppet/ssl With the previous value, puppet would refuse to run starting from the second run, stating that the certificates do not match. Signed-off-by: Gabriel Filion --- files/client/puppet.conf.FreeBSD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files') diff --git a/files/client/puppet.conf.FreeBSD b/files/client/puppet.conf.FreeBSD index cd8bd2a..71bcf77 100644 --- a/files/client/puppet.conf.FreeBSD +++ b/files/client/puppet.conf.FreeBSD @@ -3,7 +3,7 @@ vardir=/var/puppet rundir=/var/run/puppet - ssldir=/usr/local/etc/puppet/ssl + ssldir=/var/puppet/ssl # Where 3rd party plugins and modules are installed libdir = $vardir/lib -- cgit v1.2.3