-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpurge-all.sh
67 lines (57 loc) · 1.25 KB
/
purge-all.sh
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
#!/bin/bash
# Mark OpenVSwitch packages as 'manually installed'
# To avoid accidential deleting during 'apt-get autoremove'
apt-get --yes install \
openvswitch-switch \
openvswitch-common
# Purge OpenStack packages
apt-get --yes purge \
cinder-api \
cinder-scheduler \
cinder-volume \
python-cinderclient \
nova-api \
nova-cert \
nova-common \
nova-conductor \
nova-scheduler \
python-nova \
python-novaclient \
nova-consoleauth \
novnc \
nova-novncproxy \
nova-compute-kvm \
openstack-dashboard \
memcached \
python-memcache \
sheepdog \
glance \
heat-api \
heat-api-cfn \
heat-api-cloudwatch \
heat-common \
heat-engine \
python-heat \
python-heatclient \
keystone \
python-keystone \
python-keystoneclient \
python-mysqldb \
mysql-server \
neutron-server \
neutron-plugin-openvswitch-agent \
neutron-dhcp-agent \
neutron-l3-agent \
rabbitmq-server
# Purge other packages
apt-get --yes autoremove
# Remove some folders
rm -rf /etc/cinder
rm -rf /etc/glance
rm -rf /etc/heat
rm -rf /etc/keystone
rm -rf /etc/neutron
rm -rf /etc/nova
rm -rf /var/lib/mysql
# Remove old certificates
rm /var/lib/neutron/keystone-signing/*