Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manage the service #243

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
4 changes: 4 additions & 0 deletions manifests/forwarder.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
# @param package_ensure
# Ensure parameter which will get passed to the Splunk package resource.
#
# @param service_ensure
# Ensure parameter which will set the service state to be ensure.
#
# @param staging_dir
# Root of the archive path to host the Splunk package.
#
Expand Down Expand Up @@ -138,6 +141,7 @@
String[1] $version = $splunk::params::version,
String[1] $package_name = $splunk::params::forwarder_package_name,
String[1] $package_ensure = $splunk::params::forwarder_package_ensure,
String[1] $service_ensure = $splunk::params::forwarder_service_ensure,
String[1] $staging_dir = $splunk::params::staging_dir,
String[1] $path_delimiter = $splunk::params::path_delimiter,
String[1] $forwarder_package_src = $splunk::params::forwarder_package_src,
Expand Down
2 changes: 1 addition & 1 deletion manifests/forwarder/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}

service { $splunk::forwarder::service_name:
ensure => running,
ensure => $splunk::forwarder::service_ensure,
enable => true,
hasstatus => true,
hasrestart => true,
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@
$enterprise_package_src = "${src_root}/products/splunk/releases/${version}/${enterprise_src_subdir}/${enterprise_src_package}"
$forwarder_package_ensure = 'installed'
$forwarder_package_src = "${src_root}/products/universalforwarder/releases/${version}/${forwarder_src_subdir}/${forwarder_src_package}"
$forwarder_service_ensure = 'running'


# A meta resource so providers know where splunk is installed:
Expand Down