Instantly share code, notes, and snippets.

Embed
What would you like to do?
Put this in ~/.config/openstack/clouds.yaml
clouds:
rax-user-password:
profile: rackspace
regions:
- IAD
- DFW
- ORD
auth:
username: "<your username here>"
password: "<your password here>" # note, this is not the auth key, it's the password you enter into the browser
project_id: "<your project id here>"
# for the rackspace_apikey auth type to work, you must
# pip install rackspaceauth
rax-apikey:
profile: rackspace
auth_type: rackspace_apikey
regions:
- IAD
- DFW
- ORD
auth:
username: "<your username here>"
api_key: "<your api key here>"
# this is for doing auth against an openstack
# environment that has no os-client-config profile
openstack:
auth:
auth_url: "https://mycloud:5000/v3"
project_name: "<your project name here>"
project_id: "<your project id here>"
username: "<your username here>"
password: "<your password here>"
user_domain_name: "Default"
region_name: "RegionOne"
interface: "public"
identity_api_version: "3"
# set this if you're using a self-signed cert
verify: False
# this is useful if you're using the openstack
# dynamic inventory for ansible
ansible:
use_hostnames: True
expand_hostvars: False
fail_on_errors: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment