From 64dd074d3e44a04d901bba1611e2cbbfa700f7c3 Mon Sep 17 00:00:00 2001 From: Daniel Schmitz Date: Wed, 3 Feb 2016 19:13:57 +0800 Subject: [PATCH 1/3] Debians init.d script uses $DAEMON_OPTS instead of $DAEMON_ARGS --- templates/config.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/config.erb b/templates/config.erb index cbbdf1d..73877b5 100644 --- a/templates/config.erb +++ b/templates/config.erb @@ -1 +1,2 @@ DAEMON_ARGS='-c /etc/nutcracker.yml' +DAEMON_OPTS=$DAEMON_ARGS From 4c201e9ce4470312b0a08dc4d0203e5dff29fafc Mon Sep 17 00:00:00 2001 From: Daniel Schmitz Date: Wed, 3 Feb 2016 19:14:26 +0800 Subject: [PATCH 2/3] Use package_name for default-file --- manifests/config.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/config.pp b/manifests/config.pp index a149dbb..af34229 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -1,7 +1,7 @@ class twemproxy::config inherits twemproxy { if $twemproxy::package_manage { - file { '/etc/default/twemproxy': + file { '/etc/default/${twemproxy::package_name}': owner => 'root', group => 'root', mode => '0644', From 1d2cd2b6805b0074f606e28ed56c1f1bc6517d25 Mon Sep 17 00:00:00 2001 From: Daniel Schmitz Date: Wed, 3 Feb 2016 19:20:33 +0800 Subject: [PATCH 3/3] Corrected quotes --- manifests/config.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/config.pp b/manifests/config.pp index af34229..80e31de 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -1,7 +1,7 @@ class twemproxy::config inherits twemproxy { if $twemproxy::package_manage { - file { '/etc/default/${twemproxy::package_name}': + file { "/etc/default/${twemproxy::package_name}": owner => 'root', group => 'root', mode => '0644',