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)
This commit is contained in:
Takashi Kajinami 2021-11-01 17:31:04 +09:00
parent 8fe110ecea
commit 65f9bf4ad6
1 changed files with 1 additions and 2 deletions

View File

@ -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
}