Personal Técnico <tecnicos(a)caos.uab.es> writes:
That process runs OK but the problem is that puppet agent remains
"Active" and "Enable" in new machine, so puppet agent runs every
"x"
minutes, so files configured for being updated with Puppet are updated
again and again and again because puppet agent service is "Active".
For example, I updated /etc/fstab file with Puppet for adding some
NFS mount points. During first puppet agent execution, /etc/fstab is
updated OK, but with following executions, /etc/fstab gets, again,
"echo mounpoints", so at the end, /etc/fstab has some NFS mountpoints
repeated.
Don't do that. Use the 'mount' type instead, so that multiple
lines aren't created:
https://docs.puppet.com/puppet/latest/types/mount.html
If you're using puppet to do something, you should make sure that
your commands result in the same thing no matter how often you run puppet
(i.e. idempotence).
- Tim Skirvin (tskirvin(a)fnal.gov)
--
HPC Systems Administrator / Developer
http://www.linkedin.com/in/tskirvin
USCMS-T1 Collaboration Fermilab ECF