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

View File

@ -66,11 +66,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
}