8cdf2cf51e
We are aligned on used RabbitMQ/Erlang versions for quite a while now so it makes sense to move version defenition to defaults instead of carrying them separately per distro family. Change-Id: I5ca75bf25d099260bc446a6b4f7d9be7a2bdde58
49 lines
2.2 KiB
YAML
49 lines
2.2 KiB
YAML
---
|
|
# 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.
|
|
|
|
_rabbitmq_install_method: external_repo
|
|
|
|
_rabbitmq_repo_url: "https://ppa1.rabbitmq.com/rabbitmq/rabbitmq-server/deb/{{ ansible_facts['distribution'] | lower }}"
|
|
_rabbitmq_repo:
|
|
- name: "RabbitMQ"
|
|
suites: "{{ ansible_facts['distribution_release'] | lower }}"
|
|
uris: "{{ rabbitmq_repo_url }}"
|
|
signed_by: "{{ lookup('file', 'gpg/C072C960') }}"
|
|
components: main
|
|
architectures: "{{ rabbitmq_architecture_mapping.get(ansible_facts['architecture']) }}"
|
|
state: "{{ (rabbitmq_install_method == 'external_repo') | ternary('present', 'absent') }}"
|
|
|
|
_rabbitmq_erlang_repo_url: "https://ppa1.rabbitmq.com/rabbitmq/rabbitmq-erlang/deb/{{ ansible_facts['distribution'] | lower }}"
|
|
_rabbitmq_erlang_repo:
|
|
- name: "els_erlang"
|
|
suites: "{{ ansible_facts['distribution_release'] | lower }}"
|
|
uris: "{{ rabbitmq_erlang_repo_url }}"
|
|
signed_by: "{{ lookup('file', 'gpg/A16A4251') }}"
|
|
components: main
|
|
architectures: "{{ rabbitmq_architecture_mapping.get(ansible_facts['architecture']) }}"
|
|
state: "{{ (rabbitmq_install_method == 'external_repo') | ternary('present', 'absent') }}"
|
|
|
|
_rabbitmq_erlang_version_spec: "{{ (rabbitmq_install_method == 'external_repo') | ternary('=1:' ~ rabbitmq_erlang_package_version, '') }}"
|
|
|
|
rabbitmq_dependencies:
|
|
- "erlang-base{{ _rabbitmq_erlang_version_spec }}"
|
|
- "erlang-diameter{{ _rabbitmq_erlang_version_spec }}"
|
|
- "erlang-eldap{{ _rabbitmq_erlang_version_spec }}"
|
|
- "erlang-nox{{ _rabbitmq_erlang_version_spec }}"
|
|
- socat
|
|
|
|
rabbitmq_distro_packages:
|
|
- "rabbitmq-server{{ (rabbitmq_install_method == 'external_repo') | ternary('=' ~ rabbitmq_package_version, '') }}"
|