Update Add a new infrastructure host script part
Add "Replace <NEW INFRA NODE> with the name of the new host." to make it clearer. remove the file seperator after awk because if we use '|' as it, the add_host.limit will have a white space at first col. Add an new script to deal with the fatal error when we add the new infra node. The 'Distribute self signed ssl key' playbook needs horizon.pem from the first horizon container, so we have to add the first horizon container name to the add_host.limit. Change-Id: Ia6774a6e3ec8fe13dde7559942e2f899e18e8eb1
This commit is contained in:
parent
56aabb8d67
commit
2453a07e9a
@ -43,12 +43,14 @@ needed in an environment, it is possible to create additional nodes.
|
||||
# /opt/openstack-ansible/playbooks/inventory/dynamic_inventory.py > /dev/null
|
||||
|
||||
#. Create the ``/root/add_host.limit`` file, which contains all new node
|
||||
host names.
|
||||
host names. Replace ``<NEW INFRA NODE>`` with the name of the new host.
|
||||
|
||||
.. code:: console
|
||||
|
||||
# /opt/openstack-ansible/scripts/inventory-manage.py \
|
||||
-l |awk -F '|' '/<NEW INFRA NODE>/ {print $2}' |sort -u | tee /root/add_host.limit
|
||||
-l |awk '/<NEW INFRA NODE>/ {print $2}' |sort -u | tee /root/add_host.limit
|
||||
#/opt/openstack-ansible/scripts/inventory-manage.py \
|
||||
-l | grep 'horizon' | head -1 | awk '{print $2}' >> /root/add_host.limit
|
||||
|
||||
#. Run the ``setup-everything.yml`` playbook with the
|
||||
``limit`` argument.
|
||||
|
Loading…
Reference in New Issue
Block a user