Merge "Fix genconfig and reconfigure for magnum"

This commit is contained in:
Jenkins 2016-10-07 13:51:04 +00:00 committed by Gerrit Code Review
commit 78b3446f48
3 changed files with 8 additions and 10 deletions

View File

@ -30,5 +30,7 @@ magnum_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ ma
magnum_logging_debug: "{{ openstack_logging_debug }}"
magnum_keystone_user: "magnum"
magnum_trustee_domain_admin: "magnum_trustee_domain_admin"
magnum_trustee_domain: "magnum"
openstack_magnum_auth: "{'auth_url':'{{ openstack_auth.auth_url }}','username':'{{ openstack_auth.username }}','password':'{{ openstack_auth.password }}','project_name':'{{ openstack_auth.project_name }}'}"

View File

@ -42,7 +42,7 @@
- name: Creating Magnum trustee domain
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
-m os_keystone_domain
-a "name=magnum
-a "name={{ magnum_trustee_domain }}
description='Owns users and projects created by magnum'
auth={{ '{{ openstack_magnum_auth }}' }}"
-e "{'openstack_magnum_auth':{{ openstack_magnum_auth }}}"
@ -60,8 +60,8 @@
- name: Creating Magnum trustee user
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
-m os_user
-a "name=magnum_trustee_domain_admin
domain=magnum
-a "name={{ magnum_trustee_domain_admin }}
domain={{ magnum_trustee_domain }}
password={{ magnum_keystone_password }}
auth={{ '{{ openstack_magnum_auth }}' }}"
-e "{'openstack_magnum_auth':{{ openstack_magnum_auth }}}"
@ -72,15 +72,11 @@
delay: 5
run_once: True
- name: Setting Magnum trustee user value
set_fact:
magnum_trustee_domain_admin_id: "{{ (trustee_user.stdout.split('localhost | SUCCESS => ')[1]|from_json).user.id }}"
- name: Creating Magnum trustee user role
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
-m os_user_role
-a "domain={{ magnum_trustee_domain_id }}
user={{ magnum_trustee_domain_admin_id }}
user={{ magnum_trustee_domain_admin }}
role=admin
auth={{ '{{ openstack_magnum_auth }}' }}"
-e "{'openstack_magnum_auth':{{ openstack_magnum_auth }}}"

View File

@ -53,8 +53,8 @@ memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansi
[trust]
trustee_domain_admin_password = {{ magnum_keystone_password }}
trustee_domain_admin_id = {{ magnum_trustee_domain_admin_id }}
trustee_domain_id = {{ magnum_trustee_domain_id}}
trustee_domain_admin_name = {{ magnum_trustee_domain_admin }}
trustee_domain_name = {{ magnum_trustee_domain }}
[oslo_concurrency]
lock_path = /var/lib/magnum/tmp