forked from jamielennox/rippowam
/
serviceauth.yml
93 lines (81 loc) · 2.54 KB
/
serviceauth.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
#- name: python-keystoneclient-kerberos
# yum: name=python-keystoneclient-kerberos
# state=installed
- name: nova v3 authentication
ini_file: section=keystone_authtoken
dest=/etc/nova/nova.conf
option={{ item.key }}
value={{ item.value }}
with_dict: "{{ service_authtoken }}"
notify:
- restart nova-api
- name: nova v3 authentication for cinder
ini_file: section=cinder
dest=/etc/nova/nova.conf
option={{ item.key }}
value={{ item.value }}
with_dict: "{{ service_authtoken }}"
notify:
- restart nova-api
- name: glance-api v3 authentication
ini_file: section=keystone_authtoken
dest=/etc/glance/glance-api.conf
option={{ item.key }}
value={{ item.value }}
with_dict: "{{ service_authtoken }}"
notify:
- restart glance-api
- name: glance-registry v3 authentication
ini_file: section=keystone_authtoken
dest=/etc/glance/glance-registry.conf
option={{ item.key }}
value={{ item.value }}
with_dict: "{{ service_authtoken }}"
notify:
- restart glance-registry
- name: cinder v3 authentication
ini_file: section=keystone_authtoken
dest=/etc/cinder/cinder.conf
option={{ item.key }}
value={{ item.value }}
with_dict: "{{ service_authtoken }}"
notify:
- restart cinder-api
- name: neutron v3 authentication
ini_file: section=keystone_authtoken
dest=/etc/neutron/neutron.conf
option={{ item.key }}
value={{ item.value }}
with_dict: "{{ service_authtoken }}"
notify:
- restart neutron-api
- name: neutron v3 authentication for nova
ini_file: section=nova
dest=/etc/neutron/neutron.conf
option={{ item.key }}
value={{ item.value }}
with_dict: "{{ service_authtoken }}"
notify:
- restart neutron-api
- name: neutron v3 authentication continued
ini_file: section=DEFAULT
dest=/etc/neutron/neutron.conf
option=nova_admin_auth_url
value="https://{{ hostname }}:5000/v3"
notify:
- restart neutron-api
- name: nova/neutron v3 authentication
ini_file: section=neutron
dest=/etc/nova/nova.conf
option={{ item.key }}
value={{ item.value }}
with_dict: "{{ service_authtoken }}"
notify:
- restart nova-compute
- name: remove nova v2 overrides
ini_file: dest=/usr/share/nova/nova-dist.conf
section=keystone_authtoken
state=absent
notify:
- restart nova-api