diff --git a/manifests/init.pp b/manifests/init.pp index 4dddc7a..dbe848e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,7 +4,7 @@ $node_module_dir = $statsd::params::node_module_dir, $nodejs_bin = $statsd::params::nodejs_bin, $npm_bin = $statsd::params::npm_bin, - $env_append = $statsd::params::sysconfig_append, + $env_append = $statsd::params::env_append, $port = $statsd::params::port, $address = $statsd::params::address, diff --git a/spec/classes/statsd_spec.rb b/spec/classes/statsd_spec.rb index 13d860d..2e10366 100644 --- a/spec/classes/statsd_spec.rb +++ b/spec/classes/statsd_spec.rb @@ -18,15 +18,16 @@ it { should contain_file('/etc/statsd') } it { should contain_file('/etc/statsd/localConfig.js') } - it { should contain_file('/etc/default/statsd') } it { should contain_file('/var/log/statsd') } it { should contain_file('/usr/local/sbin/statsd') } if osfamily == 'Debian' + it { should contain_file('/etc/default/statsd') } it { should contain_file('/etc/init/statsd.conf') } end if osfamily == 'RedHat' + it { should contain_file('/etc/sysconfig/statsd') } it { should contain_file('/etc/init.d/statsd') } end