Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@79c15ba47338:~# python
- Python 2.7.6 (default, Jun 22 2015, 17:58:13)
- [GCC 4.8.2] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> from opnfv.utils.Credentials import Credentials as credentials
- >>> credentials("fuel", "10.20.0.2", "root", "r00tme").fetch('./openrc')
- 2016-11-17 13:08:48,514 - Credentials - DEBUG - Installer fuel supported.
- 2016-11-17 13:08:48,517 - Credentials - DEBUG - IP 10.20.0.2 is reachable!
- 2016-11-17 13:08:48,517 - Credentials - DEBUG - Trying to stablish ssh connection to 10.20.0.2 ...
- 2016-11-17 13:08:48,969 - Credentials - DEBUG - Target path correct.
- 2016-11-17 13:08:48,969 - Credentials - INFO - Fetching credentials from the deployment...
- 2016-11-17 13:08:50,240 - FuelHandler - INFO - /root/openrc successfully copied from 10.20.0.3 to ./openrc
- >>>
- root@79c15ba47338:~# cat openrc
- #!/bin/sh
- export OS_NO_CACHE='true'
- export OS_TENANT_NAME='admin'
- export OS_PROJECT_NAME='admin'
- export OS_USERNAME='admin'
- export OS_PASSWORD='admin'
- export OS_AUTH_URL='http://192.168.0.7:5000/'
- export OS_DEFAULT_DOMAIN='Default'
- export OS_AUTH_STRATEGY='keystone'
- export OS_REGION_NAME='RegionOne'
- export CINDER_ENDPOINT_TYPE='internalURL'
- export GLANCE_ENDPOINT_TYPE='internalURL'
- export KEYSTONE_ENDPOINT_TYPE='internalURL'
- export NOVA_ENDPOINT_TYPE='internalURL'
- export NEUTRON_ENDPOINT_TYPE='internalURL'
- export OS_ENDPOINT_TYPE='internalURL'
- export MURANO_REPO_URL='http://storage.apps.openstack.org/'
- export MURANO_PACKAGES_SERVICE='glance'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement