Skip to content

Commit

Permalink
Changes for 7.5.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
christabone committed Dec 18, 2024
1 parent ca42847 commit 85ba8a0
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ bash:
7_4_0:
docker run -it ${REPO} ansible-playbook -e WEBSERVER_INSTANCE_TYPE=r5a.xlarge -e env=production -e DOCKER_PULL_TAG=7.4.0 -i hosts launch_7.4.0.yml --vault-password-file=.password

7_5_0:
docker run -it ${REPO} ansible-playbook -e WEBSERVER_INSTANCE_TYPE=r5a.2xlarge -e env=production -e DOCKER_PULL_TAG=7.5.0 -i hosts launch_7.5.0.yml --vault-password-file=.password

run_human_variant_indexer:
docker run -it ${REPO} ansible-playbook -e env=stage -e ALLIANCE_RELEASE=7.4.0 -e DOCKER_PULL_TAG=7.3.0 -i hosts playbook_run_human_variant_indexer.yml --vault-password-file=.password

Expand Down
2 changes: 1 addition & 1 deletion environments/shared_variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SWAP_SIZE: "{{ lookup('env','SWAP_SIZE') | default('128G', True) }}"

# Neo4j Config
NEO_ON_OFF_HEAP: "OFF_HEAP"
NEO_MAX_HEAP: "15GB"
NEO_MAX_HEAP: "30GB"
NEO_OFF_HEAP_MAX: "0GB"
NEO_TRANSACTION: "0"

Expand Down
127 changes: 127 additions & 0 deletions releases/launch_7.5.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
---

- name: Setup SSH Keys
hosts: local
connection: local
gather_facts: False

pre_tasks:
- name: Import Secret Variable file
include_vars: "environments/shared_secrets.yml"

- name: Copy SSH private key file
copy:
content: "{{ AGRSSL2_content }}"
dest: "/root/.ssh/id_rsa"
mode: 0600

- name: Setup Docker Server
hosts: local
connection: local
gather_facts: False

vars_files:
- "environments/{{ env }}/main.yml" # ENV must always be loaded first
- "environments/shared_secrets.yml"
- "environments/shared_aws_instance_variables.yml"

tasks:
- name: Launch instances
ec2_instance:
key_name: AGR-ssl2
security_groups: ["default"]
instance_type: "{{ WEBSERVER_INSTANCE_TYPE }}"
image_id: ami-05668c1bb69ebd078
region: us-east-1
availability_zone: us-east-1a
iam_instance_profile: S3DataAccess
aws_access_key: "{{ AWS_ACCESS_KEY }}"
aws_secret_key: "{{ AWS_SECRET_KEY }}"
volumes:
- device_name: /dev/xvda
ebs:
volume_type: gp3
volume_size: 500
delete_on_termination: yes
wait: yes
wait_timeout: 600
user_data: "" # Otherwise get weird error on start up
tags:
Name: "AGR Release 7.5.0"
register: ec2

- name: Add all instance public IPs to host group
add_host:
hostname: '{{ item.private_ip_address }}'
groupname: launched
with_items: "{{ ec2.instances }}"
register: launched

- name: Retrieve all volumes for a queried instance
ec2_vol_info:
region: us-east-1
aws_access_key: "{{ AWS_ACCESS_KEY }}"
aws_secret_key: "{{ AWS_SECRET_KEY }}"
filters:
attachment.instance-id: '{{ item.instance_id }}'
with_items: "{{ ec2.instances }}"
register: ec2_volumes

- name: Ensure all volumes are tagged
ec2_tag:
region: us-east-1
resource: '{{ item.1.id }}'
aws_access_key: "{{ AWS_ACCESS_KEY }}"
aws_secret_key: "{{ AWS_SECRET_KEY }}"
tags:
Name: "Ansible Generated Volume - AGR Release 7.5.0"
with_subelements:
- "{{ ec2_volumes.results }}"
- volumes

- name: Waiting for SSH to be up
wait_for:
host: "{{ item.private_ip_address }}"
port: 22
delay: 5
timeout: 300
state: started
with_items: "{{ ec2.instances }}"

- name: Configure Servers
hosts: launched
user: core
gather_facts: False

roles:
- install_python
- setup_docker
- setup_swap

vars:
NEO_PAGE_CACHE: "8g"
NEO_MAX_HEAP: "6g"
REPO: "stage"

vars_files:
- "environments/{{ env }}/main.yml" # ENV must always be loaded first
- "environments/shared_secrets.yml"
- "environments/shared_variables.yml"
- "environments/shared_aws_instance_variables.yml"

tasks:
- name: Setup Neo, Run Loader, Run Loader Tests
block:
- include_tasks: tasks/start_monitoring.yml
- include_tasks: tasks/start_es_env.yml
- include_tasks: tasks/start_neo_data.yml
- include_tasks: tasks/start_infinispan_data.yml
- include_tasks: tasks/start_api_quarkus.yml
- include_tasks: tasks/start_jbrowse.yml
- include_tasks: tasks/start_apollo.yml
- include_tasks: tasks/run_restore_index.yml
- include_tasks: tasks/start_nginx.yml

rescue:
- fail:
msg: 'Tasked Failed Terminating instances'

0 comments on commit 85ba8a0

Please sign in to comment.