example42 / puppet-splunk

Splunk Puppet Module
http://www.example42.com
Other
12 stars 29 forks source link

Hack to automatic accept license #9

Closed adrianlzt closed 10 years ago

adrianlzt commented 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

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'],
}
adrianlzt commented 10 years ago

https://github.com/example42/puppet-splunk/pull/10