Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hiera automatic parameter lookup

Followed example here:

https://docs.puppet.com/hiera/3.2/puppet.html#automatic-parameter-lookup

my "fqdn.yaml"

---
    users_allowed::adm_group:
      - GROUP1
      - My-Custom-Group

my "init.pp"

class groups_allowed {

 $_sssd_config = $::realmd::sssd_config
 $_grps_allowed = hiera('users_allowed::adm_group')
......
}

On client after apply I get:

groups = [GROUP1, My-Custom-Group]

How can I remove square brackets from the string?

Thank you.