Skip to content

Commit

Permalink
Ensure proxy register runs before puppetserver service
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bastelfreak authored and ekohl committed Dec 12, 2024
1 parent b73685c commit c77cc72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/register.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
# By using collectors, we don't have to test if the collected resource actually exists
Foreman_smartproxy[$foreman_proxy::registered_name] -> Cron <| title == 'puppet' |>
Foreman_smartproxy[$foreman_proxy::registered_name] -> Service <| title == 'puppet' |>
Foreman_smartproxy[$foreman_proxy::registered_name] -> Service <| title == 'puppetserver' |>
Foreman_smartproxy[$foreman_proxy::registered_name] -> Service <| title == 'pe-puppetserver' |>
Foreman_smartproxy[$foreman_proxy::registered_name] -> Service <| title == 'puppet-run.timer' |>

# Assign the 'features' array from the enabled_features datacat resources to
Expand Down

0 comments on commit c77cc72

Please sign in to comment.