Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
$package_provider = undef,
$version = $::splunk::params::version,
$replace_passwd = $::splunk::params::replace_passwd,
$manage_certs = $::splunk::params::manage_certs
) inherits splunk::params {

# Added the preseed hack after getting the idea from very cool
Expand Down
19 changes: 11 additions & 8 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
$version = $::splunk::version,
$package_source = $::splunk::package_source,
$package_provider = $::splunk::package_provider,
$replace_passwd = $::splunk::replace_passwd
$replace_passwd = $::splunk::replace_passwd,
$manage_certs = $::splunk::manage_certs
) {

package { $pkgname:
Expand Down Expand Up @@ -62,12 +63,14 @@

# recursively copy the contents of the auth dir
# This is causing a restart on the second run. - TODO
file { "${splunkhome}/etc/auth":
mode => '0600',
owner => 'splunk',
group => 'splunk',
recurse => true,
purge => false,
source => 'puppet:///modules/splunk/noarch/opt/splunk/etc/auth',
if $manage_certs {
file { "${splunkhome}/etc/auth":
mode => '0600',
owner => 'splunk',
group => 'splunk',
recurse => true,
purge => false,
source => 'puppet:///modules/splunk/noarch/opt/splunk/etc/auth',
}
}
}
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
$purge = undef
$version = 'installed'
$replace_passwd = 'no'
$manage_certs = true

if $::mode == maintenance {
$service_ensure = 'stopped'
Expand Down