Skip to content

Commit a974023

Browse files
committed
Ensure Foreman proxy is started before registering the Foreman host
1 parent a3fe2a1 commit a974023

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

manifests/register.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,9 @@
2525
effective_user => $foreman::oauth_effective_user,
2626
ssl_ca => $foreman::server_ssl_chain,
2727
}
28+
29+
# Ensure Foreman proxy is started before registering the Foreman host
30+
# as some plugins want to talk to the proxy when modifying the host object
31+
# By using collectors, we don't have to test if the collected resource actually exists
32+
Service <| title == 'foreman-proxy' |> -> Foreman_host["foreman-${$foreman_host_name}"]
2833
}

0 commit comments

Comments
 (0)