Answer the question
In order to leave comments, you need to log in
Puppet how to apply multiple settings in one command?
There is an array:
$setting = [
'HomeDirTemplate %H/%D/%U',
'AssumeDefaultDomain true',]
How to correctly set it in exec so that the following commands are eventually executed:
/opt/pbis/bin/config HomeDirTemplate %H /%D/%U
/opt/pbis/bin/config AssumeDefaultDomain true
Answer the question
In order to leave comments, you need to log in
You can do this, for example (did not check, but a similar picture works with nfs mount for me):
define my_exec () {
exec { "config_${name}":
command => "/opt/pbis/bin/config ${name}";
}
}
my_exec { ['HomeDirTemplate %H/%D/%U', 'AssumeDefaultDomain true']: }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question