-
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.
Merge branch 'main' into mep-no-apache
- Loading branch information
Showing
41 changed files
with
242 additions
and
147 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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
### | ||
|
||
# Github repository | ||
repo: 'Princeton-CDH/ppa-django' | ||
repo: "Princeton-CDH/ppa-django" | ||
app_name: ppa | ||
# name of django application | ||
python_app: "{{ app_name }}" | ||
|
@@ -32,7 +32,6 @@ passenger_server_name: "prosody.princeton.edu" | |
passenger_startup_file: "{{ app_name }}/wsgi.py" | ||
passenger_python: "{{ passenger_app_root }}/env/bin/python" | ||
|
||
|
||
# base data dir — easier if NOT under conan home directory | ||
data_path: "/srv/www/data" | ||
# path to hathitree pairtree data | ||
|
@@ -44,7 +43,6 @@ technical_contact: [email protected] | |
# flag that csp is enabled | ||
csp_enabled: true | ||
|
||
|
||
# django database backend | ||
db_backend: "postgresql" | ||
db_host: "{{ postgres_host }}" | ||
|
@@ -56,7 +54,7 @@ application_db_name: cdh_ppa | |
application_db_host: "{{ postgres_host }}" | ||
|
||
# app-specific local settings | ||
django_local_settings_template: "prosody_settings.py" | ||
django_local_settings_template: "prosody_settings.py.j2" | ||
|
||
# - solr settings | ||
solr_collection: cdh_ppa | ||
|
@@ -67,9 +65,6 @@ solr_configset: cdh_ppa | |
# # - "Python unit tests" | ||
# - "Python unit tests (3.6, 8.6, postgresql)" | ||
|
||
# default media root | ||
anag | ||
# app-specific system dependencies | ||
app_dependencies: | ||
- libmysqlclient-dev # for mysql installation during the migration | ||
|
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,6 @@ | ||
# unlike most deploys, we may put multiple apps on this vm | ||
single_app: false | ||
|
||
alias_apps: | ||
simrisk: /srv/www/simulatingrisk | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Common variables for Shakespeare & Company Project django application | ||
### | ||
# Github repository | ||
repo: 'Princeton-CDH/mep-django' | ||
repo: "Princeton-CDH/mep-django" | ||
# application name | ||
app_name: mep | ||
# name of django application | ||
|
@@ -32,10 +32,10 @@ passenger_python: "{{ passenger_app_root }}/env/bin/python" | |
deploy_user: "conan" | ||
|
||
# geonames and mapbox usernames, map-related configs | ||
geonames_username: '{{ vault_geonames_username }}' | ||
mapbox_token: '{{ vault_mapbox_token }}' | ||
mapbox_basemap: 'light-v10' | ||
paris_overlay: 'https://tiles.arcgis.com/tiles/4Ko8f1mCWFLyY4NV/arcgis/rest/services/Paris_1943/MapServer' | ||
geonames_username: "{{ vault_geonames_username }}" | ||
mapbox_token: "{{ vault_mapbox_token }}" | ||
mapbox_basemap: "light-v10" | ||
paris_overlay: "https://tiles.arcgis.com/tiles/4Ko8f1mCWFLyY4NV/arcgis/rest/services/Paris_1943/MapServer" | ||
|
||
# django database backend | ||
db_backend: "postgresql" | ||
|
@@ -48,7 +48,7 @@ application_db_name: cdh_shxco | |
application_db_host: "{{ postgres_host }}" | ||
|
||
# app-specific local settings | ||
django_local_settings_template: "shxco_settings.py" | ||
django_local_settings_template: "shxco_settings.py.j2" | ||
|
||
# - solr settings | ||
solr_collection: cdh_shxco | ||
|
@@ -60,13 +60,13 @@ solr_configset: cdh_shxco | |
# - "Python unit tests (3.6, 8.6, postgresql)" | ||
|
||
# default media root | ||
media_root: '/srv/www/media/' | ||
media_root: "/srv/www/media/" | ||
|
||
technical_contact: [email protected] | ||
|
||
# app-specific system dependencies | ||
app_dependencies: | ||
- at # for 100 years twitter bot scheduled tweets | ||
- at # for 100 years twitter bot scheduled tweets | ||
- libmysqlclient-dev # for mysql installation during the migration | ||
|
||
# 2to3 support needed for installing rdflib-jsonld | ||
|
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,33 @@ | ||
# Run database setup and update application local settings. | ||
# The application must already be deployed. | ||
# | ||
# Use this playbook for database migrations to do database setup | ||
# (create new database and db user, ensure app server has access), | ||
# and then update the local settings to reference the new database. | ||
# | ||
# For proper behavior, you MUST specify setup and app_config tags | ||
# and skip db_backup: | ||
# | ||
# ansible-playbook playbooks/db_setup.yml -t setup,app_config | ||
# | ||
# Use the --limit option to run on a single host or host group. | ||
# | ||
- hosts: geniza_qa, cdhweb_qa, prosody_qa, shxco_qa, geniza_prod, cdhweb_prod, prosody_prod, shxco_prod | ||
connection: ssh | ||
remote_user: pulsys | ||
become: true | ||
vars: | ||
# update currently deployed config, | ||
# instead of getting path from app version and git hash | ||
deploy: "{{ install_root }}/current" | ||
tasks: | ||
- name: Run postgresql setup tasks (ensure access, create db and user) | ||
ansible.builtin.include_role: | ||
name: postgresql | ||
tags: setup | ||
- name: Update django local settings | ||
# need to use import to get variables and path for template | ||
# use app_config tag to only run local settings task | ||
ansible.builtin.import_role: | ||
name: django | ||
|
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,4 +1,4 @@ | ||
- hosts: sandbox | ||
- hosts: sandbox, simrisk | ||
vars_files: | ||
- ../group_vars/sandbox/simrisk.yml | ||
connection: ssh | ||
|
Oops, something went wrong.