aboutsummaryrefslogtreecommitdiffstats
path: root/deployed-server/ctlplane-port.yaml
diff options
context:
space:
mode:
authorJames Slagle <jslagle@redhat.com>2017-01-09 14:40:27 -0500
committerJames Slagle <jslagle@redhat.com>2017-01-10 13:04:52 -0500
commit6f20304c43bd010f656e9000f098d1d5d02cdc78 (patch)
tree4a8562a048561fc283553e7ade5e8bcb7550daf6 /deployed-server/ctlplane-port.yaml
parentc9596b72a1efd9733361081029f2dc0e194d0b6d (diff)
Add deployed-server backwards compatible template
In Newton, the ctlplane port on deployed-server was called <hostname>-ctlplane-port. When this code was refactored in I29fbc720c3d582cbb94385e65e4b64b101f7eac9, the -port suffix was dropped in favor of <hostname>-<network> convention, and the port resource was created directly in deployed-server.yaml instead of in a nested stack. Both of those changes were backwards incompatible -- making it impossible to upgrade to the new version of deployed-server.yaml without the ctlplane port getting deleted/recreated, which causes a change in IP address. The IP address change causes services to be misconfigured on upgrade attempts. Change-Id: I45991b60a151abf3c5e4d05a3aa7246b2d25ac5a
Diffstat (limited to 'deployed-server/ctlplane-port.yaml')
-rw-r--r--deployed-server/ctlplane-port.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/deployed-server/ctlplane-port.yaml b/deployed-server/ctlplane-port.yaml
new file mode 100644
index 0000000..7b5cdf1
--- /dev/null
+++ b/deployed-server/ctlplane-port.yaml
@@ -0,0 +1,28 @@
+heat_template_version: ocata
+
+parameters:
+ network:
+ type: string
+ default: ctlplane
+ name:
+ type: string
+ replacement_policy:
+ type: string
+ default: AUTO
+
+resources:
+
+ ControlPlanePort:
+ type: OS::Neutron::Port
+ properties:
+ network: ctlplane
+ name:
+ list_join:
+ - '-'
+ - - {get_param: name}
+ - port
+ replacement_policy: AUTO
+
+outputs:
+ fixed_ips:
+ value: {get_attr: [ControlPlanePort, fixed_ips]}