Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Get cookbook working on CentOS with Systemd.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Stump committed Jan 4, 2017
1 parent a66b7ac commit 4048c1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ verifier:
platforms:
- name: ubuntu-16.04
- name: ubuntu-12.04
- name: centos-6.5
- name: centos-7.3

suites:
- name: default
Expand Down
7 changes: 6 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
default['statsd']['path'] = '/usr/share/statsd'

# Default path for the nodejs cookbook.
default['statsd']['node_bin'] = '/usr/bin/nodejs'
case node['platform_family']
when 'debian'
default['statsd']['node_bin'] = '/usr/bin/nodejs'
when 'rhel'
default['statsd']['node_bin'] = '/bin/node'
end

default['statsd']['user'] = 'statsd'
default['statsd']['group'] = 'statsd'
Expand Down

0 comments on commit 4048c1b

Please sign in to comment.