Skip to content

Commit c77cc72

Browse files
bastelfreakekohl
authored andcommitted
Ensure proxy register runs before puppetserver service
In case there runs puppetserver on the same node *and* foreman is used as an ENC, the registration needs to happen before the smart proxy is configured, otherwise the ENC script cannot authenticate itself to foreman.
1 parent b73685c commit c77cc72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manifests/register.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
# By using collectors, we don't have to test if the collected resource actually exists
3838
Foreman_smartproxy[$foreman_proxy::registered_name] -> Cron <| title == 'puppet' |>
3939
Foreman_smartproxy[$foreman_proxy::registered_name] -> Service <| title == 'puppet' |>
40+
Foreman_smartproxy[$foreman_proxy::registered_name] -> Service <| title == 'puppetserver' |>
41+
Foreman_smartproxy[$foreman_proxy::registered_name] -> Service <| title == 'pe-puppetserver' |>
4042
Foreman_smartproxy[$foreman_proxy::registered_name] -> Service <| title == 'puppet-run.timer' |>
4143

4244
# Assign the 'features' array from the enabled_features datacat resources to

0 commit comments

Comments
 (0)