
OpenStack client supports defining one or more sets of credentials inside a clouds.yml configuration file. A default configuration has been created named `default` that contains the same admin credentials from the `openrc` file currently being templated. The default configuration can be specified using the following: openstack --os-cloud default <command> Change-Id: Icc0c06a9b9a9e2e75b58fe90b4da9dd46b63e7f4
OpenStack openrc file
- tags
-
openstack, openrc, cloud, ansible
- category
-
*nix
Role for the creation of an openrc file for the intended purpose to set credentials up for use within OpenStack.
- name: Install memcached
hosts: memcached
user: root
roles:
- { role: "memcached_server", tags: [ "memcached-server" ] }
vars:
openrc_cinder_endpoint_type: internalURL
openrc_nova_endpoint_type: internalURL
openrc_os_endpoint_type: internalURL
openrc_os_username: admin
openrc_os_tenant_name: admin
openrc_os_auth_url: "http://10.0.0.1:5000"
openrc_os_password: "secrete"
openrc_file_dest: /root/openrc