Skip to content
Advertisement

Tag: puppet

How to test for existence of a file on the Puppet Master

In a customized modules on Puppet I have and I want to let the module do something whether or not the file “fqdn-of-server” exist on the Puppet Master. Googling did get me a file_exists.rb function: and this does work when put in something like: in my manifest init.pp (of course $fqdn is a facter). The problem is that it works

Changing class variable in node declaration in Puppet

I am trying to create a “template” for all my servers. I have 2 configurations. An NTP client (which is taken care of in the baseclass class. I want to create an override specific for the NTP servers by declaring something specific in the node declaration. Something like “baseclass::ntp:restrict => true,”. Or alternatively, how would I change one of the

Advertisement