add fileserver configuration for puppet master
This commit is contained in:
parent
089d5a2113
commit
0f7425e0f3
@ -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],
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -63,4 +63,10 @@ class puppetmaster::master (
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
class { "puppetmaster::fileserver_config":
|
||||
notify_service=> "puppetmaster"
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user