el7: switch to external_repo install_method

This patch changes the default deployment back to using the
RabbitMQ external repositories.  This restores the behaviour
to the same as the old and ships the 3.7.x series.

We deploy without HiPE by default however our testing is doing
it with HiPE.  This patch drops it so we can actually test
behaviour that we deploy by default.

Change-Id: I49747e104f118ef1fb2bdeb329c92d2f5fb66c56
This commit is contained in:
Mohammed Naser 2019-06-11 17:03:30 -04:00
parent c41b570bc8
commit 961ea18059
3 changed files with 33 additions and 7 deletions

View File

@ -13,10 +13,23 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Fail if installation method is not 'distro'
- name: Fail if installation method is not 'external_repo'
fail:
msg: "The only supported rabbitmq_install_method for RedHat is 'distro'."
when: rabbitmq_install_method != 'distro'
msg: "The only supported rabbitmq_install_method for RedHat is 'external_repo'."
when: rabbitmq_install_method != 'external_repo'
- name: Configure repositories
yum_repository:
name: "{{ item.name }}"
file: "{{ item.filename }}"
description: "{{ item.description }}"
baseurl: "{{ item.baseurl }}"
gpgcheck: "{{ item.gpgcheck | default('no') }}"
with_items:
- "{{ rabbitmq_erlang_repo }}"
- "{{ rabbitmq_repo }}"
tags:
- rabbitmq-repos
- name: Install RabbitMQ packages
yum:

View File

@ -2,5 +2,4 @@ rabbitmq_cookie_token: secrete
rabbitmq_ssl_cert: /etc/rabbitmq/rabbitmq.pem
rabbitmq_ssl_key: /etc/rabbitmq/rabbitmq.key
rabbitmq_hipe_compile: True
rabbitmq_apply_openstack_policies: True

View File

@ -13,8 +13,22 @@
# See the License for the specific language governing permissions and
# limitations under the License.
_rabbitmq_install_method: distro
_rabbitmq_install_method: external_repo
_rabbitmq_repo_url: "https://packagecloud.io/rabbitmq/rabbitmq-server/el/{{ ansible_distribution_major_version }}/$basearch"
_rabbitmq_repo:
name: rabbitmq_rabbitmq-server
description: "RabbitMQ Server Rolling Repository"
baseurl: "{{ rabbitmq_repo_url }}"
filename: RabbitMQ
_rabbitmq_erlang_repo_url: "https://packagecloud.io/rabbitmq/erlang/el/{{ ansible_distribution_major_version }}/$basearch"
_rabbitmq_erlang_repo:
name: rabbitmq_els-erlang
description: "RabbitMQ Erlang Packages from Bintray"
baseurl: "{{ rabbitmq_erlang_repo_url }}"
filename: els-erlang
rabbitmq_distro_packages:
- openssl
- rabbitmq-server
- erlang-22.0.2-1.el7.x86_64
- rabbitmq-server-3.7.15-1.el7.noarch