Add support to hashes for has_role
authorTollef Fog Heen <tfheen@err.no>
Fri, 2 Feb 2018 09:18:00 +0000 (10:18 +0100)
committerTollef Fog Heen <tfheen@err.no>
Fri, 2 Feb 2018 09:18:00 +0000 (10:18 +0100)
commit4050864b78a0820698589e994b16d6fa2252b147
tree2813418e64b14597ab037d9dfef96179ba6856f0
parentdc93a2cdec7dcb56f62148cc12f99005b950bcf9
Add support to hashes for has_role

In addition to supporting

roles:
  foo:
    - host1
    - host2
    - host3

Add support for:

roles:
  foo:
    host1:
      k1: v1
    host2: ~

as well.
modules/puppetmaster/lib/puppet/parser/functions/has_role.rb