From 1c6e2d86880eee7df8ed255bbf8f9678a250ba25 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Wed, 24 Jan 2018 20:59:14 -0500 Subject: [PATCH] Environment to disable Neutron networks This environment disables the creation of Neutron networks created by the network isolation templates and environments. It is useful if you want to create a second stack of servers alongside of 'overcloud' which shares the same network space. For example: an OpenShift/Kubernetes cluster. Change-Id: I649135627c4a499c080a320fc5a6af8d490ed91e --- environments/networks-disable.j2.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 environments/networks-disable.j2.yaml diff --git a/environments/networks-disable.j2.yaml b/environments/networks-disable.j2.yaml new file mode 100644 index 0000000000..88bd8f9459 --- /dev/null +++ b/environments/networks-disable.j2.yaml @@ -0,0 +1,12 @@ +# Disable the creation of Neutron networks +# This can be useful if you want to create two stacks along side of each +# other. The first stack (doesn't use this environment) and creates +# all of the Neutron networks. The second stack suppresses the +# creation of Networks and shares the same network spaces. +resource_registry: + + {%- for network in networks %} + OS::TripleO::Network::{{network.name}}: OS::Heat::None + {%- endfor %} + + #FIXME: probably also want to suppress creation of overcloud.yaml VIPs as well