Right way to use hiera.yaml

27 views
Skip to first unread message

Albert Shih

unread,
Apr 26, 2016, 7:49:50 AM4/26/16
to puppet...@googlegroups.com
Hi everyone

I would like to add some "category" inside the hiera.yaml meanning

:hierarchy:
- "%{::clientcert}"
- "%{::operatingsystem}_%{::operatingsystemmajrelease}"
- "%{::operatingsystem}"
- MY_CATEGORY
- common

I check I can do that by puting

node 'server' {
$category="mything"
include ::module1
include ::module2
}

and

hieradata/mything.yaml

It's working (puppet 3.8.x), but is it the right way to do it ? Especially
for puppet 4 (when I get time to upgrade, I would like to have the minimum
thing to change).

For example is it possible to put "category" inside the first yaml in that case
::clientcert.yaml ?


Regards.

JAS
--
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
France
Téléphone : +33 1 45 07 76 26/+33 6 86 69 95 71
xmpp: j...@obspm.fr
Heure local/Local time:
mar 26 avr 2016 13:43:45 CEST
Reply all
Reply to author
Forward
0 new messages