openstack-helm/ironic/templates/bin/_retreive-cleaning-network.sh.tpl
portdirect 86d5b1ce05 Ironic: move cleaning net managment to job
This PS moves the cleaning net managment to a job.

Additionally the gate scripts are updated to enable single node
operation for development use.

Change-Id: Icb7015bcceaf93bc65f60399caf785fbdcf72413
2018-02-14 23:47:45 -05:00

26 lines
816 B
Smarty

#!/bin/bash
{{/*
Copyright 2017 The Openstack-Helm Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/}}
set -ex
IRONIC_NEUTRON_CLEANING_NET_ID=$(openstack network show ${neutron_network_name} -f value -c id)
tee /tmp/pod-shared/cleaning-network.conf <<EOF
[neutron]
cleaning_network_uuid = ${IRONIC_NEUTRON_CLEANING_NET_ID}
EOF