forked from openapphack/openapphack-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
167 lines (124 loc) · 4.1 KB
/
config.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
---
# `vagrant_box` .
vagrant_box: virtualenv/ubuntu1404
#
vagrant_user: vagrant
# If you need to run multiple instances of openapphack VM, set a unique hostname,
# machine name, and IP address for each instance.
vagrant_hostname: openapphackvm.dev
vagrant_machine_name: openapphackvm
#vagrant_ip: 192.168.88.88
vagrant_ip: 0.0.0.0
# Allow openapphackvm VM to be accessed via a public network interface on your host.
# Vagrant boxes are insecure by default, so be careful. You've been warned!
# See: https://docs.vagrantup.com/v2/networking/public_network.html
vagrant_public_ip: ""
# A list of synced folders, with the keys 'local_path', 'destination', 'id', and
# a 'type' of [nfs|rsync|smb] (leave empty for slow native shares).
vagrant_synced_folders:
# The first synced folder will be used for the default App installation,
- local_path: ~/Sites/openapphackvm
destination: /var/www/openapphackvm
type: nfs
create: true
# Memory and CPU to use for this VM.
vagrant_memory: 1024
vagrant_cpus: 2
# The web server software to use. Can be either 'apache' or 'nginx'.
openapphackvm_webserver: apache
# Settings for your openhack app
app_path: "/var/www/openapphackvm/openapphack"
app_domain: "openapphackvm.dev"
mysql_user: appuser
mysql_password: openapphack
mysql_database: openapphackdb
# set to false if you do not want to generate the app using generateapp instructions
generate_app: true
#The path to the generator ,will be picked up from an ansible role of the generator
#generator_path: ""
#The type of generator for now it is yo, more generators to be added later
#generator_type: "yo"
#The argumentst to generator
# e.g generator_arguments: "" for yo
# e.g generator_arguments: "-v -y" for drush make
#generator_arguments: ""
#set to false if you don't want to install the app using install instructions
install_app: true
# app runner used to install and run the app
#app_runner: node
# arguments to be passed to app
#app_arguments:
# set to false if you don't want to run the app
run_app: true
# Cron jobs are added to the root user's crontab. Keys include name (required),
# minute, hour, day, weekday, month, job (required), and state.
openapphackvm_cron_jobs: []
# - {
# name: "openapphack Cron",
# minute: "*/30",
# job: " add some shell command here "
# }
# Apache VirtualHosts. Add one for each site you are running inside the VM. For
# multisite deployments, you can point multiple servernames at one documentroot.
# View the virtualenv.apache Ansible Role README for more options.
apache_vhosts:
- servername: "{{ app_domain }}"
documentroot: "{{ app_path }}"
apache_remove_default_vhost: true
apache_mods_enabled:
- expires.load
- ssl.load
- rewrite.load
# Nginx hosts. Each site will get a server entry using the configuration defined
# here.
nginx_hosts:
- server_name: "{{ app_domain }}"
root: "{{ app_path }}"
nginx_remove_default_vhost: true
# MySQL Databases and users. .
mysql_databases:
- name: "{{ mysql_database }}"
encoding: utf8
collation: utf8_general_ci
mysql_users:
- name: "{{ mysql_user }}"
host: "%"
password: "{{ mysql_password }}"
priv: "{{ mysql_database }}.*:ALL"
# Comment out any extra utilities you don't want to install. If you don't want
# to install *any* extras, make set this value to an empty set, e.g. `[]`.
installed_extras:
- nodejs
# - ruby
# - selenium
# - solr
# Add any extra apt or yum packages you would like installed.
extra_packages:
- unzip
# `nodejs` must be in installed_extras for this to work.
nodejs_version: "0.12"
nodejs_npm_global_packages: []
# `ruby` must be in installed_extras for this to work.
ruby_install_gems: []
# You can configure almost anything else on the server in the rest of this file.
extra_security_enabled: false
firewall_allowed_tcp_ports:
- "22"
- "25"
- "80"
- "81"
- "443"
- "4444"
- "8025"
- "8080"
- "8443"
- "8983"
- "4200"
firewall_log_dropped_packets: false
# MySQL Configuration.
mysql_root_password: root
mysql_slow_query_log_enabled: true
mysql_slow_query_time: 2
mysql_wait_timeout: 300
# Other configuration.
known_hosts_path: ~/.ssh/known_hosts