Re: [Puppet Users] Checking for the existence of a file

2013-08-08 Thread Ted Fiedler
e here: > > > content => template("samba/smb.erb", "samba/${hostname}.erb"), > > What is your intention with having multiple .erb files per hostname? That > might help us figure if there a different solution is warranted. > > -Rilindo > > On Aug 7, 20

[Puppet Users] Checking for the existence of a file

2013-08-07 Thread Ted Fiedler
I would like to check for the existence of a template file and if that template exists, use it otherwise move on. The file would obviously need to exist on the Puppet server, not the client. Here is my code. $filetest = >> File.exists?("/etc/puppetlabs/puppet/modules/samba/templates/$hostname.e