forked from artefactual-labs/ansible-archivematica-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
238 lines (198 loc) · 10.9 KB
/
main.yml
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
---
# Directory to install source code
archivematica_src_dir: "/opt/archivematica"
# Shared directory for processing, etc
archivematica_src_shareddir: "/var/archivematica/sharedDirectory"
# Components to install
archivematica_src_install_am: "yes"
archivematica_src_install_ss: "yes"
archivematica_src_install_sample_data: "yes"
archivematica_src_install_devtools: "no"
archivematica_src_install_automationtools: "no"
archivematica_src_install_acceptance_tests: "no"
archivematica_src_install_fixity: "no"
archivematica_src_search_enabled: "yes"
#Components to configure
archivematica_src_configure_dashboard: "no"
archivematica_src_configure_ss: "no"
# Define the type of environment: "production" or "development". The latter will deploy some extra stuff to make the development workflow easier.
archivematica_src_environment_type: "production"
# Repositories
archivematica_src_am_repo: "https://github.com/artefactual/archivematica.git"
archivematica_src_ss_repo: "https://github.com/artefactual/archivematica-storage-service.git"
archivematica_src_automation_tools_repo: "https://github.com/artefactual/automation-tools.git"
# Branches
archivematica_src_am_version: "stable/1.12.x"
archivematica_src_ss_version: "stable/0.17.x"
archivematica_src_devtools_version: "master"
archivematica_src_automationtools_version: "master"
archivematica_src_acceptance_tests_version: "master"
# RPM repositories
archivematica_src_rpm_repositories:
archivematica:
baseurl: "https://packages.archivematica.org/1.12.x/centos"
gpgkey: "https://packages.archivematica.org/1.12.x/key.asc"
gpgcheck: 1
archivematica-extras:
baseurl: "https://packages.archivematica.org/1.12.x/centos-extras"
gpgkey: "https://packages.archivematica.org/1.12.x/key.asc"
gpgcheck: 1
# Database settings
archivematica_src_am_db_host: "localhost" # Archivematica database host
archivematica_src_am_db_name: "MCP" # Archivematica database name
archivematica_src_am_db_user: "archivematica" # Archivematica database user
archivematica_src_am_db_password: "demo" # Archivematica database password
# Reset data options
archivematica_src_reset_mcpdb: "false" # Reset AM MCP database
archivematica_src_reset_shareddir: "false" # Reset AM shared directory
archivematica_src_reset_es: "false" # Reset AM Elasticsearch indices
archivematica_src_reset_am_all: "false" # Reset AM Elasticsearch indices, shared directory, MCP database (overrides previous settings)
archivematica_src_reset_ss_db: "false" # Reset the SS database
# Database options
archivematica_src_am_create_db: "true" # Create database (uses root's credentials in ~/.my.cnf)
archivematica_src_am_create_dbuser: "true" # Create user database (uses root's credentials in ~/.my.cnf)
archivematica_src_am_wait_local_mysql: "true" # MCPServer upstart service to wait until MySQL is locally available
# Please note that a playbook using `archivematica_src_am_migrate_from_v1_4` or `archivematica_src_ss_migrate_from_v0_7` is not idempotent, and it will throw an error if run twice. The two migrate related variables should be removed after a successful migration (an alternative could be to specify the `archivematica_src_am_migrate_from_v1_4` and `archivematica_src_ss_migrate_from_v0_7` at run time using `--extra-vars` instead of putting the variables in the playbook).
#
# Clamav settings
#
# The following variables can be used to disable the Clamav daemon socket check and force the TCP socket configuration. When the Clamav daemon is not running on the same server than the pipeline, these variables have to be set to configure the Clamav daemon in the MCPClient
archivematica_src_mcpclient_clamav_use_tcp: "no"
archivematica_src_mcpclient_clamav_tcp_ip: "localhost"
archivematica_src_mcpclient_clamav_tcp_port: "3310"
#
# Logging settings
#
archivematica_src_logging_backward_compatible: "yes"
archivematica_src_dashboard_logdir: "/var/log/archivematica/dashboard"
archivematica_src_mcpclient_logdir: "/var/log/archivematica/MCPClient"
archivematica_src_mcpserver_logdir: "/var/log/archivematica/MCPServer"
archivematica_src_ss_logdir: "/var/log/archivematica/storage-service"
archivematica_src_syslog_logdir: "/var/log/archivematica"
archivematica_src_dashboard_log_debug_maxbytes: "104857600" # 100 MBytes
archivematica_src_mcpclient_log_debug_maxbytes: "4194304" # 4 Mbytes
archivematica_src_mcpserver_log_debug_maxbytes: "4194304" # 4 Mbytes
archivematica_src_ss_log_debug_maxbytes: "104857600" # 100 MBytes
archivematica_src_dashboard_log_maxbytes: "20971520" # 20 Mbytes
archivematica_src_mcpclient_log_maxbytes: "4194304" # 4 Mbytes
archivematica_src_mcpserver_log_maxbytes: "4194304" # 4 Mbytes
archivematica_src_ss_log_maxbytes: "20971520" # 20 Mbytes
#
# Nginx
#
# Use of UNIX sockets breaks AM API whitelisting that relis on REMOTE_ADDR. Using TCP sockets instead. See https://github.com/benoitc/gunicorn/issues/797 for more details.
archivematica_src_am_dashboard_nginx_bind: "127.0.0.1:8002"
archivematica_src_am_dashboard_nginx_proxy_read_timeout: "172800s"
archivematica_src_ss_nginx_bind: "127.0.0.1:8001"
archivematica_src_ss_nginx_proxy_read_timeout: "172800s"
# SSL settings
archivematica_src_ssl: "false"
# Include acmetool challenge location in dashboard nginx configuration (see https://github.com/artefactual-labs/ansible-acmetool for more details).
archivematica_src_ssl_include_acme_chlg_loc: "false"
# The following vars need to be defined in the playbook or host_vars:
# archivematica_src_ssl_fullchain: "/var/lib/acme/live/mysite.org/fullchain"
# archivematica_src_ssl_privkey: "/var/lib/acme/live/mysite.org/privkey"
#
# Other components
#
# Pip version
archivematica_src_pip_version: "20.3"
archivematica_src_setuptools_version: "44.1.1"
archivematica_src_wheel_version: "0.35.1"
# Sample data
archivematica_src_install_sample_data_timeout: "3600"
# Automation tools
archivematica_src_automationtools_transfers_logfile: "/var/log/archivematica/automation-tools/transfers.log"
archivematica_src_automationtools_transfers_databasefile: "/var/archivematica/automation-tools/transfers.db"
archivematica_src_automationtools_transfers_pidfile: "/var/archivematica/automation-tools/transfers-pid.lck"
# Acceptance tests
archivematica_src_acceptance_tests_browser_list: [ "Chrome" , "Firefox" ]
archivematica_src_acceptance_tests_chromedriver_version: "2.29"
# Fixity
archivematica_src_fixity_virtualenv: "/usr/share/archivematica/virtualenvs/fixity"
archivematica_src_fixity_version: "master"
archivematica_src_fixity_ss_url: "http://localhost:8000"
archivematica_src_fixity_ss_user: "test"
archivematica_src_fixity_ss_apikey: "XXXX"
#archivematica_src_fixity_report_url: "http://report"
#archivematica_src_fixity_report_username: "test"
#archivematica_src_fixity_report_password: "XXXX"
# Configure AM
# archivematica_src_configure_am_api_key & archivematica_src_configure_ss_api_key can be defined as vars. If not defined they will be autogenerated by the playbook
archivematica_src_configure_ss_user: "test" # SS superuser
archivematica_src_configure_ss_password: "PleaseChangeMe!" # SS superuser password
archivematica_src_configure_ss_email: "[email protected]" # SS superuser email address
archivematica_src_configure_ss_url: "http://localhost:8000" # SS url to register the pipeline
archivematica_src_configure_am_user: "test" # Dashboard admin
archivematica_src_configure_am_password: "PleaseChangeMe!" # Dashboard admin password
archivematica_src_configure_am_email: "[email protected]" # Dashboard admin password
archivematica_src_configure_am_site_url: "127.0.0.1" # Pipeline "Remote name" on SS. Base URL of the pipeline server for making API calls.
archivematica_src_configure_am_org_name: "test org" # Dashboard admin Org name
archivematica_src_configure_am_org_id: "test id" # Dashboard admin Org id
archivematica_src_configure_am_whitelist: '""' # Dashboard API whitelist, IP address or hostnames separated by blank spaces and inside quotes
# Configure GPG
# Uncomment this to add GPG AIPs Store and Backlog locations.
#archivematica_src_configure_gpg:
# gpg_home_directory: "/var/archivematica/storage_service"
# key_user: "{{ archivematica_src_configure_ss_user }}"
# key_passphrase: "passphrase"
# key_comment: "Ansible Generated"
# key_mail: "{{ archivematica_src_configure_ss_email }}"
# space_staging_directory: "/var/archivematica/storage_service"
# aipstore_path: "/var/archivematica/sharedDirectory/www/GPG_AIPsStore"
# aipstore_description: "GPG AIPsStore"
# backlog_path: "/var/archivematica/sharedDirectory/www/GPG_transferBacklog"
# backlog_description: "GPG TransferBacklog"
# Uncomment this to override values from DashboardSettings table.
#archivematica_src_configure_dashboardsettings:
# url: "http://atom.url/" # AtoM URL
# rsync_target: "atom.ip:/tmp" # AtoM rsync target
# email: "[email protected]" # AtoM user
# password: "atom.password" # AtoM password
# base_url: "http://aspace.url:port" # ASpace URL
# user: "aspace.user" # ASpace user
# uri_prefix: "http://amurl" # ASpace uri_prefix
#
# Send logs to syslog
#
archivematica_src_syslog_enabled: "false"
archivematica_src_syslog_server: "localhost"
archivematica_src_syslog_port: "514"
archivematica_src_syslog_storageservice_facility: "local0"
archivematica_src_syslog_storageservice_level: "DEBUG"
archivematica_src_syslog_dashboard_facility: "local1"
archivematica_src_syslog_dashboard_level: "DEBUG"
archivematica_src_syslog_mcpclient_facility: "local2"
archivematica_src_syslog_mcpclient_level: "DEBUG"
archivematica_src_syslog_mcpserver_facility: "local3"
archivematica_src_syslog_mcpserver_level: "DEBUG"
#
# Configure FPR
#
# archivematica_src_configure_fpcommand:
# FITS:
# enabled: '0'
# field_name: 'description'
# MediaInfo:
# enabled: '0'
# field_name: 'description'
# FFProbe:
# enabled: '0'
# field_name: 'description'
# archivematica_src_configure_fprule:
# c3b06895-ef9d-401e-8c51-ac585f955655: #Fits
# enabled: '0'
# field_name: 'uuid'
# 114c9525-d676-4fac-9962-4672faa924bb: #MediaInfo
# enabled: '0'
# field_name: 'command_id'
# 80314f3c-5d48-4ad1-a9f2-2c0f7c7b229d: #FFprobe
# enabled: '0'
# field_name: 'command_id'
#
# Configure SS locations
#
#am_ss_default_locations:
# - { location_purpose: "RP", location_path: "/replicator", location_description: "Replicator location", location_default: "false" }
# - { location_purpose: "AS", location_path: "/aipstore", location_description: "AipStore", location_default: "true" }
# - { location_purpose: "TS", location_path: "/transfer-source/", location_description: "Transfer Source", location_default: "false" }