Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

onlyif ignored in exec

$
0
0
Hello Why onlyif has no effect here ? it will run the command anyway. exec { 'splunk_app_unix_linux': command => "splunk install app ${opspk_repo_source}/${opspk_app_unix} -auth admin:${opspk_admin_pass}", user => 'splunk', creates => '/opt/splunk/etc/apps/splunk_app_for_nix/app.manifest', onlyif => [ '! service splunk status' ,], notify => Service['splunk'], path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin', '/usr/loca/bin', '/opt/splunk/bin/',], provider => 'shell', }

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>