puppet: if one file exists then copy another file over
问题 I am trying to figure out how to make my puppet module work such I need to test if file exists on the client, if it does, then copy another file over. If the file does not exist then do nothing. I can't seem to get it working. Here is my module: class web-logs::config { # PATH TO LOG FILES $passenger='/var/tmp/puppet_test/passenger' # PATH TO LOGROTATE CONFIGS $passenger_logrotate='/var/tmp/puppet_test/logrotate.d/passenger' exec { 'test1': onlyif => "test -f $passenger", path => ['/usr/bin',