I passed the single quotes bump, thank you, now I stuck on back ticks, 
puppet actually calls the script it and doesn't allow me to escape ` symbol

I need this for Solaris logadm.conf, which is a very unusual config file, 
since logadm modifies it during each run.
I am using the same technique PuppetLabs uses in solaris agent:

    # Have to use exec, since logadm adds a timestamp to the line when it 
runs
    $sig_command = "'kill -HUP `cat /var/run/syslog.pid`'"
    exec { "${logfile} log rotation":
      command => "/usr/bin/echo \"# ${facility} rotation rule\n${logfile} 
-C 5 -a ${sig_command} -p 1d\" >> /etc/logadm.conf",
      unless  => "/usr/bin/grep '^${logfile}' /etc/logadm.conf > /dev/null",
    }

I end up with
/var/log/local0.log -C 5 -a 'kill -HUP 28787' -p 1d


Thanks,
Vadym

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5380b4c5-1454-4603-918f-6f8ae9cf3caf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to