Can you please guide me on how I can use hiera or site.pp to make our servers aware of the names of the other servers in the environment? for example , we have 10 servers in uat2 ,Id like to get a list of them into puppet such that the servers know what others are available
Asked
Active
Viewed 30 times
1 Answers
2
I would recommend PuppetDB, which is designed for exactly this. In particular it allows the use of Exported Resources, so that all hosts in a group can export a resource and it can be collected on another node.
I had a similar issue a while ago, the solution to which is here. The combination of PuppetDB and the Hiera backend for it should do what you wish.

shearn89
- 3,403
- 2
- 15
- 39