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',
}
↧