40570a8388
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
27 lines
525 B
Django/Jinja
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
|