-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update our deployment and use node4x and npm3 (#66)
Lots of improvements to the deployment processes by updating the playbook from https://github.com/bocoup/deployment-workflow No more out of memory errors
- Loading branch information
Showing
11 changed files
with
136 additions
and
63 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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
CELERY_ID="string" | ||
CELERY_TOKEN="string" | ||
CELERY_URL="url" | ||
TEST_CELERY_ID="string" | ||
TEST_CELERY_TOKEN="string" | ||
TEST_CELERY_URL="url" | ||
NPM_CONFIG_PRODUCTION="false" | ||
TUMBLR_APIKEY="xxxx" | ||
URL_HASH_KEY="xxxx" |
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,36 @@ | ||
- name: check if swap file exists | ||
stat: path={{swap_file_path}} | ||
register: swap_file_check | ||
|
||
- name: ensure swapfile exists | ||
command: fallocate -l {{swap_file_size}} /swap | ||
when: not swap_file_check.stat.exists | ||
args: | ||
creates: "{{swap_file_path}}" | ||
|
||
- name: ensure swap file has correct permissions | ||
file: path={{swap_file_path}} owner=root group=root mode=0600 | ||
|
||
- name: ensure swapfile is formatted | ||
command: mkswap {{swap_file_path}} | ||
when: not swap_file_check.stat.exists | ||
|
||
# the quotes around integers here can be removed when this is resolved | ||
# https://github.com/ansible/ansible-modules-core/issues/1861 | ||
- name: ensure swap file can be mounted | ||
mount: | ||
name: none | ||
src: "{{swap_file_path}}" | ||
fstype: swap | ||
opts: sw | ||
passno: "0" | ||
dump: "0" | ||
state: present | ||
|
||
- name: ensure swap is activited | ||
command: swapon -a | ||
|
||
- name: ensure swap is used as a last resort | ||
sysctl: | ||
name: vm.swappiness | ||
value: 0 |
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