add fileserver configuration for puppet master

This commit is contained in:
Vladimir Kuklin 2013-08-05 13:42:19 +04:00
parent 089d5a2113
commit 0f7425e0f3
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,24 @@
class puppetmaster::fileserver_config(
$puppet_confdir = '/etc/puppet',
$folders = [{
section=>'ssh_keys',
path=>'/var/lib/puppet/ssh_keys',
allow=>'*',
deny => undef,
},],
$notify_service = "thin"
){
if (! defined(Service[$notify_service])) {
service {$notify_service:}
}
file {'/var/lib/puppet/ssh_keys': ensure=>directory, owner=>puppet, group=>puppet} ->
file { "${puppet_confdir}/fileserver.conf":
content => template("puppet/fileserver.conf.erb"),
notify => Service[$notify_service],
}
}

View File

@ -63,4 +63,10 @@ class puppetmaster::master (
],
}
class { "puppetmaster::fileserver_config":
notify_service=> "puppetmaster"
}
}