Merge "dev mode: Add support for keystone"

This commit is contained in:
Zuul 2018-01-17 03:44:35 +00:00 committed by Gerrit Code Review
commit 319dd40fc2
3 changed files with 19 additions and 0 deletions

View File

@ -10,6 +10,7 @@ keystone_services:
volumes:
- "{{ node_config_directory }}/keystone/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "{{ kolla_dev_repos_directory ~ '/keystone/keystone:/var/lib/kolla/venv/lib/python2.7/site-packages/keystone' if keystone_dev_mode | bool else '' }}"
- "kolla_logs:/var/log/kolla/"
- "{% if keystone_token_provider == 'fernet' %}keystone_fernet_tokens:/etc/keystone/fernet-keys{% endif %}"
keystone-ssh:
@ -74,3 +75,11 @@ keystone_ssh_image_full: "{{ keystone_ssh_image }}:{{ keystone_ssh_tag }}"
keystone_logging_debug: "{{ openstack_logging_debug }}"
openstack_keystone_auth: "{{ openstack_auth }}"
####################
# Kolla
####################
keystone_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
keystone_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
keystone_dev_mode: "{{ kolla_dev_mode }}"

View File

@ -0,0 +1,6 @@
---
- name: Cloning keystone source repository for development
git:
repo: "{{ keystone_git_repository }}"
dest: "{{ kolla_dev_repos_directory }}/{{ project_name }}"
update: "{{ keystone_dev_repos_pull }}"

View File

@ -1,6 +1,10 @@
---
- include: config.yml
- include: clone.yml
when:
- keystone_dev_mode | bool
- include: bootstrap.yml
- name: Flush handlers