Skip to content

Commit

Permalink
BFD-2881: Server Load AMI is Downgrading the Platinum AMI Python Vers…
Browse files Browse the repository at this point in the history
…ion Causing Build Failures (#1925)
  • Loading branch information
malessi authored Sep 8, 2023
1 parent 5f5b433 commit 885b3b7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ops/ansible/playbooks-ccs/build_bfd-server-load.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
server_load_dir: /opt/server-load
# TODO: Remove this when CloudWatch Agent role is properly removed from build tasks
env: "test"
# TODO: Resolve this as feasible
python3_version: '3.9.16'

tasks:
- name: Download BFD Repository
Expand All @@ -31,6 +33,21 @@
import_role:
name: base_patch

# TODO: Resolve this as feasible
- name: Create symbolic links
file:
src: "{{ item.src }}"
path: "{{ item.path }}"
state: link
force: true
loop:
- src: /usr/local/bin/python3.{{ python3_version.split('.')[1] }}
path: /usr/bin/python3
- src: /usr/local/bin/pip3.{{ python3_version.split('.')[1] }}
path: /usr/bin/pip3
tags:
- pre-ami

- name: Apply server-load Role
import_role:
name: bfd-server-load
Expand Down
18 changes: 18 additions & 0 deletions ops/ansible/playbooks-ccs/launch_bfd-server-load.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
- name: Configure server-load Controller
hosts: localhost
vars:
# TODO: Resolve this as feasible
python3_version: '3.9.16'

tasks:
- name: Add SSH users for current environment
Expand All @@ -8,6 +11,21 @@
tags:
- post-ami

# TODO: Resolve this as feasible
- name: Create symbolic links
file:
src: "{{ item.src }}"
path: "{{ item.path }}"
state: link
force: true
loop:
- src: /usr/local/bin/python3.{{ python3_version.split('.')[1] }}
path: /usr/bin/python3
- src: /usr/local/bin/pip3.{{ python3_version.split('.')[1] }}
path: /usr/bin/pip3
tags:
- post-ami

- name: Apply server-load Role
import_role:
name: bfd-server-load
Expand Down

0 comments on commit 885b3b7

Please sign in to comment.