-
Notifications
You must be signed in to change notification settings - Fork 1
/
params.py
144 lines (131 loc) · 9.18 KB
/
params.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# -*- coding: utf-8 -*-
""" This module sets required and optional params for the stuff to be deployed.
::
default is python/django/circus/nginx deployement
PARAMS = {
'role': {
'required_params' : { key description },
'optional_params' : { key description }
}
}
...
"""
PARAMS = {
'default': {
'required_params': {'user': "user for ssh",
'remote_owner': "remote server user",
'remote_group': "remote server user group",
'application_name': "name of wepapp",
'root_package_name': "name of app in webapp",
'remote_home': "remote home root",
'remote_python_version': "remote python version to use",
'remote_virtualenv_root': "remote virtualenv root",
'remote_virtualenv_dir': "remote virtualenv dir for wepapp",
'remote_repo_url': "git repository url",
'local_tmp_dir': "local tmp dir",
'remote_static_root': "root of static files",
'locale': "locale to use on remote",
'timezone': "timezone used on remote",
'keep_releases': "number of old releases to keep",
'roledefs': "Role to use to deploy",
'backends': "backend to use to deploy",
'server_name': "name of webserver",
'short_server_name': "short name of webserver",
'static_folder': "path of static folder",
'goal': "stage to use to deploy (dev,prod,test...)",
'socket_port': "port to use for socket"},
'optional_params': {'excluded_files': "file(s) to exclude when deploying",
'extra_ppa_to_install': "extra ppa(s) to install on remote",
'extra_pkg_to_install': "extra package(s) to install on remote",
'cfg_shared_files': "shared file(s) to deploy in shared dir",
'extra_goals': "extra goal(s) to add to deploy",
'oracle_client_version': "oracle client version to install",
'oracle_download_url': "oracle client download url",
'oracle_remote_dir': "oracle remote directory",
'oracle_packages': "oracle packages to install",
'circus_package_name': "circus package name",
'dest_path': "destination path",
'nginx_location_extra_directives': "nginx location extra directive(s)",
'verbose_output': "verbose output (True/False)",
'no_config_test': "don't check config params (True/False)",
'req_pydiploy_version': "pydiploy version required for checking fabfile syntax",
'extra_symlink_dirs': 'extra dirs to symlink to shared folder',
'tag': 'tag to deploy',
'no_shared_sessions': 'if True add ip_hash to nginx config',
'server_ssl_on': 'use ssl on nginx',
'path_to_cert': 'ssl certificate path',
'path_to_cert_key': 'ssl cert key path',
'map_settings': 'settings to map in django settings files',
'maintenance_title': 'customize maintenance page title',
'maintenance_text': 'customize maintenance page text',
'nginx_force_start': 'if True, it forces to start nginx when nginx is not started',
'socket_host': 'force a socket host',
'no_circus_web': 'provides a way to not install circus-web',
'circus_backend': 'name of the backend to use with circus',
'chaussette_backend': 'name of the backend to use with chaussette',
'run_tests_command': 'name of the command to run tests',
'remote_repo_specific_folder': 'specify a subfolder for the remote repository',
'remote_media_folder': "remote folder of the application's media files",
'media_folder': "path of the application's media files"}
},
'simple': {
'required_params': {'user': "user for ssh",
'remote_owner': "remote server user",
'remote_group': "remote server user group",
'application_name': "name of wepapp",
'root_package_name': "name of app in webapp",
'remote_home': "remote home root",
'remote_python_version': "remote python version to use",
'remote_virtualenv_root': "remote virtualenv root",
'remote_virtualenv_dir': "remote virtualenv dir for wepapp",
'remote_repo_url': "git repository url",
'local_tmp_dir': "local tmp dir",
# 'remote_static_root': "root of static files",
'locale': "locale to use on remote",
'timezone': "timezone used on remote",
'keep_releases': "number of old releases to keep",
'roledefs': "Role to use to deploy",
# 'backends': "backend to use to deploy",
# 'server_name': "name of webserver",
# 'short_server_name': "short name of webserver",
# 'static_folder': "path of static folder",
'goal': "stage to use to deploy (dev,prod,test...)"
# 'socket_port': "port to use for socket"
},
'optional_params': {'excluded_files': "file(s) to exclude when deploying",
'extra_ppa_to_install': "extra ppa(s) to install on remote",
'extra_pkg_to_install': "extra package(s) to install on remote",
'cfg_shared_files': "shared file(s) to deploy in shared dir",
'extra_goals': "extra goal(s) to add to deploy",
# 'oracle_client_version': "oracle client version to install",
# 'oracle_download_url': "oracle client download url",
# 'oracle_remote_dir': "oracle remote directory",
# 'oracle_packages': "oracle packages to install",
# 'circus_package_name': "circus package name",
'dest_path': "destination path",
# 'nginx_location_extra_directives': "nginx location extra directive(s)",
'verbose_output': "verbose output (True/False)",
'no_config_test': "don't check config params (True/False)",
'req_pydiploy_version': "pydiploy version required for checking fabfile syntax",
'extra_symlink_dirs': 'extra dirs to symlink to shared folder',
# 'tag': 'tag to deploy',
# 'no_shared_sessions': 'if True add ip_hash to nginx config',
# 'server_ssl_on': 'use ssl on nginx',
# 'path_to_cert': 'ssl certificate path',
# 'path_to_cert_key': 'ssl cert key path',
'map_settings': 'settings to map in django settings files',
# 'maintenance_title': 'customize maintenance page title',
# 'maintenance_text': 'customize maintenance page text',
# 'nginx_force_start': 'if True, it forces to start nginx when nginx is not started',
# 'socket_host': 'force a socket host',
# 'no_circus_web': 'provides a way to not install circus-web',
# 'circus_backend': 'name of the backend to use with circus',
# 'chaussette_backend': 'name of the backend to use with chaussette',
'run_tests_command': 'name of the command to run tests',
'remote_repo_specific_folder': 'specify a subfolder for the remote repository',
# 'remote_media_folder': "remote folder of the application's media files"
# 'media_folder': "path of the application's media files"
'server_name': "if you want to use an url for the name of the remote app folder instead of the application name (manual bottle or flask app)",
}
}
}