Skip to content

Commit

Permalink
fix: ensure repo key exists with right perms
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Dec 3, 2024
1 parent 33d1ba2 commit 43803d5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions salt/base/salt.sls
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,21 @@ salt-pin-config:
- user: root
- group: root
- mode: "0644"
{% endif %}

salt-repo-key:
file.managed:
- name: /etc/apt/keyrings/salt-archive-keyring-2024.pgp
- source: https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public
- mode: '0644'
- skip_verify: True

salt-repo:
pkgrepo.managed:
{% if grains["oscodename"] in ["focal", "jammy", "noble"] %}
- name: deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2024.pgp arch={{ grains["osarch"] }}] https://packages.broadcom.com/artifactory/saltproject-deb/ stable main
- key_url: https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public
- aptkey: False
- file: /etc/apt/sources.list.d/salt.list
{% endif %}
- require:
- file: salt-repo-key
{% endif %}


Expand Down

0 comments on commit 43803d5

Please sign in to comment.