summaryrefslogtreecommitdiff
path: root/devstack/local.conf
blob: 529b625d38379a7570a3bcd688406f340c75952e (plain)
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259

[[local|localrc]]

LOGFILE=$DEST/logs/stack.sh.log
VERBOSE=TRUE

### NETWORK SETTINGS ###
#
# Change the FLOATING_RANGE to whatever IPs VM is working in.
# In NAT mode it is subnet VMWare Fusion provides, in bridged mode it is your local network.
# But only use the top end of the network by using a /27 and starting at the 224 octet.
#FLOATING_RANGE=192.168.1.224/27
#FIXED_RANGE=10.0.0.1/24
#FIXED_NETWORK_SIZE=256
#FLAT_INTERFACE=eth0
#EXT_GW_IP=192.168.122.1
HOST_IP=127.0.0.1
SERVICE_HOST=$HOST_IP
IMAGE_HOST=$HOST_IP
IDENTITY_HOST=$HOST_IP

### SET PASSWORDS FOR SERVICES AND USERS ###
#
ADMIN_PASSWORD=secret
MYSQL_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50


### SET SOME INSTALL OPTIONS ###
#
# run already-installed devstack in offline mode
# Set ``OFFLINE`` to ``True`` to configure ``stack.sh`` to run cleanly without
# Internet access. ``stack.sh`` must have been previously run with Internet
# access to install prerequisites and fetch repositories.
#OFFLINE=True

GIT_BASE=${GIT_BASE:-https://git.openstack.org}

# Reclone will ensure any repos already present are not re-cloned
#
# To review a patch to devstack itself, set this to yes, then:
# cd /opt/stack/searchlight
# git review -d <gerrit-id>
# <devstack>/unstack.sh
# <devstack>/stack.sh
RECLONE=no

# always upgrade all Python dependencies
PIP_UPGRADE=False

# Set libraries that will be installed from git and not PyPI
# e.g. python-searchlightclient (not yet supported)
#LIBS_FROM_GIT=python-searchlightclient

### ADD SOME IMAGES TO GLANCE ###
#
# latest cirros qcow2 image instead of UEC ones
IMAGE_URLS+=",http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"

# latest Ubuntu Trusty amd64 cloud image
IMAGE_URLS+=",https://cloud-images.ubuntu.com/releases/trusty/release/ubuntu-14.04-server-cloudimg-amd64-disk1.img"

# Fedora 21 cloud image (e.g. for AWS LoadBalancer resource in Heat)
#IMAGE_URLS+=",http://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/x86_64/Fedora-Cloud-Base-20141203-21.x86_64.qcow2"


### CONFIGURE INSTALLED SERVICES ###
#
# Default set of components installed (as of DevStack Juno) is:
# - Nova with Nova-network
# - Keystone
# - Glance
# - Cinder with LVM backend
# - Horizon
# The below changes it.


### HEAT ###
#
# enable Heat services
enable_service h-eng h-api h-api-cfn h-api-cw heat

# (ON REVIEW) Install image for Heat's integration tests
HEAT_TEST_IMAGE=True

### CINDER ###
#
# Do not securely rewrite cinder volumes on delete
#CINDER_SECURE_DELETE=False

### HORIZON ###
#
# disable Horizon (Dashboard)
#disable_service horizon
HORIZON_BRANCH=master

### NEUTRON ###
#
# disable Nova-network and enable Neutron
disable_service n-net
enable_service q-svc q-agt q-dhcp q-l3 q-meta q-metering q-lbaas  q-fwaas neutron

### CEILOMETER ###
#
# metering services
#enable_service ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector

# alarming services
#enable_service ceilometer-alarm-evaluator,ceilometer-alarm-notifier

# api services
# enable_service ceilometer-api

# set shorter sample collection interval (default is 600)
#CEILOMETER_PIPELINE_INTERVAL=60

### SWIFT ###
#
enable_service s-proxy s-object s-container s-account

# set swift hash - the hash below is result of
# echo "SWIFT_HASH" | md5sum | awk '{print $1}'
SWIFT_HASH=096d08da4f8d4cce3a724c5f6c18f055
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data/swift

### DESIGNATE ###
#
enable_plugin designate https://git.openstack.org/openstack/designate

# Searchlight
#
enable_plugin searchlight https://git.openstack.org/openstack/searchlight
enable_service searchlight-api
enable_service searchlight-listener

enable_plugin searchlight-ui https://git.openstack.org/openstack/searchlight-ui

### POST CONFIG STAGE SETTINGS ###
#
# fix to allow access to instance vnc console when accessing Horizon via tunnel
[[post-config|$NOVA_CONF]]
[DEFAULT]
#novncproxy_base_url = http://172.18.200.23:6127/vnc_auto.html

[notifications]
notify_on_state_change = vm_and_task_state

[oslo_messaging_notifications]
driver = messagingv2

[[post-config|$NEUTRON_CONF]]
[oslo_messaging_notifications]
driver = messagingv2

# decrease number of Heat engine workers, when too much for devstack
[[post-config|$HEAT_CONF]]
[DEFAULT]
num_engine_workers = 2

[[post-config|$GLANCE_API_CONF]]
[oslo_messaging_notifications]
driver = messagingv2

[[post-config|$CINDER_CONF]]
[oslo_messaging_notifications]
driver = messagingv2

[[post-config|$DESIGNATE_CONF]]
[oslo_messaging_notifications]
driver = messagingv2

### Searchlight Configuration ###

[[post-config|$SEARCHLIGHT_CONF]]

[elasticsearch]
index_settings = number_of_shards:1,number_of_replicas:0

[manage]
#workers = 3

[listener]
#notifications_pool = searchlight-listener

[resource_plugin]
#notifications_topic = notifications
#resource_group_name = searchlight

[service_credentials:nova]
compute_api_version = 2.1

[resource_plugin:os_nova_server]
enabled = True
#admin_only_fields = OS-EXT-STS:vm_state

[resource_plugin:os_nova_hypervisor]
enabled = True

[resource_plugin:os_nova_flavor]
notifications_topics_exchanges = versioned_notifications,nova
enabled = True

[resource_plugin:os_nova_servergroup]
enabled = True

[resource_plugin:os_glance_image]
enabled = True

[resource_plugin:os_glance_metadef]
enabled = True

[resource_plugin:os_cinder_volume]
enabled = True

[resource_plugin:os_cinder_snapshot]
enabled = True

[resource_plugin:os_designate_zone]
enabled = True

[resource_plugin:os_designate_recordset]
enabled = True

[resource_plugin:os_neutron_net]
enabled = True

[resource_plugin:os_neutron_port]
enabled = True

[resource_plugin:os_neutron_floatingip]
enabled = True

[resource_plugin:os_neutron_security_group]
enabled = True

## SWIFT SETTINGS ###
# At this time we recommend that you manually enable the Searchlight plugins
# for Swift after devstack has completed stacking. Please follow the
# instructions in the docs:
#
# https://docs.openstack.org/searchlight/latest/admin/plugins/swift.html
#
# Notifications must be configured properly for searchlight to process
# incremental updates. There is a middleware patch to provide Swift updates.
# Please see the plugin guide for swift for more information.

[resource_plugin:os_swift_account]
enabled = False
#Specify same value as in swift proxy config for reseller_prefix
reseller_prefix = AUTH_

[resource_plugin:os_swift_container]
enabled = False

[resource_plugin:os_swift_object]
enabled = False