-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update cdh web test/prod for jammy (#170)
* add new jammy vms to the host inventory * add nfs mounted media path * Force snap refresh to change node version resolves #143 Co-authored-by: Ryan Heuser <[email protected]> * Move nfs mount command to common setup role * Update python-opencv package name for jammy * Do an npm production install, to skip installing dev dependencies * Fix syntax on conditional for bionic + nfs media path * Automate proprietary font handling for cdhweb * Update & expand readme for geniza setup role --------- Co-authored-by: Francis Kayiwa <[email protected]> Co-authored-by: Ryan Heuser <[email protected]>
- Loading branch information
1 parent
f7c3a00
commit 896189a
Showing
13 changed files
with
674,385 additions
and
27 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
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,15 @@ | ||
# cdhweb setup | ||
|
||
Application setup specific to CDH web. | ||
|
||
Currently includes handling for licensed fonts. A vaulted archive file of the purchased fonts is included as a tar file, to be copied and extracted to the remote server. | ||
|
||
To update the font file: | ||
|
||
- decrypt with ansible-vault: `ansible-vault encrypt roles/cdhweb_setup/files/cdhweb_fonts.vault` | ||
- extract files to a temporary directory via `tar -xvf roles/cdhweb_setup/files/cdhweb_fonts.vault` | ||
- add/remove files as needed | ||
- update vault file from the directory with the font files | ||
via `tar -cvf [path]roles/cdhweb_setup/files/cdhweb_fonts.vault *` | ||
(Needs to be included without any folder or additional path.) | ||
- re-encrypt with default vault key `ansible-vault encrypt --encrypt-vault-id default roles/cdhweb_setup/files/cdhweb_fonts.vault` |
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 @@ | ||
--- | ||
# defaults for cdhweb_setup | ||
nginx_user: "www-data" | ||
font_path: "/var/www/fonts/" |
674,310 changes: 674,310 additions & 0 deletions
674,310
roles/cdhweb_setup/files/cdhweb_fonts.vault
Large diffs are not rendered by default.
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,19 @@ | ||
--- | ||
# tasks file for geniza_setup | ||
|
||
- name: Ensure fonts directory exists | ||
become: true | ||
ansible.builtin.file: | ||
path: "{{ font_path }}" | ||
state: directory | ||
mode: '0775' | ||
owner: "{{ nginx_user }}" | ||
group: "{{ nginx_user }}" | ||
|
||
- name: Extract licensed fonts | ||
become: true | ||
become_user: "{{ django_user }}" | ||
ansible.builtin.unarchive: | ||
src: cdhweb_fonts.vault | ||
dest: "{{ font_path }}" | ||
group: "{{ nginx_user }}" |
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