Skip to content

Commit

Permalink
fix: update Debian apt repositories to the recommended ones
Browse files Browse the repository at this point in the history
  • Loading branch information
daks committed Jun 2, 2022
1 parent 7eb87f3 commit d1ed9d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
17 changes: 5 additions & 12 deletions rabbitmq/package/repo/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,20 @@ rabbitmq-package-repo-pkg-deps:
- pkgrepo: rabbitmq-package-repo-erlang
- pkgrepo: rabbitmq-package-repo-rabbitmq
{%- set osfullname = grains['osfullname'] %}
{%- set oscodename = grains['oscodename'] %}
rabbitmq-package-repo-erlang:
pkgrepo.managed:
# using cloudsmith.io for rabbitmq-erlang (recommended)
- name: {{ rabbitmq.pkg.repo.erlang.name }}
- humanname: Erlang from CloudSmith Repository
# "ubuntu:bionic" as distribution may work for recent Ubuntu or Debian release
- name: deb {{ rabbitmq.pkg.repo.erlang.url }}/{{ osfullname|lower }} {{ oscodename }} main
- file: /etc/apt/sources.list.d/erlang.list
- key_url: {{ rabbitmq.pkg.repo.erlang.key_url }}
- require_in:
- pkg: rabbitmq-package-install-pkg-installed
rabbitmq-package-repo-rabbitmq:
pkgrepo.managed:
# using packagecloud for rabbitmq-server (recommended)
- name: {{ rabbitmq.pkg.repo.rabbitmq.name }}
- humanname: RabbitMQ PackageCloud Repository
# https://www.rabbitmq.com/install-debian.html#apt
# "bionic" as distribution name should work for any reasonably recent Ubuntu or Debian release.
# See the release to distribution mapping table in RabbitMQ doc guides to learn more.
- name: deb {{ rabbitmq.pkg.repo.rabbitmq.url }}/{{ osfullname|lower }} {{ oscodename }} main
- file: /etc/apt/sources.list.d/rabbitmq.list
- key_url: {{ rabbitmq.pkg.repo.rabbitmq.key_url }}
- require_in:
Expand All @@ -54,7 +49,6 @@ rabbitmq-package-repo-rabbitmq:
rabbitmq-package-repo-erlang:
pkgrepo.managed:
- name: rabbitmq_erlang
# using cloudsmith.io for rabbitmq-erlang (recommended)
- baseurl: {{ rabbitmq.pkg.repo.erlang.baseurl }}/{{ releasever }}/$basearch
- gpgkey: {{ rabbitmq.pkg.repo.erlang.gpgkey }}
- repo_gpgcheck: 1
Expand All @@ -72,7 +66,6 @@ rabbitmq-package-repo-erlang:
rabbitmq-package-repo-rabbitmq:
pkgrepo.managed:
- name: rabbitmq_rabbitmq-server
# using packagecloud for rabbitmq-server (recommended)
- baseurl: {{ rabbitmq.pkg.repo.rabbitmq.baseurl }}/{{ releasever }}/$basearch
- gpgkey: {{ rabbitmq.pkg.repo.rabbitmq.gpgkey }}
- enabled: 1
Expand Down
8 changes: 4 additions & 4 deletions rabbitmq/parameters/os_family/Debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ values:
- erlang-eldap
repo:
erlang:
# yamllint disable-line rule:line-length
name: deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic main
# yamllint disable-line rule:line-length
key_url: https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/gpg.E495BB49CC4BBE5B.key
url: https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb
rabbitmq:
name: deb https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu bionic main
key_url: https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
# yamllint disable-line rule:line-length
key_url: https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/gpg.9F4587F226208342.key
url: https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb
...

0 comments on commit d1ed9d1

Please sign in to comment.