Skip to content

Commit

Permalink
feat(config): remove interfering users.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
alxwr committed Mar 10, 2021
1 parent ece26a3 commit 66ba863
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions icinga2/config.sls
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ include:
### Begin user configuration
{%- if conf.users is defined %}
{{ icinga2.confd_dir }}/users.conf:
file.absent: []
{{ icinga2.confd_dir }}/users:
file.directory:
- require:
Expand Down
8 changes: 8 additions & 0 deletions test/integration/default/controls/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@
end
end

control 'icinga2 `conf.d/users.conf` configuration' do
title 'should not exist'

describe file('/etc/icinga2/conf.d/users.conf') do
it { should_not exist }
end
end

control 'icinga2 `conf.d/users/alice.conf` configuration' do
title 'should match desired lines'

Expand Down

0 comments on commit 66ba863

Please sign in to comment.