Merge "Create openrc file on the deploy node"
This commit is contained in:
commit
d0c277bb4f
9
ansible/post-deploy.yml
Normal file
9
ansible/post-deploy.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Creating admin openrc file on the deploy node
|
||||
hosts: all
|
||||
tasks:
|
||||
- template:
|
||||
src: "roles/common/templates/admin-openrc.sh.j2"
|
||||
dest: "{{ node_config_directory }}/admin-openrc.sh"
|
||||
run_once: True
|
||||
connection: local
|
8
ansible/roles/common/templates/admin-openrc.sh.j2
Normal file
8
ansible/roles/common/templates/admin-openrc.sh.j2
Normal file
@ -0,0 +1,8 @@
|
||||
export OS_PROJECT_DOMAIN_ID=default
|
||||
export OS_USER_DOMAIN_ID=default
|
||||
export OS_PROJECT_NAME=admin
|
||||
export OS_TENANT_NAME=admin
|
||||
export OS_USERNAME=admin
|
||||
export OS_PASSWORD={{ keystone_admin_password }}
|
||||
export OS_AUTH_URL=http://{{ kolla_internal_address }}:{{ keystone_admin_port }}/v3
|
||||
export OS_IDENTITY_API_VERSION=3
|
@ -464,12 +464,15 @@ kolla_internal_address.
|
||||
|
||||
Useful tools
|
||||
-------------
|
||||
View tools/openrc-example for an example of an openrc that may be used with
|
||||
the environment. The following command will initialize an environment with a
|
||||
glance image and neutron networks:
|
||||
If run with the post-deploy.yml, an openrc file is created as
|
||||
\/etc\/kolla\/admin-openrc.sh on the deploy node. Or view tools/openrc-example
|
||||
for an example of an openrc that may be used with the environment. The
|
||||
following command will initialize an environment with a glance image and
|
||||
neutron networks:
|
||||
|
||||
::
|
||||
|
||||
source /etc/kolla/admin-openrc.sh
|
||||
kolla/tools/init-runonce
|
||||
|
||||
Debugging Kolla
|
||||
|
Loading…
Reference in New Issue
Block a user