This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
default.vm-settings.yml
407 lines (339 loc) · 11.6 KB
/
default.vm-settings.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
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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
---
# This file contains Vagrant and VirtualBox configuration.
#
# Settings in this file are project specific, not a local machine specific.
#
# If there is a need to override any value, create file vm-settings.local.yml
# and put it there. Local settings should not be committed to the repository.
# DO NOT MODIFY THESE SETTINGS MANUALLY.
draft:
last_applied_update: 0
# Vagrant configuration.
vagrant:
# Before we start: auto-install recommended plugins. Code borrowed here:
# https://github.com/hashicorp/vagrant/issues/8055#issuecomment-403171757
plugins:
- vagrant-hostmanager
- vagrant-disksize
# On Windows hosts additionally install Vagrant WinNFSd. This plugin won't
# be installed on non-Windows hosts.
- vagrant-winnfsd
# Box to use. At the moment Debian-based distributions are supported only.
# Do not change this value, unless absolutely necessary. Valid use case is
# 32-bit host machine and no support for virtualization of 64-bit guest
# machine.
# Defaults to 'Official Ubuntu Server 20.04 LTS (Focal Fossa)'.
box: ubuntu/focal64
# Box version.
box_version: '>= 0'
# Disable automatic update checking be setting this option to false.
# See https://www.vagrantup.com/docs/boxes/versioning.html#automatic-update-checking
box_check_update: false
# Host name. This setting is required. Usually host name matches project name.
hostname: ''
# Host aliases. Will be added to hosts file alongside <hostname>.test.
host_aliases: []
# Source directory. No trailing slash!
source_directory: '.'
# Destination directory. No trailing slash!
destination_directory: /var/www/draft
# Synced folder options. Refer to https://www.vagrantup.com/docs/synced-folders/
# for possible options and their values. Please note that each synced fodler
# type could have extra options, look at NFS or RSync for examples.
synced_folder_options:
id: default
type: nfs
create: true
# Disable UDP protocol for NFS, see https://discourse.ubuntu.com/t/jammy-jellyfish-release-notes/24668
nfs_udp: false
# VirtualBox configuration.
#
# Virtual machine specification is quite machine-specific. This file provides
# default settings that should work just fine for a common 2015-2016 machine:
# - quad core CPU
# - hardware virtualization support
# - 8+Gb of RAM
# - SSD
#
# Sometimes VirtualBox will fail to start with provided settings. For example:
# - single core CPU
# - no hardware virtualization support
# - low amount of RAM
#
# In that case virtual machine specification must be overridden. Do not edit
# this file directly. This file contains global poroject-wide settings, i.e.
# these settings are shared between all project members. Local settings file is
# the right place to do it.
virtualbox:
# Machine name. Optional, defaults to Vagrant host name.
name: ''
# Number of CPUs. Lower this value if host machine has single/dual core CPU
# and/or no hardware virtualization support.
cpus: 2
# Memory limit (in MB). Small projects may work with less amount of RAM
# available. However, machine provisioning usually requires more memory than
# normal run. If the host machine has limited RAM available, lower memory
# limit after virtual machine provisioning.
memory: 1024
# CPU execution cap (in %). Lower this value if host machine has single core
# CPU.
cpuexecutioncap: 100
# VirtualBox disk size (added by vagrant-disksize plugin).
# See https://github.com/sprotheroe/vagrant-disksize
disk_size: 40GB
# Checking for Guest Additions.
check_guest_additions: false
# Ansible local configuration.
ansible:
# Ansible version to use for the provisioning. Supported version formats:
# - exact version constraint, like 2.6.16, 2.9.0rc2 etc
# - wildcard version range (.*): you can specify a pattern with a * wildcard.
# For example 2.6.* is the equivalent of >=2.6.0 <2.7.0. This option
# installs the latest available Ansible version within the given range
# constraint. This is the default option.
#
# This project has been successfully tested with Ansible 4.0.
version: '4.*'
# List of features to install. Some roles depend on each other, be careful.
draft_features:
# Configure Swap file (sort of required by Composer)
- swapfile
- mailhog
# Copy host machine GIT credentilas to the VM
- git_config
- apache2
- mysql
- php
# Composer (PHP dependency manager), requires PHP
- composer
# - java
# Apache Solr, requires Java
# - solr
# Provisioner (Ansible) configuration.
# Role: draft (internal) @ self
ssh_default_directory: '{{ vagrant.destination_directory }}'
# Role: oefenweb.swapfile @ v2.0.35
# Set swap file size.
swapfile_size: 2GB
# Role: geerlingguy.mailhog @ 2.3.0
mailhog_arch: "{{ 'arm' if ansible_architecture == 'aarch64' else 'amd64' }}"
mailhog_install_dir: /opt/mailhog
mailhog_version: 1.0.0
mailhog_binary_url: 'https://github.com/mailhog/MailHog/releases/download/v{{ mailhog_version }}/MailHog_linux_{{ mailhog_arch }}'
mhsendmail_version: 0.2.0
mhsendmail_binary_url: 'https://github.com/mailhog/mhsendmail/releases/download/v{{ mhsendmail_version }}/mhsendmail_linux_{{ mailhog_arch }}'
# Path to daemonize, which is used to launch MailHog via init script.
mailhog_daemonize_bin_path: /usr/sbin/daemonize
# Role: apache2 (internal) @ self
# Web server document root directory
apache2_document_root: docroot
# Log level to use
apache2_log_level: error
# Role: geerlingguy.mysql @ 3.5.0
# Set this to the user ansible is logging in as - should have root
# or sudo access
mysql_user_home: /root
mysql_user_name: root
mysql_user_password: root
# The default root user installed by mysql - almost always root
mysql_root_home: /root
mysql_root_username: root
mysql_root_password: root
# Set this to `true` to forcibly update the root password.
mysql_root_password_update: false
mysql_user_password_update: false
mysql_enabled_on_startup: true
# Whether my.cnf should be updated on every run.
overwrite_global_mycnf: true
# The following variables have a default value depending on operating system.
mysql_config_file: /etc/mysql/my.cnf
mysql_config_include_dir: /etc/mysql/conf.d
# Define mysql daemon.
mysql_daemon: mysql
# Define a custom list of packages to install.
mysql_packages:
- mysql-common
- mysql-server
# If you need to explicitly set the MySQL Python package, you can set it here.
# If not set, it will default to `python-mysqldb` for Python 2 and `python3-mysqldb` for Python 3.
#
# mysql_python_package_debian: ''
# MySQL connection settings.
mysql_port: '3306'
mysql_bind_address: 0.0.0.0
mysql_skip_name_resolve: false
mysql_datadir: /var/lib/mysql
mysql_sql_mode: ~
mysql_pid_file: /var/run/mysqld/mysqld.pid
mysql_socket: /var/run/mysqld/mysqld.sock
# Log file settings.
mysql_log_file_group: adm
# Slow query log settings.
mysql_slow_query_log_enabled: false
mysql_slow_query_time: '2'
mysql_slow_query_log_file: /var/log/mysql/mysql-slow.log
# Memory settings (default values optimized ~512MB RAM).
mysql_key_buffer_size: 256M
mysql_max_allowed_packet: 64M
mysql_table_open_cache: '256'
mysql_sort_buffer_size: 1M
mysql_read_buffer_size: 1M
mysql_read_rnd_buffer_size: 4M
mysql_myisam_sort_buffer_size: 64M
mysql_thread_cache_size: '8'
mysql_query_cache_type: '0'
mysql_query_cache_size: 16M
mysql_query_cache_limit: 1M
mysql_max_connections: '151'
mysql_tmp_table_size: 16M
mysql_max_heap_table_size: 16M
mysql_group_concat_max_len: '1024'
mysql_join_buffer_size: '262144'
# Other settings.
mysql_lower_case_table_names: '0'
mysql_wait_timeout: '28800'
mysql_event_scheduler_state: 'OFF'
# InnoDB settings.
mysql_innodb_file_per_table: '1'
# Set .._buffer_pool_size up to 80% of RAM but beware of setting too high.
mysql_innodb_buffer_pool_size: 256M
# Set .._log_file_size to 25% of buffer pool size.
mysql_innodb_log_file_size: 64M
mysql_innodb_log_buffer_size: 8M
mysql_innodb_flush_log_at_trx_commit: '1'
mysql_innodb_lock_wait_timeout: '50'
# These settings require MySQL > 5.5.
mysql_supports_innodb_large_prefix: true
mysql_innodb_large_prefix: '1'
mysql_innodb_file_format: barracuda
# mysqldump settings.
mysql_mysqldump_max_allowed_packet: 64M
# Logging settings.
mysql_log: ''
mysql_log_error: /var/log/mysql/mysql.err
mysql_syslog_tag: mysql
mysql_config_include_files: []
# - src: path/relative/to/playbook/file.cnf
# - { src: path/relative/to/playbook/anotherfile.cnf, force: yes }
# Databases.
mysql_databases:
-
name: drupal
collation: utf8mb4_general_ci
encoding: utf8mb4
# Users.
mysql_users:
-
name: drupal
password: drupal
priv: 'drupal.*:ALL'
host: '%'
mysql_disable_log_bin: false
# Replication settings (replication is only enabled if master/user have values).
mysql_server_id: '1'
mysql_max_binlog_size: 100M
mysql_binlog_format: ROW
mysql_expire_logs_days: '10'
mysql_replication_role: ''
mysql_replication_master: ''
# Same keys as `mysql_users` above.
mysql_replication_user: []
# Role: t2l.php @ 1.6.2
# PHP version to install. Possible values: 5.6, 7.0 - 7.4, and 8.0 - 8.1
php_version: '8.0'
# Configure PHP.
php_configuration:
PHP:
error_reporting: E_ALL
error_log: /var/log/draft/php_error.log
display_errors: 'On'
display_startup_errors: 'On'
memory_limit: 256M
max_execution_time: 300
output_buffering: 'Off'
upload_max_filesize: 64M
post_max_size: 512M
# Requires MailHog.
sendmail_path: '{{ mailhog_install_dir }}/mhsendmail'
# Configure PHP CLI.
php_cli_configuration:
PHP:
error_reporting: E_ALL
error_log: /var/log/draft/php_error.log
memory_limit: -1
max_execution_time: 0
output_buffering: 'Off'
# Requires MailHog.
sendmail_path: '{{ mailhog_install_dir }}/mhsendmail'
# PHP extensions to install.
php_extensions:
- curl
- gd
- mbstring
- mysql
- sqlite3
- xdebug
- xml
- zip
# Configure PHP extensions.
php_extensions_configuration:
opcache:
opcache.error_log: /var/log/draft/php_opcache_error.log
xdebug:
xdebug.mode: debug
xdebug.discover_client_host: 'true'
xdebug.remote_log: /var/log/draft/php_xdebug_remote.log
# Web server daemon to restart (defaults to Apache 2).
php_web_server_daemon: apache2
# Boolean indicating whether to restart web server or not.
php_restart_web_server: true
# Role: t2l.composer @ 2.0.5
# Composer installation directory.
composer_install_dir: /usr/local/bin
# Composer executable filename.
composer_filename: composer
# Composer version.
composer_version:
# Keep Composer up-to-date.
composer_keep_updated: true
# PHP executable name.
composer_php_executable: php
# Role: t2l.java @ 1.3.3
# Open JDK version(s) and package type (jre or jdk).
# Currently supported versions are 6-13 (however not every Java version is
# supported for every Ubuntu version).
java_openjdk_packages:
-
version: 8
type: jre
# Oracle Java version(s).
# Currently supported version is 13.
java_oracle_packages: []
# - version: 13
# Java default alternative. Responsible for setting JAVA_HOME as well.
java_default_alternative:
provider: openjdk
version: 8
# Role: t2l.solr @ 2.2.2
# Solr user and group. Defaults to solr:solr.
solr_user: solr
solr_group: '{{ solr_user }}'
# Solr version to install. Minimum supported version is 5.0.0.
solr_version: 7.7.3
# Port Solr should bind to.
solr_port: 8983
# Download Solr here.
solr_download_dir: /tmp
# Solr install directory.
solr_install_dir: /opt
# Solr data directory.
solr_data_dir: /var/solr
# Remove downloaded archive and extracted files.
solr_cleanup_downloads: true
# Remove downloaded GPG keys file and .asc signature file.
solr_cleanup_gpg: true
# Solr cores to configure.
solr_cores:
-
name: drupal
# conf_path: /var/www/project/config/solr