Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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