You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Puppet Users
Hi,
I'm working on a module that applies some changes through API commands. Where I am now, it's now able to set values to a PHP config using this API, but I feel it is a bit ugly because it does the API call every time puppet runs, no matter if there is a change or not. It is problematic? I feel like a puppet run should be clean (silent) when nothing changes, but I am not aware of best practices stating otherwise either. It is possible for me to use an unless statement to do an API call to determine if the config is already at the desired value, but it is, of course, more work.
Thanks,
Christopher Wood
unread,
Jun 5, 2017, 8:52:17 AM6/5/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Consider possibly these cases (which I have seen):
i) You are trying to track down an oddity in your puppet codebase, something like a file_line resource and exec resource both managing the same file.
ii) You are trying to find a non-puppetized job which is fighting with puppet to decide the particular composition of a file.
iii) You are having an outage and you are trying to figure out which change may have caused this.
Will it add to your overall workload, and augment your ability to provide stable customer-facing services, if you have some resources always listed as changing? Will this help you to find the resources you need to focus on for your particular task?
(Short version: do the full job now to prepare for the inevitable upcoming crises.)