Displaying 1 result from an estimated 1 matches for "use_names".
2007 Sep 24
3
conceptual problem deploying git repos to a puppetmaster
...config files (currently
just yaml)and have nothing specific in modules especially.
So I have this definition: (credit goes to DavidS for the inspiration)
define git::repo ( $owner = "git", $group = "git", $src = "", $dst = "",
$branch = "master", $use_names = '''' ) {
if $name {
include git
if $use_names {
$clonedst = "$dst/${name}"
$clonesrc = "$src/${name}"
} else {
$clonedst = $dst
$clonesrc = $src
}
file { $clonedst:...