From f77b2c23c9407a7aa4c434959470b5b8deb95bcd Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 10 Jan 2024 15:15:38 +0900 Subject: [PATCH] Fix constraint related to dnspython The title of the package resource to manage dnspython is not python3-* but python-*. Also the proxy-server service should be restarted when the package is updated so that the updated version is loaded. Change-Id: I3372c38dcbc7312395ddf643862da91b00262ad7 --- manifests/proxy/cname_lookup.pp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/manifests/proxy/cname_lookup.pp b/manifests/proxy/cname_lookup.pp index e3e5a198..ab33d2d0 100644 --- a/manifests/proxy/cname_lookup.pp +++ b/manifests/proxy/cname_lookup.pp @@ -56,9 +56,7 @@ class swift::proxy::cname_lookup( include swift::deps include swift::params - if defined(Service['swift-proxy-server']) { - Package['python3-dnspython'] -> Service['swift-proxy-server'] - } + Package['python3-dnspython'] ~> Service<| tag == 'swift-proxy-service' |> swift_proxy_config { 'filter:cname_lookup/use': value => 'egg:swift#cname_lookup';