Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Oct 10, 2020
1 parent 5fbc7c8 commit b0ca7f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 0 additions & 2 deletions manifests/apache.pp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,4 @@
path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
}
}

Class['apache::service'] -> Class['foreman::apache']
}
11 changes: 8 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -336,18 +336,23 @@
include foreman::install
include foreman::config
include foreman::database
contain foreman::service
include foreman::service

anchor { 'foreman::running': # lint:ignore:anchor_resource
}

Anchor <| title == 'foreman::repo' |> ~> Class['foreman::install']
Class['foreman::install'] ~> Class['foreman::config', 'foreman::service']
Class['foreman::config'] ~> Class['foreman::database', 'foreman::service']
Class['foreman::database'] ~> Class['foreman::service']
Class['foreman::service'] -> Foreman_smartproxy <| base_url == $foreman_url |>
Class['foreman::service'] -> Anchor['foreman::running']
Anchor['foreman::running'] -> Foreman_smartproxy <| base_url == $foreman_url |>

if $apache {
contain foreman::apache
include foreman::apache

Class['foreman::config', 'foreman::database'] -> Class['foreman::apache']
Class['foreman::apache', 'apache::service'] -> Class['foreman::running']
if $ipa_authentication and $keycloak {
fail("${facts['networking']['hostname']}: External authentication via IPA and Keycloak are mutually exclusive.")
}
Expand Down

0 comments on commit b0ca7f7

Please sign in to comment.