forked from cakephp/app
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/4.x' into 4.x
# Conflicts: # composer.json # config/app.php # templates/layout/default.php
- Loading branch information
Showing
60 changed files
with
508 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,5 @@ yarn-error.log | |
# PHP Intel | ||
.phpintel | ||
*.mwb.bak | ||
/cron.d/* | ||
/ansible/roles/crontab/templates/*.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
- name: Loop Over and Create temp Template for each desired crontab | ||
template: | ||
src: concat.j2 | ||
dest: "{{ app_path }}/ansible/roles/crontab/templates/{{ item }}.txt" | ||
loop: "{{ active_crontab_files | list }}" | ||
|
||
- name: Loop Over and Create final file for each crontab file | ||
template: | ||
src: "{{ item }}.txt" | ||
dest: "{{ app_path }}/cron.d/{{ item }}" | ||
loop: "{{ active_crontab_files | list }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% for i in active_crontab_files[item] %} | ||
{{ lookup('file', i) }} | ||
|
||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Every 30 minutes, delete tmp file uploads older than 6 hours | ||
*/30 * * * * root find {{ app_path }}/tmp/files/* -mmin +360 ! -name "empty" -exec rm {} \; > /dev/null 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Generated Crontab - Check Ansible Role/Playbook | ||
|
||
TZ="America/New_York" | ||
MAILTO="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
- name: 'Download libssl1.1 arm64' | ||
get_url: | ||
url: http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.22_arm64.deb | ||
dest: /root/libssl.deb | ||
force: false | ||
validate_certs: no # this is fucked up | ||
when: ansible_architecture == 'aarch64' | ||
|
||
- name: 'Download libssl1.1 x86_64' | ||
get_url: | ||
url: http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb | ||
dest: /root/libssl.deb | ||
force: false | ||
validate_certs: no # this is fucked up | ||
when: ansible_architecture == 'x86_64' | ||
|
||
- name: 'Install libssl1.1' | ||
command: dpkg -i /root/libssl.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
- name: start and enable mailhog | ||
service: | ||
name: mailhog | ||
state: started | ||
enabled: yes | ||
|
||
- name: restart mailhog | ||
service: | ||
name: mailhog | ||
state: restarted | ||
|
||
- name: start mailhog | ||
service: | ||
name: mailhog | ||
state: started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
- name: Install golang-go | ||
apt: | ||
pkg: | ||
- golang-go | ||
state: present | ||
update_cache: yes | ||
|
||
- name: Install Mailhog | ||
shell: "go install github.com/mailhog/MailHog@latest" | ||
become: yes | ||
become_user: root | ||
|
||
- name: Copy Mailhog to /usr/local/bin | ||
copy: | ||
src: /root/go/bin/MailHog | ||
dest: /usr/local/bin/mailhog | ||
owner: root | ||
group: root | ||
mode: 0755 | ||
remote_src: yes | ||
|
||
- name: Create Service File | ||
template: | ||
src: "mailhog.service" | ||
dest: /etc/systemd/system/mailhog.service | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
notify: start and enable mailhog |
Oops, something went wrong.