Create $web_root directory
This commit is contained in:
parent
23cae0a6eb
commit
f51e3f0a40
2 changed files with 11 additions and 2 deletions
|
@ -35,6 +35,10 @@ class icingaweb2::config {
|
|||
"${::icingaweb2::config_dir}/roles.ini":
|
||||
ensure => present,
|
||||
content => template('icingaweb2/roles.ini.erb');
|
||||
|
||||
$::icingaweb2::web_root:
|
||||
ensure => directory,
|
||||
mode => $::icingaweb2::config_dir_mode;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,8 @@ describe 'icingaweb2', :type => :class do
|
|||
it { should contain_file('/etc/icingaweb2/config.ini') }
|
||||
it { should contain_file('/etc/icingaweb2/resources.ini') }
|
||||
it { should contain_file('/etc/icingaweb2/roles.ini') }
|
||||
|
||||
it { should contain_file('/usr/share/icingaweb2') }
|
||||
end
|
||||
|
||||
describe 'with parameter: config_dir' do
|
||||
|
@ -305,9 +307,12 @@ describe 'icingaweb2', :type => :class do
|
|||
end
|
||||
|
||||
describe 'with parameter: web_root' do
|
||||
let (:params) { { :web_root => [ '_PKG_' ] } }
|
||||
let (:params) { { :web_root => '/web/root' } }
|
||||
|
||||
pending
|
||||
it { should contain_file('/web/root').with(
|
||||
'ensure' => 'directory'
|
||||
)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue