This commit is contained in:
Udo Waechter
2013-05-28 17:25:10 +02:00
parent eb58ca1320
commit 6ca8255ef8
4 changed files with 111 additions and 91 deletions

View File

@@ -0,0 +1,21 @@
##########################################################################
# # define puppet::puppetmaster::privatedir
# # $l_fqdn : hostname - lower case letters only
# # $title : hostname - as given in hosts client-cert
##
# # $puppet_privdir (declared in site.pp) must already exist!
define puppet::defines::privatedir ($l_fqdn) {
file { "${::puppet_privdir}/${l_fqdn}":
ensure => directory,
owner => puppet
} # file
# # create link if cert-hostname and DNS-provided fqdn differ
if $title != $l_fqdn {
file { "${::puppet_privdir}/${title}":
ensure => "${::puppet_privdir}/${l_fqdn}",
require => File["${::puppet_privdir}/${l_fqdn}"]
} # file
} # if
} # define puppet::puppetmaster::privatedir