Skip to content

Commit

Permalink
update config for staging env
Browse files Browse the repository at this point in the history
  • Loading branch information
elizoller committed Aug 25, 2020
1 parent c66429a commit e225411
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 10 deletions.
3 changes: 2 additions & 1 deletion inventory/stage/group_vars/crayfish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ crayfish_version_tag: dev
crayfish_db: mysql

crayfish_fedora_base_url: "http://35.166.140.245:8080/fcrepo/rest"
crayfish_drupal_base_url: "http://35.163.77.215"
# crayfish_drupal_base_url: "http://35.163.77.215"
crayfish_drupal_base_url: "http://repo-dev.aws.lib.asu.edu"
crayfish_gemini_base_url: "http://35.166.140.245/gemini"
1 change: 1 addition & 0 deletions inventory/stage/group_vars/karaf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
alpaca_gemini_base_url: http://35.166.140.245/gemini/
alpaca_houdini_base_url: "http://35.166.140.245/houdini"
alpaca_homarus_base_url: "http://35.166.140.245/homarus"
alpaca_fits_base_url: "http://35.166.140.245/crayfits"
tomcat8_home: /var/lib/tomcat8
6 changes: 5 additions & 1 deletion inventory/stage/group_vars/tomcat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ tomcat8_users:
password: "{{ islandora_tomcat_password }}"
roles:
- manager-gui
fcrepo_home_dir: /opt/fcrepo
fcrepo_config_dir: "{{ fcrepo_home_dir }}/configs"
fcrepo_allowed_external_content_file: "{{ fcrepo_config_dir }}/allowed-external-content.txt"
blazegraph_home_dir: /opt/blazegraph

# For production use either "jdbc-mysql" or "jdbc-postgresql"
#fcrepo_persistence: file-simple
Expand Down Expand Up @@ -57,7 +61,7 @@ fcrepo_syn_sites:
anonymous: true
default: true
path: "{{ fcrepo_syn_default_public_key_path }}"
url: https://35.163/77.215
url: "http://repo-dev.aws.lib.asu.edu"

fcrepo_syn_tokens:
- user: admin
Expand Down
19 changes: 19 additions & 0 deletions inventory/stage/group_vars/webserver/apache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,22 @@ apache_vhosts:
documentroot: "/var/www/html/drupal/web"
allow_override: All
options: -Indexes +FollowSymLinks
apache_mods_enabled:
- rewrite.load
- ssl.load
apache_vhosts_ssl:
- servername: repo-dev.aws.lib.asu.edu
documentroot: "/var/www/html/drupal/web"
certificate_file: "/etc/ssl/private/__lib_asu_edu.cer"
certificate_key_file: "/etc/ssl/private/__lib_asu_edu.key"
extra_parameters: |
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
apache_allow_override: "All"
apache_options: "-Indexes +FollowSymLinks"

# RewriteCond %{HTTP_HOST} !^www\. [NC]
# RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

6 changes: 3 additions & 3 deletions inventory/stage/group_vars/webserver/drupal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ drupal_composer_project_package: "islandora/drupal-project:8.8.1"
drupal_composer_project_options: "--prefer-dist --stability dev --no-interaction"
drupal_core_path: "{{ drupal_composer_install_dir }}/web"
drupal_db_user: drupal8
drupal_db_name: drupal8
drupal_db_name: drupal8v2
drupal_db_backend: "{{ claw_db }}"
drupal_db_host: "islandora-drupal.cvznsvixsvec.us-west-2.rds.amazonaws.com"
drupal_db_host: "islandora-drupal2.cvznsvixsvec.us-west-2.rds.amazonaws.com"
drupal_domain: "claw.dev"
drupal_site_name: "Islandora 8"
drupal_install_profile: standard
Expand Down Expand Up @@ -103,7 +103,7 @@ drupal_enable_modules:
- simple_sitemap
- auto_entitylabel
- migrate_file
- group
# - group
- islandora_search
- smtp
drupal_trusted_hosts:
Expand Down
34 changes: 32 additions & 2 deletions inventory/stage/group_vars/webserver/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ webserver_app: yes
openseadragon_iiiv_set_var: yes
openseadragon_iiiv_server: "http://{{ hostvars[groups['tomcat'][0]].ansible_host }}:8080/cantaloupe/iiif/2"

drupal_owner: www-data
drupal_group: www-data
drupal_owner: ubuntu
drupal_group: ubuntu
php_post_max_size: "64M"
drupal_composer_project_package: "islandora/drupal-project:8.8.1"

Expand All @@ -26,3 +26,33 @@ cantaloupe_cache_source: FilesystemCache
cantaloupe_cache_derivative: FilesystemCache
cantaloupe_create_FilesystemCache_dir: yes
cantaloupe_resolver_static: HttpResolver

apache_listen_port: 80
apache_create_vhosts: true
apache_vhosts_filename: "islandora.conf"
apache_remove_default_vhost: true
apache_vhosts:
- servername: "repo-dev.aws.lib.asu.edu"
documentroot: "/var/www/html/drupal/web"
allow_override: All
options: -Indexes +FollowSymLinks
apache_mods_enabled:
- rewrite.load
- ssl.load
apache_vhosts_ssl:
- servername: repo-dev.aws.lib.asu.edu
documentroot: "/var/www/html/drupal/web"
certificate_file: "/etc/ssl/private/__lib_asu_edu.cer"
certificate_key_file: "/etc/ssl/private/__lib_asu_edu.key"
extra_parameters: |
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
apache_allow_override: "All"
apache_options: "-Indexes +FollowSymLinks"

# RewriteCond %{HTTP_HOST} !^www\. [NC]
# RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]


6 changes: 3 additions & 3 deletions inventory/stage/hosts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
webserver ansible_host=35.163.77.215 ansible_user=ubuntu ansible_ssh_port=22 ansible_ssh_private_key_file='~/.ssh/Islandora-Dev.pem'
weby ansible_host=10.192.33.136 ansible_user=ubuntu ansible_ssh_port=22 ansible_ssh_private_key_file='~/.ssh/Islandora-Dev.pem'
services ansible_host=35.166.140.245 ansible_user=ubuntu ansible_ssh_port=22 ansible_ssh_private_key_file='~/.ssh/Islandora-Dev.pem'

[karaf]
services

[database]
default
weby

[webserver]
default
weby

[tomcat]
services
Expand Down

0 comments on commit e225411

Please sign in to comment.