Skip to content

Commit

Permalink
fix(repo): update repo config for keyring
Browse files Browse the repository at this point in the history
  • Loading branch information
waynegemmell committed Nov 9, 2022
1 parent 4247119 commit 5a12da9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
32 changes: 27 additions & 5 deletions zabbix/osfingermap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,35 @@
# osfingermap: {}
---
# os: Debian
Debian-10: {}
Debian-9: {}
Debian-8: {}
Debian-12:
repo_signedby: signedby=/etc/apt/keyrings/zabbix.gpg
repo_aptkey: false
Debian-11:
repo_signedby: ""
repo_aptkey: true
Debian-10:
repo_signedby: ""
repo_aptkey: true
Debian-9:
repo_signedby: ""
repo_aptkey: true
Debian-8:
repo_signedby: ""
repo_aptkey: true

# os: Ubuntu
Ubuntu-18.04: {}
Ubuntu-16.04: {}
Ubuntu-22.04:
repo_signedby: signedby=/etc/apt/keyrings/zabbix.gpg
repo_aptkey: false
Ubuntu-20.04:
repo_signedby: ""
repo_aptkey: true
Ubuntu-18.04:
repo_signedby: ""
repo_aptkey: true
Ubuntu-16.04:
repo_signedby: ""
repo_aptkey: true

# os: Fedora
Fedora-31: {}
Expand Down
4 changes: 3 additions & 1 deletion zabbix/repo.sls
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
- name: apt-transport-https
{{ id_prefix }}_repo:
pkgrepo.managed:
- name: deb https://repo.zabbix.com/zabbix/{{ zabbix.version_repo }}/{{ salt['grains.get']('os')|lower }} {{ salt['grains.get']('oscodename') }} main
- name: deb [ arch={{ salt['grains.get']('osarch')|lower }} {{ zabbix.repo_signedby }} ]
https://repo.zabbix.com/zabbix/{{ zabbix.version_repo }}/{{ salt['grains.get']('os')|lower }} {{ salt['grains.get']('oscodename') }} main
- file: /etc/apt/sources.list.d/zabbix.list
- key_url: https://repo.zabbix.com/zabbix-official-repo.key
- clean_file: True
- aptkey: {{ zabbix.repo_aptkey }}
{%- elif salt['grains.get']('os_family') == 'RedHat' and
salt['grains.get']('osmajorrelease')|int >= 6 %}
Expand Down

0 comments on commit 5a12da9

Please sign in to comment.