Closed duritong closed 9 years ago
what is exact advantage over having it specified in site.pp or modules' params.pp, ie.
$trocla_shellsafe = {
keygen => random,
options => {
allowed_chars => "a-zA-Z0-9",
length => 16
}
}
and then using it:
$mypasswd = trocla('foo', 'plain', $trocla_shellsafe)
?
by putting this in some yaml in $confdir we risk that it would slip from version control. while keeping it with puppet code will guarantee it's in vcs, with a little sacrifice in readability, but it depends how clean you write your modules.
ok, i've missed use case, when you use trocla standalone. then it might be useful for a sake of readability (default params could be pass as shell variables but it would be hard to follow, i guess). through i think that a remark about CM capabilities is valid and should be included in docu.
Should be implemented with 3b03947
As mentioned in #14 by @XANi we could define some templates within a config: