diff --git a/puppet/role.role.j2.yaml b/puppet/role.role.j2.yaml index 86a4f41b93..c03c787526 100644 --- a/puppet/role.role.j2.yaml +++ b/puppet/role.role.j2.yaml @@ -133,14 +133,23 @@ parameters: conditions: server_blacklisted: - equals: - - {get_param: [DeploymentServerBlacklistDict, {get_param: Hostname}]} - - 1 + or: + - equals: + - {get_param: [DeploymentServerBlacklistDict, {get_param: Hostname}]} + - 1 + - equals: + - {get_param: [DeploymentServerBlacklistDict, {get_param: [HostnameMap, {get_param: Hostname}]}]} + - 1 server_not_blacklisted: - not: - equals: - - {get_param: [DeploymentServerBlacklistDict, {get_param: Hostname}]} - - 1 + and: + - not: + equals: + - {get_param: [DeploymentServerBlacklistDict, {get_param: Hostname}]} + - 1 + - not: + equals: + - {get_param: [DeploymentServerBlacklistDict, {get_param: [HostnameMap, {get_param: Hostname}]}]} + - 1 ctlplane_fixed_ip_set: or: - not: diff --git a/releasenotes/notes/support-hostname-deployment-server-blacklist-532221db0e7d2bef.yaml b/releasenotes/notes/support-hostname-deployment-server-blacklist-532221db0e7d2bef.yaml new file mode 100644 index 0000000000..6061304e6a --- /dev/null +++ b/releasenotes/notes/support-hostname-deployment-server-blacklist-532221db0e7d2bef.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + DeploymentServerBlacklist parameter now supports both + heat and actual hostnames.