Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How to use role custom fact in Puppet

$
0
0
I'm using a control-repo for my puppet master profiles/roles. I'm using Hiera and I would like to add role as hierarchy my hiera.yaml looks like : :backends: - yaml :yaml: :datadir: "/etc/puppetlabs/code/environments/%{::environment}/hieradata" :hierarchy: - "nodes/%{::trusted.certname}" - "roles/%{::role}" - "common" the puppet agent doesn't seem to have the role fact. so I added a role fact in /etc/puppetlabs/facter/facts.d But I don't want to do this for every node. I want this to be automatic. do you have any ideas guys ?

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>