Hello everyone, here's what i wanna accomplish: i am havin 4 so called servergroups
- ci - dev - stage - production and i want them to have specific facts depending on the group they are in. so in every node i created a file /etc/facter/facts.d/servergroup.txt, containing e.g. *servergroup=stage* where then a *facter -d servergroup *in the clienthost gives me an: *stage * on puppet master, my hiera.yaml looks like this: :hierarchy: - "servergroup/%{::servergroup}" - "nodes/%{::clientcert}" - common and i've got on my hieradata a folder servergroup with an file stage.yaml, which, then again, holds: message: '*** Preparing STAGE environment ***' repo_stage_enabled: '1' repo_prod_enabled: '0' nrpe_allowed_hosts: '192.168.3.4' my module which installes a nrpe uses then these values. like: $nrpe_allowed_hosts = hiera('nrpe_allowed_hosts') so far this works, every stage node gets this values, productive of ci nodes get different values. all good. What i do not like is that i have on each node to create the file "/etc/facter/facts.d/servergroup.txt". I'd rather like to have this information which servergroup each node belongs on my puppetmaster. Any ideas? Use ENC? Create kinda custom facts on the puppet master ? Thanks and best regards Hubert -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/07ef5bc5-a62a-4b0a-950e-50f0d16b3491%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.