diff --git a/manifests/config.pp b/manifests/config.pp index a149dbb..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': + file { "/etc/default/${twemproxy::package_name}": owner => 'root', group => 'root', mode => '0644', 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