SUSE: Use rabbitmq-server/erlang packages from openSUSE repos
The openSUSE OBS OpenStack repositories provide rabbitmq-server and erlang packages tested in an openSUSE OpenStack cloud environment so it's best to use these instead of upstream ones. As such we change the default option to be 'distro' instead of 'file'. However, for the tests we use 'file' so we can install an older version and test the upgrade path. Moreover, we drop the 'zypper lock' code since the OBS repositories only provide one version of the needed packages. Finally, we fail if the installation method is set to external since there is no upstream repositoiry for openSUSE. Change-Id: I79b8f0af97b6fcbf904f4b497a8ab0e070d20542
This commit is contained in:
Markos Chandras
committed by
Markos Chandras (hwoarang)
parent
a74c237cf7
commit
9dccd87218
4 changed files with 44 additions and 31 deletions
@@ -6,19 +6,20 @@ rabbitmq_ssl_key: /etc/rabbitmq/rabbitmq.key
rabbitmq_hipe_compile:True
rabbitmq_old_package:
# NOTE(hwoarang): For openSUSE/Ubuntu, we install the old file explicitly. CentOS7 will get it from the external
# repo instead.
debian:
method:'file'
rabbitmq_package_url:"http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server_3.6.9-1_all.deb"
rabbitmq_package_sha256:"ff100febb8c409692e57f3dc98fd2fc667f83eeefa3958a6fda865ce40a40349"
rabbitmq_release_version:"3.6.9"
redhat:
method:'external_repo'
rabbitmq_package_url:"http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-3.6.9-1.el7.noarch.rpm"
rabbitmq_package_sha256:"757fc6746a1700380b3ba9bf4f00dfa16cc5a0ddc8c94636c4388e838f605c31"
rabbitmq_release_version:"3.6.9"
# NOTE(hwoarang): On SUSE, we use 'rabbitmq_install_method = distro' since we
# always grab the package from the openSUSE repositories. As such, the
# following variables are never used but we keep them here just in case we
# change the installation method in the future.
suse:
method:'file'
rabbitmq_package_url:"http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-3.6.9-1.suse.noarch.rpm"
rabbitmq_package_sha256:"c44813ab94463f83e3e74be04db7304120697a27df12ca057e3dbb32717af32f"
rabbitmq_release_version:"3.6.9"
@@ -26,9 +27,15 @@ rabbitmq_old_package:
# NOTE(hwoarang): This normally matches the _rabbitmq_release_version variable
# in the vars/* distro files.
rabbitmq_new_package:
# NOTE(hwoarang): For openSUSE we get the new version from the repo.
# For Ubuntu keep the default which is 'file'. For CentOS will get it
# from the external repo
debian:
method:'file'
rabbitmq_release_version:"3.6.11"
redhat:
method:'external_repo'
rabbitmq_release_version:"3.6.11"
suse:
method:'distro'
rabbitmq_release_version:"3.6.11"
@@ -19,6 +19,7 @@
# Install previous version of RabbitMQ server
- include:test-install-rabbitmq-server.yml
vars:
rabbitmq_install_method:"{{ rabbitmq_old_package[ansible_os_family | lower]['method'] }}"
rabbitmq_package_url:"{{ rabbitmq_old_package[ansible_os_family | lower]['rabbitmq_package_url'] }}"
rabbitmq_package_sha256:"{{ rabbitmq_old_package[ansible_os_family | lower]['rabbitmq_package_sha256'] }}"
@@ -29,6 +30,7 @@
- include:test-install-rabbitmq-server.yml
vars:
rabbitmq_install_method:"{{ rabbitmq_new_package[ansible_os_family | lower]['method'] }}"
rabbitmq_upgrade:true
- include:test-rabbitmq-server-functional.yml
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.