Closed hakamadare closed 11 years ago
Hmm... This escape is necessary for the find exec argument:
'RedHat' => "/bin/bash -c \"if [ -x /usr/sbin/sss_cache ]; then /usr/sbin/sss_cache -UGN >/dev/null 2>&1 ; else /usr/bin/find /var/lib/sss/db -type f -exec rm -f '{}' \; ; fi\"",
This enables RHEL 5 clients without the sss_cache tool to flush the sss cache...
I'll test with alternative syntax.
Thanks Rob
Hi,
Maybe the puppet function named shellquote should help here ?
Alexandre
Great idea Alexandre!
I've seen the shellquote function but have never used it. I've rewritten the commands in the flushcache.pp manifest to utilize the shellquote function. It seems to have worked...
Please let me know you continue to see this log warning Steve.
Thanks Rob
I did not see any recent occurrences of this log on the Puppet Master. I think this is safe to close.
oh noes! this seems to be not particularly serious.