Commit f78a6334 authored by Felipe Salum's avatar Felipe Salum
Browse files

Merge pull request #11 from pataquets/add-service-enable-parameter

Add 'newrelic_service_enable' parameter
parents 233707f2 914559d0
......@@ -4,6 +4,9 @@
#
# === Parameters
#
# [*newrelic_service_enable*]
# Specify the service startup state. Defaults to true. Possible value is false.
#
# [*newrelic_service_ensure*]
# Specify the service running state. Defaults to 'running'. Possible value is 'stopped'.
#
......@@ -35,6 +38,7 @@
define newrelic::server (
$newrelic_license_key = '',
$newrelic_package_ensure = 'present',
$newrelic_service_enable = true,
$newrelic_service_ensure = 'running',
) {
......@@ -51,7 +55,7 @@ define newrelic::server (
service { $newrelic_service_name:
ensure => $newrelic_service_ensure,
enable => true,
enable => $newrelic_service_enable,
hasrestart => true,
hasstatus => true,
require => Exec[$newrelic_license_key],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment