Skip to content

Commit b0ca7f7

Browse files
committed
WIP
1 parent 5fbc7c8 commit b0ca7f7

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

manifests/apache.pp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,4 @@
6262
path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
6363
}
6464
}
65-
66-
Class['apache::service'] -> Class['foreman::apache']
6765
}

manifests/init.pp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,18 +336,23 @@
336336
include foreman::install
337337
include foreman::config
338338
include foreman::database
339-
contain foreman::service
339+
include foreman::service
340+
341+
anchor { 'foreman::running': # lint:ignore:anchor_resource
342+
}
340343

341344
Anchor <| title == 'foreman::repo' |> ~> Class['foreman::install']
342345
Class['foreman::install'] ~> Class['foreman::config', 'foreman::service']
343346
Class['foreman::config'] ~> Class['foreman::database', 'foreman::service']
344347
Class['foreman::database'] ~> Class['foreman::service']
345-
Class['foreman::service'] -> Foreman_smartproxy <| base_url == $foreman_url |>
348+
Class['foreman::service'] -> Anchor['foreman::running']
349+
Anchor['foreman::running'] -> Foreman_smartproxy <| base_url == $foreman_url |>
346350

347351
if $apache {
348-
contain foreman::apache
352+
include foreman::apache
349353

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

0 commit comments

Comments
 (0)