Skip to content

Commit

Permalink
Add dependency to icingacli package for director module
Browse files Browse the repository at this point in the history
  • Loading branch information
bobapple committed Sep 25, 2017
1 parent 096e2fa commit 2354ebc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manifests/module/director.pp
Expand Up @@ -100,9 +100,12 @@
}

if $import_schema {
ensure_packages(['icingacli'], { 'ensure' => 'present' })

exec { 'director-migration':
command => 'icingacli director migration run',
onlyif => 'icingacli director migration pending',
require => [ Package['icingacli'], Icingaweb2::Module['director'] ]
}

if $kickstart {
Expand All @@ -123,7 +126,7 @@
exec { 'director-kickstart':
command => 'icingacli director kickstart run',
onlyif => 'icingacli director kickstart required',
require => [ Exec['director-migration'], Icingaweb2::Module['director'] ]
require => Exec['director-migration']
}
} else {
$kickstart_settings = {}
Expand Down

0 comments on commit 2354ebc

Please sign in to comment.