aboutsummaryrefslogtreecommitdiffstats
path: root/deployed-server/ctlplane-port.yaml
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2016-08-06 11:08:05 -0400
committerDan Prince <dprince@redhat.com>2016-08-07 07:29:06 -0400
commit9450cc222df49f3679cb179fdfdc04e22d39fa0b (patch)
treee42706d3ad155b1da8d3e7dbb3109f0ec908043f /deployed-server/ctlplane-port.yaml
parent77cca14bd760f091a1e481bd44e96f8882fb99cc (diff)
Make deployed-server OS::Neutron::Port optional
This patch makes it possible to set OS::TripleO::DeployedServer::ControlPlanePort: OS::Heat::None in your resource_registry and thereby avoid the creation of a neutron port for the deployed server. This is useful if you are bootstrapping things in an environment without Neutron. Also, includes a new deployed-server-noop-ctlplane.yaml environment file. Change-Id: I2990dc816698e0f6e3193a8fc7c9c6767c6e50e5
Diffstat (limited to 'deployed-server/ctlplane-port.yaml')
-rw-r--r--deployed-server/ctlplane-port.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/deployed-server/ctlplane-port.yaml b/deployed-server/ctlplane-port.yaml
new file mode 100644
index 0000000..eb10fba
--- /dev/null
+++ b/deployed-server/ctlplane-port.yaml
@@ -0,0 +1,23 @@
+heat_template_version: 2014-10-16
+
+parameters:
+ Hostname:
+ type: string
+
+resources:
+
+ ControlPlanePort:
+ type: OS::Neutron::Port
+ properties:
+ network: ctlplane
+ name:
+ list_join:
+ - '-'
+ - - {get_param: Hostname}
+ - ctlplane
+ - port
+ replacement_policy: AUTO
+
+outputs:
+ ip_address:
+ value: {get_attr: [ControlPlanePort, fixed_ips, 0, ip_address]}