From c52546e5518120f977b4f4b9ae075a78a3d1984a Mon Sep 17 00:00:00 2001 From: John Bond Date: Mon, 23 Oct 2017 14:42:25 +0100 Subject: [PATCH] update service provide --- manifests/install.pp | 2 +- manifests/params.pp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/install.pp b/manifests/install.pp index 75ee5ba..be17159 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -78,7 +78,7 @@ require => User['kibana'], } - if $service_provider == 'init' { + if grep(['init', 'redhat', 'debian'], $service_provider) { file { 'kibana-init-script': ensure => file, diff --git a/manifests/params.pp b/manifests/params.pp index a327576..92073bc 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -37,7 +37,7 @@ $systemd_provider_path = '/usr/lib/systemd/system' $run_path = '/run/kibana' } else { - $service_provider = 'init' + $service_provider = 'redhat' $run_path = '/var/run' $init_script_osdependend = 'kibana.legacy.service.redhat.erb' } @@ -51,7 +51,7 @@ $systemd_provider_path = '/lib/systemd/system' $run_path = '/run/kibana' } else { - $service_provider = 'init' + $service_provider = 'debian' $run_path = '/var/run' $init_script_osdependend = 'kibana.legacy.service.debian.erb' } @@ -64,7 +64,7 @@ $systemd_provider_path = '/usr/lib/systemd/system' $run_path = '/run/kibana' } else { - $service_provider = 'init' + $service_provider = 'debian' $run_path = '/var/run' $init_script_osdependend = 'kibana.legacy.service.debian.erb' }