From 9fa1b1b9ed8622aa8bbc303b41d4b77dc768f760 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Tue, 28 Apr 2020 07:14:40 +0100 Subject: [PATCH] Add experimental support for ubuntu focal. This uses the rabbitmq/erlang packages from the ubuntu repo itself rather than a specific version from packagecloud. This should be updated once official versioned packages are published. Change-Id: I28ef6f425aac038989fc9981caf9589b3a8c3617 --- vars/ubuntu-20.04.yml | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 vars/ubuntu-20.04.yml diff --git a/vars/ubuntu-20.04.yml b/vars/ubuntu-20.04.yml new file mode 100644 index 00000000..2e2d26b9 --- /dev/null +++ b/vars/ubuntu-20.04.yml @@ -0,0 +1,52 @@ +--- +# Copyright 2016, Walmart Stores, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE(jrosser) this is set to distro as there is no rabbitmq package currently for focal at packagecloud +_rabbitmq_install_method: distro +_rabbitmq_package_url: "https://packagecloud.io/rabbitmq/rabbitmq-server/packages/{{ ansible_distribution | lower }}/{{ ansible_distribution_release | lower }}/rabbitmq-server_3.8.2-1_all.deb/download.deb" +_rabbitmq_package_version: "{{ rabbitmq_package_url.split('/')[-2].split('_')[1] }}" +_rabbitmq_release_version: "{{ rabbitmq_package_version.split('-')[0] }}" +_rabbitmq_package_sha256: "aebdb80be49fe3adbf99c859006d8a503f531be79a0cd0712a30341e4c72054f" +_rabbitmq_package_path: "/opt/rabbitmq-server.deb" + +_rabbitmq_gpg_keys: + - file: gpg/4D206F89 + - file: gpg/A14F4FCA + +_rabbitmq_repo_url: "https://packagecloud.io/rabbitmq/rabbitmq-server/{{ ansible_distribution | lower }}" +_rabbitmq_repo: + repo: "deb {{ rabbitmq_repo_url }} {{ ansible_distribution_release | lower }} main" + # NOTE(jrosser) this is set to absent as there is no rabbitmq package currently for focal at packagecloud + state: "absent" + filename: "RabbitMQ" + +_rabbitmq_erlang_repo_url: "https://packages.erlang-solutions.com/{{ ansible_distribution | lower }}" +_rabbitmq_erlang_repo: + repo: "deb {{ rabbitmq_erlang_repo_url }} {{ ansible_distribution_release | lower }} contrib" + # NOTE(jrosser) this is set to absent as there is no erlang package currently for focal at packagecloud + state: "absent" + filename: els_erlang + +_rabbitmq_erlang_version_spec: "1:22.*" + +rabbitmq_dependencies: + - "{{ (ansible_architecture == 'aarch64') | ternary('erlang-base', 'erlang-base-hipe') }}" + - erlang-diameter + - erlang-eldap + - erlang-nox + - socat + +rabbitmq_distro_packages: + - rabbitmq-server