-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathsetup.py
executable file
·126 lines (122 loc) · 8 KB
/
setup.py
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
#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
from setuptools import setup, find_packages
def requirements(filename):
with open(filename) as f:
lines = f.read().splitlines()
return lines
setup(
name='ContrailProvisioning',
version='0.1dev',
packages=find_packages(),
include_package_data=True,
long_description="Contrail VNC Provisioning API Implementation",
install_requires=requirements('requirements.txt'),
entry_points = {
'console_scripts' : [
# Setup scripts
'setup-vnc-amqp = contrail_provisioning.common.amqp_setup:main',
'setup-vnc-keepalived = contrail_provisioning.common.keepalived_setup:main',
'setup-vnc-openstack = contrail_provisioning.openstack.setup:main',
'setup-vnc-galera = contrail_provisioning.openstack.ha.galera_setup:main',
'setup-vnc-database = contrail_provisioning.database.setup:main',
'setup-vnc-config = contrail_provisioning.config.setup:main',
'setup-vnc-control = contrail_provisioning.control.setup:main',
'setup-vnc-collector = contrail_provisioning.collector.setup:main',
'setup-vnc-webui = contrail_provisioning.webui.setup:main',
'setup-vnc-compute = contrail_provisioning.compute.setup:main',
'setup-vnc-storage = contrail_provisioning.storage.setup:main',
'setup-vnc-interfaces = contrail_provisioning.common.interface_setup:main',
'setup-vnc-static-routes = contrail_provisioning.common.staticroute_setup:main',
'setup-vnc-livemigration = contrail_provisioning.storage.livemigration_setup:main',
'setup-vnc-storage-webui = contrail_provisioning.storage.webui_setup:main',
'setup-vcenter-plugin = contrail_provisioning.vcenter_plugin.setup:main',
'setup-vnc-tor-agent = contrail_provisioning.compute.toragent.setup:main',
'add-mysql-perm = contrail_provisioning.openstack.ha.galera_setup:add_mysql_perm',
'add-galera-config = contrail_provisioning.openstack.ha.galera_setup:add_galera_cluster_config',
'update-zoo-servers = contrail_provisioning.database.setup:update_zookeeper_servers',
'restart-zoo-server = contrail_provisioning.database.setup:restart_zookeeper_server',
'update-cfgm-config = contrail_provisioning.config.setup:fix_cfgm_config_files',
'update-collector-config = contrail_provisioning.collector.setup:fix_collector_config',
'update-webui-config = contrail_provisioning.webui.setup:fix_webui_config',
'remove-galera-node = contrail_provisioning.openstack.ha.galera_setup:remove_galera_node',
'unregister-openstack-services = contrail_provisioning.openstack.setup:service_unregister',
'readjust-cassandra-seed-list = contrail_provisioning.database.setup:readjust_seed_list',
'decommission-cassandra-node = contrail_provisioning.database.setup:decommission_cassandra_node',
'remove-cassandra-node = contrail_provisioning.database.setup:remove_cassandra_node',
# Reset scripts
'reset-vnc-database = contrail_provisioning.database.reset:main',
# Upgrade scripts
'upgrade-vnc-openstack = contrail_provisioning.openstack.upgrade:main',
'upgrade-vnc-database = contrail_provisioning.database.upgrade:main',
'migrate-vnc-database = contrail_provisioning.database.migrate:main',
'upgrade-vnc-config = contrail_provisioning.config.upgrade:main',
'upgrade-vnc-control = contrail_provisioning.control.upgrade:main',
'upgrade-vnc-collector = contrail_provisioning.collector.upgrade:main',
'upgrade-vnc-webui = contrail_provisioning.webui.upgrade:main',
'upgrade-vnc-compute = contrail_provisioning.compute.upgrade:main',
# Helper scripts
'setup-quantum-in-keystone = contrail_provisioning.config.quantum_in_keystone_setup:main',
'storage-fs-setup = contrail_provisioning.storage.storagefs.setup:main',
'compute-live-migration-setup = contrail_provisioning.storage.compute.livemigration:main',
'livemnfs-setup = contrail_provisioning.storage.storagefs.livemnfs_setup:main',
'storage-webui-setup = contrail_provisioning.storage.webui.setup:main',
],
},
scripts = [
# Common executables
'contrail_provisioning/common/scripts/contrail-lib.sh',
'contrail_provisioning/common/scripts/contrail-openstack-lib.sh',
'contrail_provisioning/common/scripts/setup-pki.sh',
'contrail_provisioning/common/scripts/contrail-rmq-monitor.sh',
'contrail_provisioning/common/scripts/contrail-ha-check.sh',
'contrail_provisioning/common/scripts/create-ssl-certs.sh',
# Config executables
'contrail_provisioning/config/scripts/config-server-setup.sh',
'contrail_provisioning/config/scripts/config-server-cleanup.sh',
'contrail_provisioning/config/scripts/quantum-server-setup.sh',
'contrail_provisioning/config/scripts/create-api-ssl-certs.sh',
# Collector executables
'contrail_provisioning/collector/scripts/collector-server-setup.sh',
'contrail_provisioning/collector/scripts/collector-server-cleanup.sh',
# Vcenter Plugin executables
'contrail_provisioning/vcenter_plugin/scripts/vcenter-plugin-setup.sh',
# Control executables
'contrail_provisioning/control/scripts/control-server-setup.sh',
'contrail_provisioning/control/scripts/control-server-cleanup.sh',
# Compute executables
'contrail_provisioning/compute/scripts/compute-server-setup.sh',
'contrail_provisioning/compute/scripts/compute-server-cleanup.sh',
# Webui executables
'contrail_provisioning/webui/scripts/webui-server-setup.sh',
'contrail_provisioning/webui/scripts/webui-server-cleanup.sh',
# Database executables
'contrail_provisioning/database/scripts/database-server-setup.sh',
'contrail_provisioning/database/scripts/database-server-cleanup.sh',
# Openstack executables
'contrail_provisioning/openstack/scripts/cinder-server-setup.sh',
'contrail_provisioning/openstack/scripts/keystone-server-setup.sh',
'contrail_provisioning/openstack/scripts/glance-server-setup.sh',
'contrail_provisioning/openstack/scripts/nova-server-setup.sh',
'contrail_provisioning/openstack/scripts/heat-server-setup.sh',
'contrail_provisioning/openstack/scripts/setup-service-token.sh',
'contrail_provisioning/openstack/scripts/contrail-bootstrap-galera.sh',
'contrail_provisioning/openstack/scripts/contrail-cmon-monitor.sh',
'contrail_provisioning/openstack/scripts/contrail-token-clean.sh',
'contrail_provisioning/openstack/scripts/contrail-keystone-setup.sh',
'contrail_provisioning/openstack/scripts/contrail-newton-keystone-setup.sh',
'contrail_provisioning/openstack/scripts/contrail-ha-newton-keystone-setup.sh',
'contrail_provisioning/openstack/scripts/chk_ctrldata.sh',
'contrail_provisioning/openstack/scripts/barbican-server-setup.sh',
'contrail_provisioning/openstack/scripts/create-keystone-ssl-certs.sh',
# Openstack HA executables
'contrail_provisioning/openstack/ha/scripts/contrail-ha-keystone-setup.sh',
'contrail_provisioning/openstack/scripts/contrail-galera-check.sh',
# Config file rewrite executables
'contrail_provisioning/compute/scripts/vrouter-agent.conf.sh',
# Tools
'tools/openstack-config',
'tools/contrail-config',
]
)