Re: [Puppet Users] Conditional with find_file

2020-01-17 Thread Ben Ford
> > But when I execute this from a server-client infrastructure it seems like > the conditionals don't work They are not even processed: Oh, they're processed just the same. But the key part that you've missed is that the catalog is compiled on the *master*. That's where all functions run. The ca

[Puppet Users] Conditional with find_file

2020-01-17 Thread Joaquin Veira
Hi, I'm trying to use a condition based on the existance of a file. Something like this: if find_file('/etc/if_this_file_exists') { file { '/etc/create_this_file': ensure => present, owner => 'root', group => 'root', mode => '0755',