19cd41703a1024e03b88dc653653bc4ab485962a
[fuel.git] / mcp / config / states / openstack
1 #!/bin/bash -e
2 ##############################################################################
3 # Copyright (c) 2017 Mirantis Inc., Enea AB and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 CI_DEBUG=${CI_DEBUG:-0}; [[ "${CI_DEBUG}" =~ (false|0) ]] || set -x
11
12 salt -I 'nfs:server' file.mkdir /srv/nova/instances
13 salt -I 'nfs:server' state.sls nfs
14 salt -I 'nfs:client' state.sls nfs
15
16 salt -I 'rabbitmq:server' state.sls rabbitmq
17 salt -I 'rabbitmq:server' cmd.run "rabbitmqctl status"
18
19 salt -I 'mysql:server' state.sls mysql
20 salt -I 'memcached:server' state.sls memcached
21 salt -I 'haproxy:proxy' state.sls haproxy
22
23 salt -I 'keystone:server' state.sls keystone.server
24 salt -I 'keystone:server' service.restart apache2
25 salt -I 'keystone:server' state.sls keystone.client
26 salt -I 'keystone:server' cmd.run ". /root/keystonercv3; openstack service list"
27
28 salt -I 'glance:server' state.sls glance
29 salt -I 'nova:controller' state.sls nova
30 salt -I 'heat:server' state.sls heat
31
32 salt -I 'cinder:controller' state.sls cinder
33 salt -I 'cinder:volume' state.sls cinder
34
35 salt -I 'neutron:server' state.sls neutron
36 salt -I 'neutron:gateway' state.sls neutron
37
38 salt -I 'nova:compute' state.sls nova
39
40 salt -I 'mongodb:server' state.sls mongodb
41 salt -I 'aodh:server' state.sls aodh
42 salt -I 'ceilometer:server' state.sls ceilometer
43 salt -I 'ceilometer:agent' state.sls ceilometer
44
45 salt -I 'horizon:server' state.sls horizon