Make openstack management commands work inside
keystone docker.
This commit is contained in:
parent
1f88030c87
commit
b6a439291f
@ -19,6 +19,7 @@ RUN mkdir /etc/keystone/fernet-keys
|
|||||||
|
|
||||||
RUN chown keystone: /etc/keystone/fernet-keys
|
RUN chown keystone: /etc/keystone/fernet-keys
|
||||||
|
|
||||||
|
COPY admin-openrc.sh root/admin-openrc.sh
|
||||||
|
|
||||||
#RUN keystone-manage db_sync
|
#RUN keystone-manage db_sync
|
||||||
CMD apachectl -DFOREGROUND
|
CMD apachectl -DFOREGROUND
|
||||||
|
|
||||||
|
@ -13,7 +13,12 @@
|
|||||||
|
|
||||||
- name: install Dockerfile
|
- name: install Dockerfile
|
||||||
copy:
|
copy:
|
||||||
src: files/
|
src: files
|
||||||
|
dest: /srv/keystone
|
||||||
|
|
||||||
|
- name: keystone credentials file
|
||||||
|
template:
|
||||||
|
src: templates/admin-openrc.sh
|
||||||
dest: /srv/keystone
|
dest: /srv/keystone
|
||||||
|
|
||||||
- name: build keystone image
|
- name: build keystone image
|
||||||
|
5
roles/keystone/templates/admin-openrc.sh
Normal file
5
roles/keystone/templates/admin-openrc.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export OS_TENANT_NAME=admin
|
||||||
|
export OS_USERNAME=admin
|
||||||
|
export OS_PASSWORD=geheim
|
||||||
|
export OS_AUTH_URL=http://{{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}:35357/v3
|
||||||
|
export OS_IDENTITY_API_VERSION=3
|
Loading…
Reference in New Issue
Block a user