Skip to content

Commit 91a96e5

Browse files
authored
feat: install salt-minion on AMI (#1041)
* chore: install salt-minion on AMI * chore: move salt install to supabase internal * chore: set the salt minion version to install
1 parent 827c153 commit 91a96e5

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
- name: Add apt repository for Saltstack (arm)
2+
block:
3+
- name: salt gpg key
4+
ansible.builtin.apt_key:
5+
url: https://repo.saltproject.io/salt/py3/ubuntu/20.04/arm64/SALT-PROJECT-GPG-PUBKEY-2023.gpg
6+
keyring: /etc/apt/trusted.gpg.d/salt-archive-keyring-2023-arm.gpg
7+
8+
- name: salt apt repo
9+
ansible.builtin.apt_repository:
10+
repo: deb [signed-by=/etc/apt/trusted.gpg.d/salt-archive-keyring-2023-arm.gpg arch=arm64] https://repo.saltproject.io/salt/py3/ubuntu/20.04/arm64/{{ salt_minion_version }} focal main
11+
state: present
12+
when: platform == "arm64"
13+
14+
- name: Add apt repository for Saltstack (amd)
15+
block:
16+
- name: salt gpg key
17+
ansible.builtin.apt_key:
18+
url: https://repo.saltproject.io/salt/py3/ubuntu/20.04/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg
19+
keyring: /etc/apt/trusted.gpg.d/salt-archive-keyring-2023-amd.gpg
20+
21+
- name: salt apt repo
22+
ansible.builtin.apt_repository:
23+
repo: deb [signed-by=/etc/apt/trusted.gpg.d/salt-archive-keyring-2023-amd.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/20.04/amd64/{{ salt_minon_version }} focal main
24+
state: present
25+
when: platform == "amd64"
26+
27+
- name: Salt minion install
28+
apt:
29+
name: salt-minion

ansible/tasks/setup-supabase-internal.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,8 @@
109109

110110
- name: Install PostgreSQL prestart script
111111
import_tasks: internal/postgresql-prestart.yml
112+
113+
- name: Install salt minion
114+
import_tasks: internal/install-salt.yml
115+
tags:
116+
- aws-only

ansible/vars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ gotrue_release_checksum: sha1:585643943fd669e8a9b916e318b241f67fc9cc93
2222

2323
aws_cli_release: "2.2.7"
2424

25+
salt_minion_version: 3007
26+
2527
golang_version: "1.19.3"
2628
golang_version_checksum:
2729
arm64: sha256:99de2fe112a52ab748fb175edea64b313a0c8d51d6157dba683a6be163fd5eab

0 commit comments

Comments
 (0)