C
C
cosm1c2015-06-03 10:48:06
Puppet
cosm1c, 2015-06-03 10:48:06

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

1 answer(s)
O
Oleg Kleshchuk, 2015-09-04
@xenozauros

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 question

Ask a Question

731 491 924 answers to any question