Allow different install methods for rabbit/erlang
Currently Debian Bullseye doesn't have erlang provided by external repos So in order to update rabbitmq version used we need to implement rabbitmq_erlang_install_method, so that we could use external rabbitmq with distro provided erlang. Hpefully that is temporary solution and erlang packages for bullseye will be built one day. Change-Id: I32256271759d26522c17fe14c75b41da4c86c31a
This commit is contained in:
parent
4ab856bfef
commit
1b570e3511
@ -81,6 +81,7 @@ rabbitmq_erlang_version_spec: "{{ _rabbitmq_erlang_version_spec | default(null)
|
||||
|
||||
# Choose file, distro, external_repo for rabbitmq_install_method.
|
||||
rabbitmq_install_method: "{{ _rabbitmq_install_method }}"
|
||||
rabbitmq_erlang_install_method: "{{ _rabbitmq_erlang_install_method | default(rabbitmq_install_method) }}"
|
||||
|
||||
# Name of the rabbitmq cluster
|
||||
rabbitmq_cluster_name: rabbitmq_cluster1
|
||||
|
@ -70,7 +70,7 @@
|
||||
update_cache: no
|
||||
register: add_erlang_repos
|
||||
when:
|
||||
- rabbitmq_erlang_repo.repo is defined
|
||||
- rabbitmq_erlang_install_method == 'external_repo'
|
||||
tags:
|
||||
- rabbitmq-repos
|
||||
|
||||
|
@ -13,12 +13,23 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
_rabbitmq_install_method: distro
|
||||
_rabbitmq_package_version: "3.8.9-3"
|
||||
_rabbitmq_install_method: external_repo
|
||||
_rabbitmq_package_version: "3.9.8-1"
|
||||
|
||||
_rabbitmq_erlang_install_method: distro
|
||||
_rabbitmq_erlang_version_spec: "23.2.6+dfsg-1"
|
||||
|
||||
_rabbitmq_gpg_keys: []
|
||||
_rabbitmq_gpg_keys:
|
||||
- file: gpg/C072C960 # RabbitMQ Cloudsmith repo
|
||||
- file: gpg/0A9AF211 # RabbitMQ Release Signing Key
|
||||
|
||||
# NOTE(noonedeadpunk): List of available packages can be searched here: https://cloudsmith.io/~rabbitmq/repos/
|
||||
|
||||
_rabbitmq_repo_url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/{{ ansible_facts['distribution'] | lower }}"
|
||||
_rabbitmq_repo:
|
||||
repo: "deb {{ rabbitmq_repo_url }} {{ ansible_facts['distribution_release'] | lower }} main"
|
||||
state: "present"
|
||||
filename: "RabbitMQ"
|
||||
|
||||
rabbitmq_dependencies:
|
||||
- erlang-base
|
||||
|
Loading…
x
Reference in New Issue
Block a user