Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Support actual hostnames in DeploymentServerBlacklist
Browse files Browse the repository at this point in the history
Historically, we only supported heat hostnames in
DeploymentServerBlacklist and this causes lots of
confusion, specifically when using ephemeral heat.
Let's support both.

Change-Id: Ifdc0ea99e02743739d6369101eac8476f28c25b8
  • Loading branch information
rabi committed Sep 12, 2022
1 parent f9a4495 commit 3e41f36
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
23 changes: 16 additions & 7 deletions puppet/role.role.j2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
features:
- |
DeploymentServerBlacklist parameter now supports both
heat and actual hostnames.

0 comments on commit 3e41f36

Please sign in to comment.