You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you add the puppet5 code role to the host metadata (from the node enc yamls)? Maybe the data role/variant as well, if it doesn't make it visually confusing, that is.
The text was updated successfully, but these errors were encountered:
Okay because I've encountered multiple blockers I'm gonna work on this in the new year.
For now, some info dump for if/when I forget:
Data role (variant) (and any other parameter) can be retrieved from facts, which is trivial to add. Code role is going to be a pain.
There are two ways to retrieve that:
Patch the enc to provide code-role as a parameter, allowing retrieval as a fact
Figure out a way for Humitifier to read files in /opt/puppetlabs/puppet/cache/state. I can retrieve it from both classes.txt and last_run_report.yaml.
The first option is relatively trivial, but kinda hacky. The second option would be the holy grail, as I can also retrieve a lot more useful puppet info using those files. (Agent disabled, last run timestamp, last run status (failed or not))
Some ideas on how to accomplish the second option:
Add a sudo role specifically for the humitifier user to cat files in that dir.
Make the dir owned by root:humitifier (or create a puppet group and add the humitifier user to said group, for slightly less wierd ownership)
Can you add the puppet5 code role to the host metadata (from the node enc yamls)? Maybe the data role/variant as well, if it doesn't make it visually confusing, that is.
The text was updated successfully, but these errors were encountered: