tripleo-quickstart-extras/roles/overcloud-prep-images/templates/overcloud-import-nodes.sh.j2
Sagi Shnaidman 40570a8388 Add tripleo-operator for import nodes
Change shell script for importing node by operator.
Leave it as is for releases before Ussuri.
Instead of stackrc use OS_CLOUD='undercloud'
Change-Id: I0b8c211f15bcc6437a94a848f386f17c115e963c
2020-05-11 21:41:05 +00:00

27 lines
525 B
Django/Jinja

#!/bin/bash
set -eux
### --start_docs
## Prepare images for deploying the overcloud
## ==========================================
## Prepare Your Environment
## ------------------------
## * Source in the undercloud credentials.
## ::
source {{ working_dir }}/stackrc
## * Register nodes with Ironic.
## ::
{% if step_introspect|bool or step_introspect_with_retry|bool %}
openstack overcloud node import instackenv.json
{% else %}
openstack overcloud node import instackenv.json --provide
{% endif %}
### --stop_docs