linting
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
##########################################################################
|
|
||||||
# # 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
|
|
||||||
Reference in New Issue
Block a user