Skip to content

Commit

Permalink
Add MacOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
Eivin Hatvik authored and bastelfreak committed Jan 3, 2019
1 parent 45efa3a commit 4848d0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions data/Darwin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
prometheus::env_file_path: '/etc'
2 changes: 1 addition & 1 deletion manifests/daemon.pp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
file { "${env_file_path}/${name}":
mode => '0644',
owner => 'root',
group => 'root',
group => '0', # Darwin uses wheel
content => template('prometheus/daemon.env.erb'),
notify => $notify_service,
}
Expand Down
4 changes: 2 additions & 2 deletions spec/defines/daemon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
is_expected.to contain_file('/etc/default/smurf_exporter').with(
'mode' => '0644',
'owner' => 'root',
'group' => 'root'
'group' => '0'
).with_content(
%r{SOMEVAR="42"\n}
)
Expand All @@ -215,7 +215,7 @@
is_expected.to contain_file('/etc/sysconfig/smurf_exporter').with(
'mode' => '0644',
'owner' => 'root',
'group' => 'root'
'group' => '0'
).with_content(
%r{SOMEVAR="42"\n}
)
Expand Down

0 comments on commit 4848d0c

Please sign in to comment.