Skip to content

Commit 936713c

Browse files
authored
chore: udpate package repo for salt (#1307)
1 parent 1273c41 commit 936713c

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed
Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,47 @@
11
- name: Add apt repository for Saltstack (arm)
22
block:
3+
- name: Ensure /etc/apt/keyrings directory exists
4+
file:
5+
path: /etc/apt/keyrings
6+
state: directory
7+
mode: '0755'
8+
39
- 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
10+
ansible.builtin.get_url:
11+
url: https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public
12+
dest: /etc/apt/keyrings/salt-archive-keyring-2023.pgp
13+
mode: '0644'
714

815
- name: salt apt repo
916
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
17+
repo: "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.pgp arch=arm64] https://packages.broadcom.com/artifactory/saltproject-deb/ stable main"
18+
filename: 'salt.list'
1119
state: present
1220
when: platform == "arm64"
1321

1422
- name: Add apt repository for Saltstack (amd)
1523
block:
24+
- name: Ensure /etc/apt/keyrings directory exists
25+
file:
26+
path: /etc/apt/keyrings
27+
state: directory
28+
mode: '0755'
29+
1630
- 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
31+
ansible.builtin.get_url:
32+
url: https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public
33+
dest: /etc/apt/keyrings/salt-archive-keyring-2023.pgp
34+
mode: '0644'
2035

2136
- name: salt apt repo
2237
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
38+
repo: "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.pgp arch=amd64] https://packages.broadcom.com/artifactory/saltproject-deb/ stable main"
39+
filename: 'salt.list'
2440
state: present
2541
when: platform == "amd64"
2642

2743
- name: Salt minion install
2844
apt:
2945
name: salt-minion
46+
state: present
47+
update_cache: yes

0 commit comments

Comments
 (0)