-
Notifications
You must be signed in to change notification settings - Fork 19
/
molecule.yml
248 lines (206 loc) · 11.4 KB
/
molecule.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
- hosts: molecule
pre_tasks:
- name: Include vars from local user_vars.yml if found
include_vars: "{{ item }}"
with_first_found:
- "molecule_vars.yml"
- "user_vars_default.yml"
tags:
- restart
- name: Include release related vars
include_vars: "{{ item }}"
with_first_found:
- "{{root_dir}}/defaults/{{ansible_distribution_release}}_vars.yml"
- "{{root_dir}}/defaults/default_vars.yml"
vars:
root_dir: "{{playbook_dir}}"
role_dir: "{{root_dir}}"
deploy_user: "{{ansible_user_id}}"
apps_dir: "/home/{{ansible_user_id}}/apps"
desktop_dir: "Desktop"
icons_dir: "{{apps_dir}}/shared_icons"
mysql_root_user: root
mysql_root_password: devroot
apache_mode: worker # use prefork or worker variables
docker_machine_dir: /opt/docker
brackets_io_version: 1.6
dbeawer_version: 7.0.2
dmd_version: 2.072.1
chruby_version: 0.3.9
doxygen_version: 1.8.11
docker_machine_version: "0.10.0"
go_version: "1.14.2"
intellij_version: 2017.3.1 # 2017.1.5 #2016.3.4 #2016.1.1 #14.1.4
java_version: 8
jython_version: 2.7.0
lighttable_version: 0.8.1
mailhog_version: 0.1.6
mongo_version: 3
monit_version: "5.14-2"
nodejs_version: "12.x" # 0.10 0.12 4.x 5.x
node_version: 8.9.4
# nvm
nvm_version: 0.31.1
option_nodejs_install_with_nvm: false
option_nodejs_link_globally: false
option_integrate_w_bash: false
option_integrate_w_zsh: false
# /nvm
oracle_vbox_version: 6.0.16
phpstorm_version: "2017.3.1" # "2017.2.4" # "2017.3.1" # "2017.1.4" # "2016.3.2" # "2016.2" "2016.1" # 10.0.3 | "10.0" | 9.0.2 | 8.0.3 | 8.0.1 | 7.1.4 | 6.0.3 | 5.0.4
php_xdebug_version: 2.2.4
phpcs_version: 2.5.1
phpcbf_version: 2.5.1
pycharm_version: "2017.3.1" # "2016.3.2" #"2016.2" #"2016.1.4" #"2016.1"# 5.0.1 # 4.5.4
# pycharm_edition: community # professional | community
python_version: "3.6.5"
robomongo_version: 0.8.5
rubies_location: /opt/rubies
ruby_install_version: 0.6.0
option_ruby_install_setsystem: true
ruby_version: 2.4.4
rubymine_version: 7.1.4
# s3cmd_version: 1.6.1
schema_crawler_version: "14.09.03"
travis_version: 1.8.2
terraform_version: 0.6.15
swaggerui_version: 2.1.4
vagrant_version: 2.2.7
vagrant_plugins:
- vagrant-vbguest
- vagrant-hostsupdater
- vagrant-auto_network
php_family: default # 5.4 | 5.5 | 5.6 | default
hypervisor: esx
# "git-blame" fails to compile with recent atom
atom_packages: ["angularjs","atom-css-comb", "meteor-api", "emmet", "file-icons", "tag", "expand-region", "atom-alignment", "atom-beautify", "minimap", "set-syntax", "jshint", "linter", "linter-jscs", "linter-flake8", "linter-swagger", "jscs-fixer", "highlight-line", "highlight-column", "autocomplete-plus", "toggle-quotes", "todo-show", "monokai", "language-restructuredtext", "pigments", "atom-typescript"]
sshd_config_lines:
- {regexp: "^Protocol.*", line: "Protocol 2"}
- {regexp: "^PermitRootLogin.*", line: "PermitRootLogin no"}
- {regexp: "^RSAAuthentication.*", line: "RSAAuthentication yes"}
- {regexp: "^PubkeyAuthentication.*", line: "PubkeyAuthentication yes"}
- {regexp: "^ChallengeResponseAuthentication.*", line: "ChallengeResponseAuthentication no"}
- {regexp: "^PasswordAuthentication.*", line: "PasswordAuthentication no"}
- {regexp: "^MaxAuthTries.*", line: "MaxAuthTries 3"}
syncthing_home: "home/{{deploy_user}}"
tasks:
- include_tasks: use/__detect_init_system.yml
- include_tasks: use/__detect_node_path.yml
- include_tasks: use/__detect_ruby_path.yml
# - include_tasks: tasks_cleanupubuntu.yml # removes games, lens, etc
# - include_tasks: tools/tasks_ubuntu_disableguestlogin.yml # disable guest login enabled by default
# - include_tasks: tasks_git.yml # upgrade git to the most recent one
# - include_tasks: tasks_python.yml # basic updates to py & pip
# - include_tasks: tasks_python3.yml # python3
# - include_tasks: tasks_worktools.yml # swiss knife for desktop utilities
# - include_tasks: tasks_google_chrome.yml # google chrome browser
# - include_tasks: tools/tasks_tmux.yml # If you are the tmux fun
# - include_tasks: tools/tasks_ssvnc.yml # VNC Viewer (alternative to Reminna, to overcome some issues with specific VNC servers)
# - include_tasks: tasks_mongodb_3.yml # mongodb 3.0
# - include_tasks: tasks_mysql.yml # MYSQL 5.5
# - include_tasks: tasks_percona_toolkit.yml # percona tools for mysql
# - include_tasks: tasks_nginx.yml # nginx
# - include_tasks: tasks_apache.yml # apache prefork|worker
# - include_tasks: tasks_nodejs.yml # node 0.10.* 0.12.*
# - include_tasks: tasks_nvm.yml # - // - using nvm
# - include_tasks: tasks_java.yml # java 6-7-8
# - include_tasks: java/tasks_jython.yml # python for jvm (Jython project)
# - include_tasks: java/tasks_gradle.yml # gradle java build tool
# - include_tasks: tasks_php_apache.yml # php 5.5 for apache
# - include_tasks: tasks_ruby.yml # Set system ruby to 2.1
# - include_tasks: tasks_d.yml # D Language
# - include_tasks: tasks_jetbrains_phpstorm.yml # PHP IDE
# - include_tasks: tasks_jetbrains_pycharm_community.yml # PY IDE
# - include_tasks: tasks_jetbrains_rubymine.yml # RUBY IDE
# - include_tasks: tasks_jetbrains_intellij_community.yml # JAVA IDE
# - include_tasks: tasks_robomongo.yml # mongo GUI tool
# - include_tasks: tasks_dbeawer.yml # mysql | postgre GUI tool
# - include_tasks: tasks_docker.yml # docker
# - include_tasks: tasks_docker_compose.yml # docker compose
# - include_tasks: tasks_docker_machine.yml # docker machine
# - include_tasks: tasks_docker_kitematic.yml # docker kitematic
# - include_tasks: tasks_oracle_virtualbox.yml # Oracle Virtual Box
# - include_tasks: tasks_vagrant.yml # Vagrant
# MICROSOFT
# - include_tasks: tools/tasks_azure_tools.yml # Azure tools as per https://docs.microsoft.com/en-us/azure/xplat-cli-install
# RUBY
# - include_tasks: ruby/ch_ruby.yml # chruby
# - include_tasks: ruby/ruby_install.yml # ruby-install
# - include_tasks: ruby/ruby.yml # installs ruby itself
# LAMP
# - include_tasks: lamp/phpdox.yml # phpdox documentator
# - include_tasks: lamp/doxygen.yml # doxygen documentator
# - include_tasks: lamp/phploc.yml # phploc tool
# - include_tasks: lamp/phpcs.yml # phpcs tool
# - include_tasks: lamp/phpmd.yml # phpmd tool
# GO language
# - include_tasks: tasks_go.yml # google go language
# ERLANG & ELIXIR
# - include_tasks: tasks_erlang.yml
# - include_tasks: tasks_elixir.yml
# - include_tasks: tools/tasks_expect.yml # expect tool
# - include_tasks: tools/tasks_plantuml.yml # plant uml
# - include_tasks: tools/tasks_schemacrawler.yml # DB Schema crawler
# - include_tasks: tools/tasks_schemaspy.yml # DB Schema Spy tool
# - include_tasks: tools/tasks_toggle.yml # toggle time tracker
# - include_tasks: tools/tasks_dpr.yml # d.pr screenshoting tool
# - include_tasks: tools/tasks_zeal.yml # zeal documentation browser
# VMWARE
# - include_tasks: vmware/tasks_vmware_tools.yml # ESX vmware tools
# DEVELOPMENT
# - include_tasks: tools/tasks_mailhog.yml # Web and API based SMTP testing
# - include_tasks: tools/tasks_swaggerui.yml # REST API documentation viewer
# - include_tasks: tools/tasks_swaggerui.yml # REST API documentation viewer
# - include_tasks: tools/tasks_pgweb.yml # WEB GUI for postgres
# COMMUNICATIONS
# - include_tasks: tools/tasks_skype.yml # skype 4.3
# - include_tasks: tools/tasks_slack_client.yml # slack
# - include_tasks: tools/tasks_hipchat_client.yml # hipchat
# - include_tasks: tools/tasks_fabric.yml # http://www.fabfile.org/ deployment tool
# TIME TRACKING
# - include_tasks: tools/tasks_toggle.yml
# Local LAMP debugging
# - include_tasks: vagrant/tasks_vagrant_php_xdebug.yml
# 3rd party code editors
# - include_tasks: tools/tasks_microsoft_visual_studio_code.yml
# - include_tasks: tools/tasks_brackets_io.yml
# - include_tasks: tools/tasks_lighttable.yml
# - include_tasks: tools/tasks_atom.yml
# - include_tasks: tools/tasks_sublime.yml
# 3rd party tools
# - include_tasks: tools/tasks_s3cmd.yml # amazon s3 helper tool
# - include_tasks: tools/tasks_openshift_rhctools.yml # redhat openshift cli
# - include_tasks: tools/tasks_travis_clienttools.yml # travis cli
# - include_tasks: tools/tasks_truecrypt.yml # legacy truecrypt implementation
# - include_tasks: tools/tasks_veracrypt.yml # truecrypt implementation and successor
# - include_tasks: tools/tasks_chrome_remote_desktop.yml # remote access to your box
# - include_tasks: tools/tasks_dpr.yml # d.pr python client, recently had issues with running
# - include_tasks: tools/tasks_osquery.yml # osquery.io package to query server data via sql like syntax
# - include tools/tasks_logwatch.yml # logwatch
# - include_tasks: tools/tasks_rsyslog.yml # syslog server
# - include_tasks: tools/tasks_syncthing.yml # opensource file synchronizer
# - include_tasks: tools/tasks_kindlegen.yml # Installs kindle convertor for publishing books to amazon
# Devops tools
# - include_tasks: tasks_terraform.yml
# Security tools
# - include_tasks: secure/tasks_auditd.yml
# - include_tasks: secure/tasks_debsums.yml
# - include_tasks: secure/tasks_lynis.yml
# - include_tasks: secure/tasks_rkhunter.yml
# VPN Clients
# - include_tasks: vpn/tasks_pritunl.yml
# - include_tasks: vpn/tasks_openfortigui.yml
# Thinkpad reladed thingy
# - include_tasks: thinkpad/desktop_icons_pack.yml # desktop icons
# - include_tasks: thinkpad/shortcuts.yml # desktop shortcuts
# - include_tasks: thinkpad/powermanagement.yml # power management tools
handlers:
- name: restart apache2
service: name=apache2 state=restarted
become: yes
- name: restart vmtoolsd
service: name=vmtoolsd state=restarted
become: yes
- name: restart fpm
service: name=php5-fpm state=restarted
become: yes