Merge "Actually pin erlang packages"

This commit is contained in:
Jenkins
2017-06-29 14:44:19 +00:00
committed by Gerrit Code Review
3 changed files with 17 additions and 2 deletions

View File

@@ -44,7 +44,8 @@ dependencies:
apt_pinned_packages: apt_pinned_packages:
- package: "*" - package: "*"
release: "Erlang Solutions Ltd." release: "Erlang Solutions Ltd."
- package: "erlang-*" - package: "erlang*"
version: "1:19.3*" version: "1:19.3*"
priority: 1000
when: when:
- ansible_pkg_mgr == 'apt' - ansible_pkg_mgr == 'apt'

View File

@@ -85,6 +85,20 @@
tags: tags:
- rabbitmq-repos - rabbitmq-repos
- name: Install yum versionlock plugin
yum:
name: "yum-plugin-versionlock"
state: "{{ rabbitmq_package_state }}"
tags:
- rabbitmq-yum-packages
- name: Lock version of erlang packages
command: yum versionlock add erlang*19.3*
register: yum_versionlock_erlang
changed_when: "yum_versionlock_erlang.stdout.find('versionlock added: 0') == -1"
tags:
- rabbitmq-yum-packages
- name: Install RabbitMQ package dependencies - name: Install RabbitMQ package dependencies
yum: yum:
pkg: "{{ item }}" pkg: "{{ item }}"

View File

@@ -48,7 +48,7 @@ rabbitmq_erlang_repo:
filename: els-erlang filename: els-erlang
rabbitmq_dependencies: rabbitmq_dependencies:
- erlang-hipe-19.3 - erlang-hipe
- openssl - openssl
- socat - socat