Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
feat: Add prospectus redirects upload ISRE-2008
Browse files Browse the repository at this point in the history
Upload prospectus redirects file from GoCD to nginx EC2
build instance.
  • Loading branch information
jdmulloy committed Jul 6, 2023
1 parent f0b31cb commit 4a03e29
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions playbooks/continuous_delivery/prospectus_download_redirects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
- name: Download edX Prospectus Service nginx redirects file
hosts: all
become: True
gather_facts: True
vars:
ENABLE_DATADOG: False
ENABLE_NEWRELIC: False
CLUSTER_NAME: 'prospectus'
PROSPECTUS_DATA_DIR: "/edx/var/prospectus"
NGINX_OVERRIDE_DEFAULT_MAP_HASH_SIZE: True
NGINX_MAP_HASH_MAX_SIZE: 4096
NGINX_MAP_HASH_BUCKET_SIZE: 128
PROSPECTUS_ENABLED: True
PROSPECTUS_SANDBOX_BUILD: FALSE
roles:
- role: aws
when: COMMON_ENABLE_AWS_ROLE
tasks:
- name: Create redirects config directory
tags:
- download_prospectus_redirects
file:
path: "{{ prospectus_redirect_file | dirname }}"
state: directory
- name: Upload prospectus redirects from GoCD
when: PROSPECTUS_S3_HOSTING_ENABLED|bool
copy:
src: "{{ artifact_path }}/prospectus-redirects.conf"
dest: "{{ prospectus_redirect_file }}"

0 comments on commit 4a03e29

Please sign in to comment.