This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
forked from vagrant-php/ubuntu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vagrant-default.yml
335 lines (312 loc) · 9.23 KB
/
vagrant-default.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
---
hostname: &hostname projectname.dev
application: ~
subhosts: []
# - { subhostname: "project1", application: "symfony2" }
sharetype: nfs
cpus: ~
memory: 1024
network:
forwarded_ports:
ssh:
host: ephemeral
guest: 22
# http:
# host: 8080
# guest: 80
# https:
# host: 8443
# guest: 443
ip: dhcp
nfsoptions:
udp: false
bsd: ['alldirs']
linux: ['rw','no_subtree_check','all_squash','async']
virtualbox:
bsd:
natdnshostresolver1: 'off'
natdnsproxy1: 'off'
nictype1: 'virtio'
nictype2: 'virtio'
darwin:
natdnshostresolver1: 'off'
natdnsproxy1: 'off'
nictype1: 'virtio'
nictype2: 'virtio'
linux:
natdnshostresolver1: 'off'
natdnsproxy1: 'off'
nictype1: 'virtio'
nictype2: 'virtio'
windows:
natdnshostresolver1: 'off'
natdnsproxy1: 'off'
# ----------------------------------------------------------------------------------------------------
role:
elasticsearch: false
freetds: false
mariadb: true
memcached: false
mongodb: false
nodejs: true
postfix: true
postgresql: false
redis: false
# ----------------------------------------------------------------------------------------------------
bash:
config:
alias:
cls: &cls "base64:J3ByaW50ZiAiXDAzM2MiJw==" # 'printf "\033c"'
showdns: &showdns "base64:J2RpZyAkMSBhbnkgK25vY21kICttdWx0aWxpbmUgK25vYWxsICthbnN3ZXIn" # 'dig $1 any +nocmd +multiline +noall +answer'
whichshell: &whichshell "base64:J3BzIC1wICQkJw==" # 'ps -p $$'
export:
CLICOLOR: 1
EDITOR: &editor vim
HISTCONTROL: "ignoreboth:erasedups"
HISTFILE: ~/.bash_history
HISTFILESIZE: &histfilesize 100000
HISTSIZE: &histsize 5000
PS1: "base64:IlxbXGVbMTszMm1cXVxoXFtcZVswbVxdIFxbXGVbMTszN21cXVx3XFtcZVswbVxdIFxbXGVbMTszMm1cXVx1XFtcZVswbVxdIFxbXGVbMTszN21cXVwkXFtcZVswbVxdICI=" # "\[\e[1;32m\]\h\[\e[0m\] \[\e[1;37m\]\w\[\e[0m\] \[\e[1;32m\]\u\[\e[0m\] \[\e[1;37m\]\$\[\e[0m\] "
shopt:
checkwinsize: true
histappend: true
elasticsearch:
version: 5
config:
http.port: 9200
network.host: 0.0.0.0
node.max_local_storage_nodes: 1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
pidfile: /var/run/elasticsearch/elasticsearch.pid
kibana:
config:
server.host: 0.0.0.0
server.port: 5601
plugins: []
plugins: []
freetds:
config: {}
# sampledomain.tld:
# host: sampledomain.tld
# port: 60655
# tds version: 7.0
# client charset: UTF-8
# text size: 20971520
general:
config:
locale: &locale de_CH.UTF-8
keyboard:
layout: ch
variant: de_nodeadkeys
shell: bash # bash or zsh
timezone: &timezone Europe/Zurich
packages:
- build-essential
- htop
- unzip
- vim
git:
config:
alias:
pp: "!'git pull -v; git push -v'"
ppt: "!'git pull -v; git push -v; git push --tags -v'"
core:
editor: *editor
push:
default: current
# user:
# name: "'Firstname Lastname'"
# email: [email protected]
mariadb:
version: 10.2
username: root
password: root
config:
client:
default-character-set: utf8
port: &mariadbport 3306
socket: &mariadbsocket /var/run/mysqld/mysqld.sock
mysqld:
character-set-server: utf8
datadir: /var/lib/mysql
log_error: /var/log/mysql/error.log
pid-file: /var/run/mysqld/mysqld.pid
port: *mariadbport
socket: *mariadbsocket
memcached:
config:
-d: ''
logfile: /var/log/memcached.log
-m: 64
-p: 11211
-s: /tmp/memcached.sock
-u: memcache
mongodb:
version: 3.4
username: root
password: root
config:
net:
port: 27017
unixDomainSocket:
enabled: true
pathPrefix: /tmp
security:
authorization: enabled
storage:
dbPath: /var/lib/mongodb
systemLog:
destination: file
path: /var/log/mongodb/mongodb.log
logAppend: true
nginx:
config:
charset: utf-8
error_log: /var/log/nginx/error.log
fastcgi_read_timeout: 600
fastcgi_socket: &phpserversocket /tmp/php-server-socket
proxy_buffer_size: 128k
proxy_buffers: 4 256k
proxy_busy_buffers_size: 256k
nodejs:
version: 8
php:
version: 7.1
config:
cli:
php:
short_open_tag: Off
safe_mode: Off
max_execution_time: 0
memory_limit: -1
error_reporting: E_ALL
display_errors: On
display_startup_errors: On
log_errors: On
error_log: /var/log/php-cli.err.log
magic_quotes_runtime: Off
default_charset: utf-8
allow_url_fopen: On
allow_url_include: Off
date:
date.timezone: *timezone
intl:
intl.default_locale: *locale
mysql:
mysql.default_port: *mariadbport
mysql.default_socket: *mariadbsocket
mysqli:
mysqli.default_port: *mariadbport
mysqli.default_socket: *mariadbsocket
pdo_mysql:
pdo_mysql.default_socket: *mariadbsocket
session:
session.gc_probability: 0
xdebug:
xdebug.max_nesting_level: 1024
fpm:
php:
short_open_tag: Off
safe_mode: Off
max_execution_time: 600
max_input_time: 600
memory_limit: 256M
error_reporting: E_ALL
display_errors: On
display_startup_errors: On
log_errors: On
error_log: /var/log/php-fpm.err.log
post_max_size: 50M
magic_quotes_gpc: Off
magic_quotes_runtime: Off
default_charset: utf-8
cgi.fix_pathinfo: Off
upload_max_filesize: 50M
allow_url_fopen: On
allow_url_include: Off
date:
date.timezone: *timezone
intl:
intl.default_locale: *locale
mysql:
mysql.default_port: *mariadbport
mysql.default_socket: *mariadbsocket
mysqli:
mysqli.default_port: *mariadbport
mysqli.default_socket: *mariadbsocket
pdo_mysql:
pdo_mysql.default_socket: *mariadbsocket
session:
session.gc_probability: 0
xdebug:
xdebug.max_nesting_level: 1024
server:
socket: *phpserversocket
modules:
- curl
- gd
- imagick
- intl
- mbstring
- mcrypt
- sqlite3
- xdebug
- xml
postfix:
receiver: [email protected]
config:
myhostname: *hostname
inet_interfaces: loopback-only
postgresql:
version: 9.6
username: root
password: root
config:
data_directory: /var/lib/postgresql/%%VERSION%%/main
external_pid_file: /var/run/postgresql/%%VERSION%%-main.pid
hba_file: /etc/postgresql/%%VERSION%%/main/pg_hba.conf
ident_file: /etc/postgresql/%%VERSION%%/main/pg_ident.conf
lc_messages: *locale
lc_monetary: *locale
lc_numeric: *locale
lc_time: *locale
log_directory: /var/log/postgresql
log_timezone: *timezone
port: 5432
shared_buffers: 128MB
timezone: *timezone
unix_socket_directories: /var/run/postgresql
redis:
config:
daemonize: yes
pidfile: /var/run/redis/redis-server.pid
port: 6379
unixsocket: /var/run/redis/redis.sock
loglevel: notice
logfile: /var/log/redis/redis-server.log
dir: /var/lib/redis
#save:
#900: 1
#300: 10
#60: 10000
zsh:
config:
alias:
cls: *cls
showdns: *showdns
whichshell: *whichshell
export:
EDITOR: *editor
HISTFILE: ~/.zsh_history
HISTSIZE: *histsize
PS1: "base64:IiV7JGZnX2JvbGRbZ3JlZW5dJX0lTSV7JHJlc2V0X2NvbG9yJX0gJXskZmdfYm9sZFt3aGl0ZV0lfSV+JXskcmVzZXRfY29sb3IlfSAleyRmZ19ib2xkW2dyZWVuXSV9JW4leyRyZXNldF9jb2xvciV9ICUgIg==" # "%{$fg_bold[green]%}%M%{$reset_color%} %{$fg_bold[white]%}%~%{$reset_color%} %{$fg_bold[green]%}%n%{$reset_color%} % "
SAVEHIST: *histfilesize
setopt:
HIST_IGNORE_ALL_DUPS: true
SHARE_HISTORY: true
ohmyzsh:
enable: false
plugins:
- git
theme: geoffgarside