22 lines
737 B
Plaintext
22 lines
737 B
Plaintext
##########################################################################
|
|
## 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::puppetmaster::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
|