-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmain_mitaka_install.bash
More file actions
154 lines (106 loc) · 4.92 KB
/
main_mitaka_install.bash
File metadata and controls
154 lines (106 loc) · 4.92 KB
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
#!/bin/bash
#
# Unattended/SemiAutomatted OpenStack Installer
# Vinoth Kumar Selvaraj
# E-Mail: vinothkumar6664@me.com
# OpenStack MITAKA for Ubuntu 14.04lts
#
#
#
#Install the all openstack packages at once!
#Install the MariaDB and create the appropriate Databases;
#
bash dbinstall.bash
bash mitaka_package_install.bash
#
#Backup the default files that comes with package installation.
#
#backup default memcached files
cp /etc/memcached.conf /etc/memcached.conf-bkp
#backup default keystone files
cp /etc/keystone/keystone.conf /etc/keystone/keystone.conf-bkp
cp /etc/keystone/keystone-paste.ini /etc/keystone/keystone-paste.ini-bkp
#backup default apache files
cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf-bkp
#cp /etc/apache2/sites-available/wsgi-keystone.conf /etc/apache2/sites-available/wsgi-keystone.conf-bkp
#backup default glance files
cp /etc/glance/glance-api.conf /etc/glance/glance-api.conf-bkp
cp /etc/glance/glance-registry.conf /etc/glance/glance-registry.conf-bkp
#backup default nova files
cp /etc/nova/nova.conf /etc/nova/nova.conf-bkp
cp /etc/nova/nova-compute.conf /etc/nova/nova-compute.conf-bkp
#backup default neutron files
cp /etc/neutron/neutron.conf /etc/neutron/neutron.conf-bkp
cp /etc/neutron/metadata_agent.ini /etc/neutron/metadata_agent.ini-bkp
cp /etc/neutron/l3_agent.ini /etc/neutron/l3_agent.ini-bkp
cp /etc/neutron/dhcp_agent.ini /etc/neutron/dhcp_agent.ini-bkp
cp /etc/neutron/plugins/ml2/linuxbridge_agent.ini /etc/neutron/plugins/ml2/linuxbridge_agent.ini-bkp
cp /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugins/ml2/ml2_conf.ini-bkp
#backup default horizon files
cp /etc/openstack-dashboard/local_settings.py /etc/openstack-dashboard/local_settings.py-bkp
#backup default manila files
cp /etc/manila/manila.conf /etc/manila/manila.conf-bkp
#
#Copy the pre-configured opensatck configuration file
#into the appropriate directories
#
#Copy pre-configured mysql-openstack files
cp ./mitaka_configration/mysql/conf.d/openstack.cnf /etc/mysql/conf.d/openstack.cnf
service mysql restart
#copy memcache files
cp ./mitaka_configration/memcached.conf /etc/memcached.conf
service memcached restart
#copy pre-configured keystone files
cp ./mitaka_configration/keystone/keystone.conf /etc/keystone/keystone.conf
#cp ./mitaka_configration/keystone/keystone-paste.ini /etc/keystone/keystone-paste.ini
#service keystone stop
#copy pre-configured apache files
cp ./mitaka_configration/apache2/apache2.conf /etc/apache2/apache2.conf
cp ./mitaka_configration/apache2/sites-available/wsgi-keystone.conf /etc/apache2/sites-available/wsgi-keystone.conf
#ln -s /etc/apache2/sites-available/wsgi-keystone.conf /etc/apache2/sites-enabled
#service apache2 restart
#copy pre-configured glance files
cp ./mitaka_configration/glance/glance-api.conf /etc/glance/glance-api.conf
cp ./mitaka_configration/glance/glance-registry.conf /etc/glance/glance-registry.conf
#copy pre-configured nova files
cp ./mitaka_configration/nova/nova.conf /etc/nova/nova.conf
cp ./mitaka_configration/nova/nova-compute.conf /etc/nova/nova-compute.conf
#copy pre-configured neutron files
cp ./mitaka_configration/neutron/neutron.conf /etc/neutron/neutron.conf
cp ./mitaka_configration/neutron/metadata_agent.ini /etc/neutron/metadata_agent.ini
cp ./mitaka_configration/neutron/l3_agent.ini /etc/neutron/l3_agent.ini
cp ./mitaka_configration/neutron/dhcp_agent.ini /etc/neutron/dhcp_agent.ini
cp ./mitaka_configration/neutron/plugins/ml2/linuxbridge_agent.ini /etc/neutron/plugins/ml2/linuxbridge_agent.ini
cp ./mitaka_configration/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugins/ml2/ml2_conf.ini
#copy pre-configured horizon files
cp ./mitaka_configration/openstack-dashboard/local_settings.py /etc/openstack-dashboard/local_settings.py
cp ./mitaka_configration/logo-splash.png /usr/share/openstack-dashboard/openstack_dashboard/static/dashboard/img/logo-splash.png
service apache2 restart
#copy pre-configured manila files
cp ./mitaka_configration/manila/manila.conf /etc/manila/manila.conf
#
#Run the terminal commands
#sourcing environment is important but not before keystone
#
#run basic environment setup commands
bash mitaka_terminal_commands/basic_terminal_commands.bash
#run keystone environment set commands
bash mitaka_terminal_commands/keystone_terminal_commands.bash
source admin-openrc
#run glance environment set commands
bash mitaka_terminal_commands/glance_terminal_commands.bash
#run nova environment set commands
bash mitaka_terminal_commands/nova_terminal_commands.bash
#run neutron environment set commands
bash mitaka_terminal_commands/neutron_terminal_commands.bash
#run manila environment set commands
bash mitaka_terminal_commands/manila_terminal_commands.bash
#
#Restore git clone default IP file in case of re-running
#
mv mitaka_configration mitaka_configration_executed
cp -r mitaka_configration_bkp mitaka_configration
#Branding hellovinoth
#echo "Installation successful :-)"
cp welcome-vinoth /etc/motd
cat hellovinoth-logo