Move version pinnings from distro vars to defaults

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
This commit is contained in:
Dmitriy Rabotyagov 2024-11-13 14:33:31 +01:00
parent fef83101a6
commit 8cdf2cf51e
3 changed files with 5 additions and 8 deletions

View File

@ -20,6 +20,10 @@ cache_timeout: 600
# Options are 'present' and 'latest'
rabbitmq_package_state: "latest"
# Defined versions of RabbitMQ and Erlang
rabbitmq_package_version: "4.0.3-1"
rabbitmq_erlang_package_version: "26.2.*-1"
# Inventory group containing the hosts for the cluster
rabbitmq_host_group: "rabbitmq_all"
@ -51,7 +55,6 @@ rabbitmq_upgrade: false
rabbitmq_ignore_version_state: false
rabbitmq_package_url: ""
rabbitmq_package_version: "{{ _rabbitmq_package_version }}"
rabbitmq_package_sha256: ""
rabbitmq_package_path: ""
@ -86,9 +89,6 @@ rabbitmq_erlang_repo_url: "{{ _rabbitmq_erlang_repo_url | default(null) }}"
# Set the repo information for the Erlang repository
rabbitmq_erlang_repo: "{{ _rabbitmq_erlang_repo | default({}) }}"
# Set the elang version used on the deployment
rabbitmq_erlang_package_version: "{{ _rabbitmq_erlang_package_version }}"
# 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) }}"

View File

@ -14,8 +14,6 @@
# limitations under the License.
_rabbitmq_install_method: external_repo
_rabbitmq_package_version: "4.0.3-1"
_rabbitmq_erlang_package_version: "26.2.*-1"
_rabbitmq_repo_url: "https://ppa1.rabbitmq.com/rabbitmq/rabbitmq-server/deb/{{ ansible_facts['distribution'] | lower }}"
_rabbitmq_repo:

View File

@ -14,12 +14,11 @@
# limitations under the License.
_rabbitmq_install_method: external_repo
_rabbitmq_package_version: "4.0.3-1"
# NOTE(nhanlon) 2023-05-30: although the package repository is marked
# el9, the packages themselves still have an el8 dist tag for rabbitmq
_rabbitmq_package_dist_tag: "el8"
_rabbitmq_erlang_package_version: "26.2.*-1"
_rabbitmq_erlang_package_dist_tag: "el{{ ansible_facts['distribution_major_version'] }}"
# NOTE(noonedeadpunk): List of available packages can be searched here: https://cloudsmith.io/~rabbitmq/repos/