From 42a3a74b7b5ec71ba2a1fb21458c3ee6f0ee8508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Fri, 19 Nov 2010 13:31:46 +0200 Subject: [PATCH] Added support for custom templates in /srv/puppet/templates directory. --- puppet/manifests/init.pp | 3 ++- puppet/templates/puppetmaster.conf.erb | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/puppet/manifests/init.pp b/puppet/manifests/init.pp index aa4a120..0943200 100644 --- a/puppet/manifests/init.pp +++ b/puppet/manifests/init.pp @@ -257,7 +257,8 @@ class puppet::server inherits puppet::client { Package["puppetmaster"], ], before => Service["puppetmaster"], } - file { "/srv/puppet/files": + file { [ "/srv/puppet/files", + "/srv/puppet/templates" ]: ensure => directory, mode => 0755, owner => root, diff --git a/puppet/templates/puppetmaster.conf.erb b/puppet/templates/puppetmaster.conf.erb index 8e3616e..226e4f8 100644 --- a/puppet/templates/puppetmaster.conf.erb +++ b/puppet/templates/puppetmaster.conf.erb @@ -12,6 +12,9 @@ # Server bucket store. bucketdir = /srv/puppet/bucket + # Put custom templates under datadirectory + templatedir = /srv/puppet/templates + <% if puppet_storeconfigs != 'none' -%> # Use storeconfigs storeconfigs = true