Skip to content

Commit d6d7da8

Browse files
committed
Added missing variables and UFW rule.
1 parent 3de7549 commit d6d7da8

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

infra/ansible/playbooks/explorer.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@
3232
vars:
3333
ansible_ssh_user: "{{ admin_user }}"
3434

35+
- name: Allow all access to tcp port 443
36+
become: true
37+
ufw:
38+
rule: allow
39+
port: 443
40+
proto: tcp
41+
vars:
42+
ansible_ssh_user: "{{ admin_user }}"
43+
3544
- name: Clone the aligned_layer repository
3645
ansible.builtin.git:
3746
repo: https://github.com/yetanotherco/aligned_layer
@@ -72,6 +81,8 @@
7281
SECRET_KEY_BASE: "{{ lookup('ini', 'SECRET_KEY_BASE file=ini/config-explorer.ini') }}"
7382
KEYFILE_PATH: "{{ lookup('ini', 'KEYFILE_PATH file=ini/config-explorer.ini') }}"
7483
CERTFILE_PATH: "{{ lookup('ini', 'CERTFILE_PATH file=ini/config-explorer.ini') }}"
84+
BATCH_TTL_MINUTES: "{{ lookup('ini', 'BATCH_TTL_MINUTES file=ini/config-explorer.ini') }}"
85+
SCHEDULED_BATCH_INTERVAL_MINUTES: "{{ lookup('ini', 'SCHEDULED_BATCH_INTERVAL_MINUTES file=ini/config-explorer.ini') }}"
7586

7687
- name: Build the explorer release
7788
args:

infra/ansible/playbooks/templates/explorer/explorer_env.j2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ export PHX_HOST={{ PHX_HOST }}
55
export ELIXIR_HOSTNAME={{ ELIXIR_HOSTNAME }}
66
export PHX_SERVER=true
77

8-
# Database
98
export DB_NAME={{ DB_NAME }}
109
export DB_USER={{ DB_USER }}
1110
export DB_PASS={{ DB_PASS }}
1211
export DB_HOST={{ DB_HOST }}
1312

14-
# Tracker API
1513
export TRACKER_API_URL={{ TRACKER_API_URL }}
1614
export SECRET_KEY_BASE={{ SECRET_KEY_BASE }}
1715

1816
export KEYFILE_PATH={{ KEYFILE_PATH }}
1917
export CERTFILE_PATH={{ CERTFILE_PATH }}
18+
19+
export BATCH_TTL_MINUTES={{ BATCH_TTL_MINUTES }}
20+
export SCHEDULED_BATCH_INTERVAL_MINUTES={{ SCHEDULED_BATCH_INTERVAL_MINUTES }}

infra/ansible/stage_inventory.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ batcher:
1515
explorer:
1616
hosts:
1717
aligned-holesky-explorer:
18-
ansible_host: aligned-holesky-stage-1-explorer
18+
ansible_host: aligned-holesky-stage-2-explorer
1919
admin_user: admin
2020
ansible_user: app
2121
ansible_python_interpreter: /usr/bin/python3

0 commit comments

Comments
 (0)