-
Notifications
You must be signed in to change notification settings - Fork 2
/
defaults.yml
148 lines (118 loc) · 3.38 KB
/
defaults.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
---
magento_os_user: "magento"
magento_os_group: "php-fpm"
magento_site: "example.com"
magento_version: 2
magento_root: "/var/www/vhosts/{{ magento_site }}/public_html"
magento_db_user: "{{ magento_os_user }}"
magento_db_pass: ""
magento_db_name: "{{ magento_os_user }}_db"
magento_db_host: "localhost"
magento_use_rewrites: true
magento_use_secure: true
magento_use_secure_admin: true
magento_base_url: "http://{{ ansible_default_ipv4.address }}/"
magento_base_url_secure: "https://{{ ansible_default_ipv4.address }}/"
magento_backend_frontname: ""
magento_cache_hosts: "127.0.0.1:6081"
magento_admin_user: "admin"
magento_admin_pass: "{{ ansible_default_ipv4.address }}_admin"
magento_admin_email: "[email protected]"
magento_admin_firstname: "Firstname"
magento_admin_lastname: "Lastname"
magento_language: "en_GB"
magento_timezone: "Europe/London"
magento_currency: "GBP"
# Install requires a magento_archive file
magento_install: false
magento_sample_data: true
##
common_users:
- name: "{{ magento_os_user }}"
##
mysql_version: 5.7
mysql_users:
- name: "{{ magento_db_user }}"
host: "localhost"
database: "{{ magento_db_name }}"
password: "{{ magento_db_pass}}"
mysql_modified_cnf: true
mysql_innodb_buffer: "256M"
##
redis_unixsocket: "/var/run/redis/redis.sock"
redis_unixsocketperm: 666
redis_save: false
redis_maxmemory: "1G"
redis_maxmemory_policy: "allkeys-lru"
##
httpd_vhosts:
- filename: "{{ magento_site }}-frontend"
state: present
http_port: 80
https_port: 443
dual_scheme: true
servername: "{{ magento_site }}"
serveralias: "www.{{ magento_site }} {{ ansible_default_ipv4.address }}"
alias_redirect: false
error_log: "logs/example.com-frontend-error.log"
access_log: "logs/example.com-frontend-access.log"
access_log_format: "combined"
extra_parameters: |
#comment
proxypass: "/ http://127.0.0.1:6081/"
- filename: "{{ magento_site }}-backend"
state: present
http_port: 8080
servername: "{{ magento_site }}"
serveralias: "www.{{ magento_site }} {{ ansible_default_ipv4.address }}"
alias_redirect: false
error_log: "logs/example.com-backend-error.log"
access_log: "logs/example.com-backend-access.log"
access_log_format: "combined"
extra_parameters: |
#comment
phpfpm: "{{ magento_os_user }}"
##
phpfpm_install:
- php71u-cli
- php71u-fpm
- php71u-mysqlnd
- php71u-opcache
- php71u-xml
- php71u-mcrypt
- php71u-gd
- php71u-devel
- php71u-intl
- php71u-mbstring
- php71u-bcmath
- php71u-soap
- php71u-json
- php71u-pecl-redis
phpfpm_pools:
- name: "{{ magento_os_user }}"
process_user: "{{ magento_os_user }}"
process_group: "{{ magento_os_group }}"
listen_owner: "root"
listen_group: "apache"
slowlog_timeout: 15
terminate_timeout: 35
fastcgi_timeout: 35
- name: "{{ magento_os_user }}_admin"
process_user: "{{ magento_os_user }}"
process_group: "{{ magento_os_group }}"
listen_owner: "root"
listen_group: "apache"
slowlog_timeout: 600
terminate_timeout: 905
fastcgi_timeout: 905
phpfpm_default_pool: false
phpfpm_opcache_memory_consumption: 512
phpfpm_opcache_interned_strings_buffer: 16
phpfpm_opcache_max_accelerated_files: 60000
php_fpm_ini_options:
expose_php: "Off"
max_execution_time: 30
memory_limit: "768M"
realpath_cache_size: "128k"
realpath_cache_ttl: 7200
php_fpm_composer: true