-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpillar.example
182 lines (163 loc) · 5.03 KB
/
pillar.example
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
{# SITE & RELEASE SPECIFIC DATA #}
{%- set enabled_services = 'mysql,key' %}
{%- set yoursvc_name = 'keystone' %}
{%- set yoursvc_domain = 'default' %}
{%- set yoursvc_version = 'v0.2.0' %}
{%- set yoursvc_region = 'RegionOne' %}
{%- set yoursvc_type = yoursvc_name ~ yoursvc_version %}
{%- set yoursvc_endpoint = yoursvc_type %}
{%- set yoursvc_endpath = yoursvc_name ~ '/' ~ yoursvc_version %}
{%- set os_project_name = 'admin' %}
{%- set os_password = 'devstack' %}
{%- set host_ipv4 = grains.ipv4[-1] or '127.0.0.1' %}
{%- set host_ipv6 = '' if not grains.ipv6 else grains.ipv6[-1] %}
{%- set host = host_ipv4 or host_ipv6 %}
{%- set port = '50040' %}
{# mysql host must be 127.0.0.1 #}
{# https://bugs.launchpad.net/devstack/+bug/1735097 #}
{%- set db_host = '127.0.0.1' %}
{# https://bugs.launchpad.net/devstack/+bug/1892531 #}
{# DATA DICTIONARY #}
mysql:
server:
root_password: {{ os_password }} # sync with devstack
mysqld:
bind_address: {{ db_host or host_ipv4 or "127.0.0.1" }} # sync with devstack
devstack:
lookup:
master: template-master
# Just for testing purposes
winner: lookup
added_in_lookup: lookup_value
pkgs_purge:
- python3-simplejson
hide_output: true # see stack.sh output?
local:
stack_user: stack
os_password: {{ os_password }}
os_project_name: {{ os_project_name }}
admin_password: {{ os_password }}
git_branch: 'stable/ussuri'
enabled_services: {{ enabled_services }}
host_ipv4: {{ host_ipv4 }}
host_ipv6: {{ host_ipv6 }}
service_host: {{ host_ipv4 or host_ipv6 }}
db_host: {{ db_host }}
managed:
openrc: False
dir:
tmp: /tmp/devstack {# not sure why centos wants this? #}
{# openstack cli #}
cli:
user:
create:
{{ yoursvc_name }}:
options:
domain: {{ yoursvc_domain }}
password: {{ os_password }}
project: {{ os_project_name }}
enable: True
delete:
demo:
options:
domain: default
alt_demo:
options:
domain: default
group:
create:
service:
options:
domain: {{ yoursvc_domain }}
add user:
service:
target:
- {{ yoursvc_name }}
admins:
options:
domain: {{ yoursvc_domain }}
target:
- {{ os_project_name }}
role:
add:
admin:
options:
project: {{ os_project_name }}
user:
- {{ yoursvc_name }}
service:
options:
project: {{ os_project_name }}
group:
- service
service:
create:
{{ yoursvc_type }}:
options:
name: {{ yoursvc_name }}
description: {{ yoursvc_name }} Service
enable: True
endpoint:
create:
{{ yoursvc_endpoint }} public https://{{ host }}/{{ port }}//{{ yoursvc_version }}/%\(tenant_id\)s:
options:
region: {{ yoursvc_region }}
enable: True
{{ yoursvc_endpoint }} internal https://{{ host }}/{{ port }}/{{ yoursvc_version }}/%\(tenant_id\)s:
options:
region: {{ yoursvc_region }}
enable: True
{{ yoursvc_endpoint }} admin https://{{ host }}/{{ port }}/{{ yoursvc_version }}/%\(tenant_id\)s:
options:
region: {{ yoursvc_region }}
enable: True
{# Delete some presupplied stuff #}
project:
delete:
demo:
options:
domain: default
alt_demo:
options:
domain: default
invisible_to_admin:
options:
domain: default
tofs:
# The files_switch key serves as a selector for alternative
# directories under the formula files directory. See TOFS pattern
# doc for more info.
# Note: Any value not evaluated by `config.get` will be used literally.
# This can be used to set custom paths, as many levels deep as required.
files_switch:
- any/path/can/be/used/here
- id
- roles
- osfinger
- os
- os_family
# All aspects of path/file resolution are customisable using the options below.
# This is unnecessary in most cases; there are sensible defaults.
# Default path: salt://< path_prefix >/< dirs.files >/< dirs.default >
# I.e.: salt://devstack/files/default
# path_prefix: template_alt
# dirs:
# files: files_alt
# default: default_alt
# The entries under `source_files` are prepended to the default source files
# given for the state
# source_files:
# devstack-config-file-file-managed:
# - 'example_alt.tmpl'
# - 'example_alt.tmpl.jinja'
# For testing purposes
source_files:
devstack-config-file-file-managed:
- 'example.tmpl.jinja'
devstack-subcomponent-config-file-file-managed:
- 'subcomponent-example.tmpl.jinja'
# Just for testing purposes
winner: pillar