fix(permissions): correct basedir user/group

This commit is contained in:
noelmcloughlin 2020-08-18 21:37:40 +01:00
parent ceb9863749
commit d65858a154
2 changed files with 2 additions and 3 deletions

View File

@ -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:

View File

@ -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 }