Closed adrianlzt closed 10 years ago
This command "${splunk::basedir}/bin/splunk enable boot-start --accept-license --answer-yes --no-prompt" Generates init.d/splunk like this: "/opt/splunk/bin/splunk" start --no-prompt --answer-yes
"${splunk::basedir}/bin/splunk enable boot-start --accept-license --answer-yes --no-prompt"
"/opt/splunk/bin/splunk" start --no-prompt --answer-yes
I have to put this exec in my manifest to workaround that:
exec { 'splunk-accept-license': command => '/bin/sed -i "s/--answer-yes/--accept-license --answer-yes/" /etc/init.d/splunk', require => Package['splunk'], before => Service['splunk'], }
https://github.com/example42/puppet-splunk/pull/10
This command
"${splunk::basedir}/bin/splunk enable boot-start --accept-license --answer-yes --no-prompt"
Generates init.d/splunk like this:"/opt/splunk/bin/splunk" start --no-prompt --answer-yes
I have to put this exec in my manifest to workaround that: