tripleo-ansible/scripts/retrieve_oc_vars
Julia Kreger 640202df2e Addition of a nova power controlling module
While it appears Helion RC6 does not automatically resume virtual
machine states, this untested and proof of concept module will allow
us to stop/start and pause/unpause instances, as well as return them
to a previously known state if recorded.

Change-Id: If822de1c57bf6f6101ba8816d69c250c77488203
2014-11-18 21:52:33 -05:00

8 lines
395 B
Bash

#!/bin/bash
set -eux
# Execute from the tripleo-ansible folder
ansible $(heat output-show overcloud controller0IP|sed s/\"//g) -s -u heat-admin -m fetch -a "dest=/root/oc-stackrc src=/root/stackrc flat=yes" -i plugins/inventory/heat.py
cat /root/oc-stackrc | sed s/OS_/OC_OS_/ > /root/oc-stackrc-tripleo-ansible
echo " **** Before Proceeding, Execute: source /root/oc-stackrc-tripleo-ansible"