Make openstack management commands work inside

keystone docker.
This commit is contained in:
Egon Rijpkema 2017-06-20 11:16:00 +02:00
parent 1f88030c87
commit b6a439291f
3 changed files with 13 additions and 2 deletions

View File

@ -19,6 +19,7 @@ RUN mkdir /etc/keystone/fernet-keys
RUN chown keystone: /etc/keystone/fernet-keys
COPY admin-openrc.sh root/admin-openrc.sh
#RUN keystone-manage db_sync
CMD apachectl -DFOREGROUND

View File

@ -13,9 +13,14 @@
- name: install Dockerfile
copy:
src: files/
src: files
dest: /srv/keystone
- name: keystone credentials file
template:
src: templates/admin-openrc.sh
dest: /srv/keystone
- name: build keystone image
docker_image:
path: /srv/keystone

View 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