Putting all parameter in Hiera

asked 2017-08-26 07:45:20 -0600

mr.h4w3 gravatar image

I'm trying to pass all parameter from hiera to my class like this:

In hiera:

  param1: value1
  param2: value2
    param_n_1: value_n_1
    param_n_2: value_n_2

In myapp class

class myapp ($params) {
  class { 'myOtherResource':
     * => $params,

It works as expected but I just want get feedback if I'm doing it correctly or if there is any other better way doing it.

PS. I'm still learning Puppet

edit retag flag offensive close merge delete