diff --git a/manifests/config.pp b/manifests/config.pp index b9aaeea..63a789d 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -57,6 +57,10 @@ class icingaweb2::config { $::icingaweb2::web_root: ensure => directory, mode => $::icingaweb2::config_dir_mode; + + "${::icingaweb2::web_root}/modules": + ensure => directory, + mode => $::icingaweb2::config_dir_mode; } # Configure authentication.ini settings diff --git a/spec/classes/icingaweb2_spec.rb b/spec/classes/icingaweb2_spec.rb index b276bae..4a31290 100644 --- a/spec/classes/icingaweb2_spec.rb +++ b/spec/classes/icingaweb2_spec.rb @@ -28,6 +28,7 @@ describe 'icingaweb2', :type => :class do it { should contain_file('/etc/icingaweb2/resources.ini') } it { should contain_file('/etc/icingaweb2/roles.ini') } it { should contain_file('/usr/share/icingaweb2') } + it { should contain_file('/usr/share/icingaweb2/modules') } it { should contain_group('icingaweb2') } it { should contain_user('icingaweb2') }