Browse Source

Tag the httpd service only when it is used

Currently the placement-service tag is always added to the httpd
service, but it should not if an independent service is used to run
placement-api.

Change-Id: If39b4cabadc2d7d5c33ef7ac2b56d6adfdcdf456
(cherry picked from commit 8475c1afed)
(cherry picked from commit 14ee3c820b)
(cherry picked from commit 568b61b585)
(cherry picked from commit 314bbbcc72)
(cherry picked from commit 9e4cf669ba)
changes/35/816235/1
Takashi Kajinami 7 months ago
parent
commit
65f9bf4ad6
  1. 3
      manifests/api.pp

3
manifests/api.pp

@ -62,11 +62,10 @@ class placement::api (
Service['placement-api'] -> Service[$api_service_name]
}
$api_service_name_real = false
Service <| title == 'httpd' |> { tag +> 'placement-service' }
} else {
$api_service_name_real = $api_service_name
}
Service <| title == 'httpd' |> { tag +> 'placement-service' }
} else {
$api_service_name_real = $api_service_name
}

Loading…
Cancel
Save