-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0d99ba
commit 82d4ce6
Showing
33 changed files
with
307 additions
and
221 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
env: "prod" | ||
data_url: "{% if env == 'prod' %}data.isimip.org{% else %}{{ env }}.isimip.org{% endif %}" | ||
files_url: "files.isimip.org" |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
data.isimip.org | ||
files.isimip.org | ||
[data] | ||
isimip-data proxy=193.174.19.232 | ||
|
||
[files] | ||
isimip-files |
File renamed without changes.
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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
--- | ||
|
||
- name: /root/.bash_aliases | ||
- name: Copy /root/.bash_aliases | ||
copy: | ||
src: bash_aliases | ||
dest: /root/.bash_aliases | ||
|
||
- name: /etc/skel/.bash_aliases | ||
- name: Copy/etc/skel/.bash_aliases | ||
copy: | ||
src: bash_aliases | ||
dest: /etc/skel/.bash_aliases | ||
|
||
- name: include .bash_aliases in /root/.bashrc | ||
- name: Include .bash_aliases in /root/.bashrc | ||
lineinfile: | ||
dest: /root/.bashrc | ||
line: "source /root/.bash_aliases" | ||
create: yes | ||
|
||
- name: include .bash_aliases in /etc/skel/.bashrc | ||
- name: Include .bash_aliases in /etc/skel/.bashrc | ||
lineinfile: | ||
dest: /etc/skel/.bashrc | ||
line: "source ~/.bash_aliases" | ||
create: yes | ||
|
||
- name: /root/.emacs | ||
- name: Copy /root/.emacs | ||
copy: | ||
src: emacs | ||
dest: /root/.emacs | ||
|
||
- name: /etc/skel/.emacs | ||
- name: Copy /etc/skel/.emacs | ||
copy: | ||
src: emacs | ||
dest: /etc/skel/.emacs |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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: Restart gunicorn | ||
systemd: | ||
name: "{{ env }}" | ||
state: restarted | ||
enabled: yes | ||
|
||
- name: Run npm run build:prod | ||
become: yes | ||
become_user: isimip | ||
shell: | ||
cmd: /bin/bash -c "source ~/.nvm/nvm.sh && nvm install && npm install && npm run build:prod" | ||
chdir: /srv/www/{{ env }} |
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
11 changes: 7 additions & 4 deletions
11
roles/isimip-data/files/dev.service → roles/isimip-data/templates/data.service
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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: Restart app | ||
systemd: | ||
name: "api-app" | ||
state: restarted | ||
enabled: yes | ||
|
||
- name: Restart workers | ||
systemd: | ||
name: "{{ item }}" | ||
state: restarted | ||
enabled: yes | ||
with_items: | ||
- api-worker@1 | ||
- api-worker@2 | ||
- api-worker@3 | ||
- api-worker@4 |
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 |
---|---|---|
|
@@ -25,22 +25,20 @@ | |
dest: /srv/www/api | ||
update: no | ||
become_user: isimip-files-api | ||
notify: | ||
- Restart app | ||
- Restart workers | ||
|
||
- name: systemd services are present | ||
- name: Copy systemd service files | ||
copy: | ||
src: "{{ item }}" | ||
dest: "/etc/systemd/system/{{ item }}" | ||
when: ansible_host == "files.isimip.org" | ||
with_items: | ||
- api.service | ||
- api-app.service | ||
- api-worker.service | ||
|
||
- name: tmpfiles.d conf is present | ||
copy: | ||
src: "api.conf" | ||
dest: "/etc/tmpfiles.d/api.conf" | ||
when: ansible_host == "files.isimip.org" | ||
- [email protected] | ||
notify: | ||
- Restart app | ||
- Restart workers | ||
|
||
- name: /data/api/public is present on files.isimip.org | ||
file: | ||
|
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
<div style="margin: 100px auto; text-align: center; font-family: sans;"> | ||
<img src="https://www.isimip.org/static/images/logo-white.png" alt="isimip logo"/> | ||
<p style="margin-top: 2em;">Sorry, the site is currently down for maintainance, please try again later.</p> | ||
</div> |
Oops, something went wrong.