fix(permissions): correct basedir user/group
This commit is contained in:
parent
ceb9863749
commit
d65858a154
@ -15,8 +15,8 @@ prometheus-archive-install-prerequisites:
|
|||||||
- names: {{ p.pkg.deps|json }}
|
- names: {{ p.pkg.deps|json }}
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: {{ p.dir.var }}
|
- name: {{ p.dir.var }}
|
||||||
- user: prometheus
|
- user: {{ p.identity.rootuser }}
|
||||||
- group: prometheus
|
- group: {{ p.identity.rootgroup }}
|
||||||
- mode: 755
|
- mode: 755
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
- require:
|
- require:
|
||||||
|
@ -26,7 +26,6 @@ control 'prometheus components' do
|
|||||||
end
|
end
|
||||||
describe directory('/var/lib/prometheus') do
|
describe directory('/var/lib/prometheus') do
|
||||||
it { should exist }
|
it { should exist }
|
||||||
its('group') { should eq 'prometheus' }
|
|
||||||
end
|
end
|
||||||
describe directory('/opt/prometheus/prometheus-v2.10.0') do
|
describe directory('/opt/prometheus/prometheus-v2.10.0') do
|
||||||
it { should exist }
|
it { should exist }
|
||||||
|
Loading…
Reference in New Issue
Block a user