-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontroller2.syscore
More file actions
308 lines (191 loc) · 8.32 KB
/
controller2.syscore
File metadata and controls
308 lines (191 loc) · 8.32 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
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
#!/bin/bash
echo -e '\E[40;33m'"\033[1m"[*] HELLO SYSCORE" \033[0m"
source keystone_source
echo -e '\E[40;31m'"\033[1m"[*] NEUTRON SETTINGS" \033[0m"
sed -i "s/\[filter:authtoken\]//"g /etc/neutron/api-paste.ini
sed -i "s/paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory//"g /etc/neutron/api-paste.ini
echo "[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = openstacktest" >> /etc/neutron/api-paste.ini
echo "[DATABASE]
sql_connection=mysql://neutron:openstacktest@controller/neutron
#Under the OVS section
[OVS]
tenant_network_type = gre
enable_tunneling = True
tunnel_id_ranges = 1:1000
integration_bridge = br-int
tunnel_bridge = br-tun
local_ip = controller
#Firewall driver for realizing neutron security group function
[SECURITYGROUP]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver" >>/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
sed -i 's/http:\/\/localhost:5000\/v2.0/http:\/\/controller:5000\/v2.0/g' /etc/neutron/metadata_agent.ini
sed -i 's/%SERVICE_TENANT_NAME%/service/g' /etc/neutron/metadata_agent.ini
sed -i 's/%SERVICE_USER%/neutron/g' /etc/neutron/metadata_agent.ini
sed -i 's/%SERVICE_PASSWORD%/openstacktest/g' /etc/neutron/metadata_agent.ini
echo "nova_metadata_ip = controller
nova_metadata_port = 8775
metadata_proxy_shared_secret = helloOpenStack" >> /etc/neutron/metadata_agent.ini
echo -e '\E[40;31m'"\033[1m"[*] neutron.conf SETTINGS" \033[0m"
sed -i 's/auth_host = 127.0.0.1/auth_host = controller/g' /etc/neutron/neutron.conf
sed -i 's/admin_tenant_name = %SERVICE_TENANT_NAME%/admin_tenant_name = service/g' /etc/neutron/neutron.conf
sed -i 's/admin_user = %SERVICE_USER%/admin_user = neutron/g' /etc/neutron/neutron.conf
sed -i 's/admin_password = %SERVICE_PASSWORD%/admin_password = openstacktest/g' /etc/neutron/neutron.conf
sed -i 's/connection = sqlite:\/\/\/\/var\/lib\/neutron\/neutron.sqlite/connection = mysql:\/\/neutron:openstacktest@controller\/neutron/g' /etc/neutron/neutron.conf
perl -p -i -e '$.==2 and print "rabbit_host = controller\n"' /etc/neutron/neutron.conf
perl -p -i -e '$.==2 and print "interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
use_namespaces = True
external_network_bridge = br-ex
signing_dir = /var/cache/neutron
admin_tenant_name = service
admin_user = neutron
admin_password = openstacktest
auth_url = http://controller:35357/v2.0
l3_agent_manager = neutron.agent.l3_agent.L3NATAgentWithStateReport
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver\n"' /etc/neutron/l3_agent.ini
perl -p -i -e '$.==2 and print "interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
use_namespaces = True
signing_dir = /var/cache/neutron
admin_tenant_name = service
admin_user = neutron
admin_password = openstacktest
auth_url = http://controller:35357/v2.0
dhcp_agent_manager = neutron.agent.dhcp_agent.DhcpAgentWithStateReport
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
state_path = /var/lib/neutron\n"' /etc/neutron/dhcp_agent.ini
rm /var/lib/neutron/neutron.sqlite
cd /etc/init.d/; for i in $( ls neutron-* ); do sudo service $i restart; cd /root/; done
service dnsmasq restart
neutron agent-list
echo -e '\E[40;33m'"\033[1m"[*] plz neutron ALL SMILE" \033[0m"
echo -e '\E[40;31m'"\033[1m"[*] KVM " \033[0m"
sudo modprobe kvm_intel
kvm-ok
echo "cgroup_device_acl = [
"/dev/null", "/dev/full", "/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
"/dev/rtc", "/dev/hpet","/dev/net/tun"
]" >> /etc/libvirt/qemu.conf
virsh net-destroy default
virsh net-undefine default
echo "listen_tls = 0
listen_tcp = 1
auth_tcp = \"none\"" >> /etc/libvirt/libvirtd.conf
sed -i 's/env libvirtd_opts=\"-d\"/env libvirtd_opts=\"-d -l\"/g' /etc/init/libvirt-bin.conf
sed -i 's/libvirtd_opts=\"-d\"/libvirtd_opts=\"-d -l\"/g' /etc/default/libvirt-bin
echo -e '\E[40;31m'"\033[1m"[*] NOVA SETTINGS" \033[0m"
echo "[DEFAULT]
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/run/lock/nova
verbose=True
api_paste_config=/etc/nova/api-paste.ini
compute_scheduler_driver=nova.scheduler.simple.SimpleScheduler
rabbit_host=controller
nova_url=http://controller:8774/v1.1/
sql_connection=mysql://nova:openstacktest@controller/nova
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
# Auth
use_deprecated_auth=false
auth_strategy=keystone
# Imaging service
glance_api_servers=controller:9292
image_service=nova.image.glance.GlanceImageService
# Vnc configuration
novnc_enabled=true
novncproxy_base_url=http://203.237.143.161:6080/vnc_auto.html
novncproxy_port=6080
vncserver_proxyclient_address=controller
vncserver_listen=0.0.0.0
# Network settings
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://controller:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=openstacktest
neutron_admin_auth_url=http://controller:35357/v2.0
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
#If you want Neutron + Nova Security groups
#firewall_driver=nova.virt.firewall.NoopFirewallDriver
#security_group_api=neutron
#If you want Nova Security groups only, comment the two lines above and uncomment line -1-.
#-1-firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
#Metadata
service_neutron_metadata_proxy = True
neutron_metadata_proxy_shared_secret = helloOpenStack
metadata_host = controller
metadata_listen = 0.0.0.0
metadata_listen_porvt = 8775
# Compute #
compute_driver=libvirt.LibvirtDriver
# Cinder #
volume_api_class=nova.volume.cinder.API
osapi_volume_listen_port=5900
cinder_catalog_info=volume:cinder:internalURL" > /etc/nova/nova.conf
echo "[DEFAULT]
libvirt_type=kvm
libvirt_ovs_bridge=br-int
libvirt_vif_type=ethernet
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
libvirt_use_virtio_for_bridges=True" > /etc/nova/nova-compute.conf
cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i restart; cd /root/;done
rm /var/lib/nova/nova.sqlite
nova-manage db sync
cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i restart; cd /root/;done
nova-manage service list
echo -e '\E[40;31m'"\033[1m"[*] Plz ALL Smile " \033[0m"
echo -e '\E[40;31m'"\033[1m"[*] Last Cinder " \033[0m"
sed -i 's/false/true/g' /etc/default/iscsitarget
service iscsitarget start
service open-iscsi start
echo "[DEFAULT]
rootwrap_config=/etc/cinder/rootwrap.conf
sql_connection = mysql://cinder:openstacktest@controller/cinder
api_paste_config = /etc/cinder/api-paste.ini
iscsi_helper=tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
#osapi_volume_listen_port=5900
# Add these when not using the defaults.
rabbit_host = controller
rabbit_port = 5672
state_path = /var/lib/cinder/"> /etc/cinder/cinder.conf
sed -i "s/\[filter:authtoken\]//"g /etc/cinder/api-paste.ini
sed -i "s/paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory//"g /etc/cinder/api-paste.ini
sed -i "s/auth_host = 127.0.0.1//"g /etc/cinder/api-paste.ini
sed -i "s/auth_port = 35357//"g /etc/cinder/api-paste.ini
sed -i "s/auth_protocol = http//"g /etc/cinder/api-paste.ini
sed -i "s/admin_tenant_name = %SERVICE_TENANT_NAME%//"g /etc/cinder/api-paste.ini
sed -i "s/admin_user = %SERVICE_USER%//"g /etc/cinder/api-paste.ini
sed -i "s/admin_password = %SERVICE_PASSWORD%//"g /etc/cinder/api-paste.ini
echo "[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
service_protocol = http
service_host = controller
service_port = 5000
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = cinder
admin_password = openstacktest" >> /etc/cinder/api-paste.ini
rm /var/lib/cinder/cinder.sqlite
cinder-manage db sync
cd /etc/init.d/; for i in $( ls cinder-* ); do sudo service $i restart; cd /root/; done
source keystone_source
nova-manage service list
neutron agent-list
echo -e '\E[40;31m'"\033[1m"[*] Thank U.. Last Cinder Settings Plz -hand made " \033[0m"