Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed ubuntu rmq package #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

PetrusHahol
Copy link

Move from bintray.com to dl.cloudsmith.io

Description

Since bintray.com is having a sunset - package has changed.

Motivation and Context

Changed rmq repo relaying on official rmq documentation. https://www.rabbitmq.com/install-debian.html

How Has This Been Tested?

Only installation to ubuntu has tested.
Valuanters to test the rest are welcomed.

Types of changes

  • Bug fix

Fixes #45

@maxpoirier
Copy link

Looks similar to mine https://github.com/stone-payments/ansible-rabbitmq/pull/38/files. I'm currently using a Fork with this code and it works perfectly.

@AhmedSRamadan
Copy link

Move from bintray.com to dl.cloudsmith.io

Description

Since bintray.com is having a sunset - package has changed.

Motivation and Context

Changed rmq repo relaying on official rmq documentation. https://www.rabbitmq.com/install-debian.html

How Has This Been Tested?

Only installation to ubuntu has tested.
Valuanters to test the rest are welcomed.

Types of changes

* [x]  Bug fix

Fixes #45
@PetrusHahol
I found this error
TASK [ansible-rabbitmq : Install rabbitmq-server] *********************************************************************************************************************************************************
fatal: [RabbitMQ]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: E:Failed to fetch https://dl.bintray.com/rabbitmq/debian/dists/bionic/InRelease 403 Forbidden [IP: 3.64.227.92 443], E:The repository 'https://dl.bintray.com/rabbitmq/debian bionic InRelease' is not signed., W:Updating from such a repository can't be done securely, and is therefore disabled by default., W:See apt-secure(8) manpage for repository creation and user configuration details., E:Failed to fetch https://dl.bintray.com/rabbitmq/debian/dists/xenial/InRelease 403 Forbidden [IP: 3.64.227.92 443], E:The repository 'https://dl.bintray.com/rabbitmq/debian xenial InRelease' is not signed."}

PLAY RECAP ************************************************************************************************************************************************************************************************
RabbitMQ : ok=8 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

@PetrusHahol
Copy link
Author

PetrusHahol commented May 17, 2021

@AhmedSRamadan https://dl.bintray.com/rabbitmq/debian repository was removed. Look at this change

Probably you applied the changes from this pull request, but your rabbitmq.bintray.list left in your operation system.
Remove your old rabbitmq.bintray.list from ~/etc/apt. Most probably its located in ~/etc/apt/sources.list.d therefore run rm ~/etc/apt/sources.list.d/rabbitmq.bintray.list.

After rabbitmq.bintray.list is removed - run your playbook again

@AhmedSRamadan
Copy link

AhmedSRamadan commented May 17, 2021

@PetrusHahol
Thanks a lot solved but I have another error

ASK [ansible-rabbitmq : Enable plugins] ******************************************************************************************************************************************************************
fatal: [RabbitMQ]: FAILED! => {"msg": "The conditional check 'item.name not in rabbitmq_installed_plugins.stdout_lines' failed. The error was: error while evaluating conditional (item.name not in rabbitmq_installed_plugins.stdout_lines): 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'name'\n\nThe error appears to be in '/home/ahmed/Desktop/ansible/RabbitMQ/roles/ansible-rabbitmq/tasks/config/plugins.yml': line 7, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Enable plugins\n ^ here\n"}

@PetrusHahol
Copy link
Author

PetrusHahol commented May 18, 2021

@AhmedSRamadan I was not facing this error since not using plugins. I think its a different issue and does not have anything related to this pull request. I am not sure that the example that placed in readme.md about usage of plugins is correct. To highlight the problem - I would create a different issue.

This module is used for enabling plugins here.
According to example - it iterates over strings, and obviously a string does not have any attributes :)

I would make it next way:

---
- name: queue service
  hosts: your_hosts
  become: true
  roles:
    - role: stone-payments.rabbitmq
      rabbitmq_plugins:
        - name: rabbitmq_management
          state: enabled         
        - name: rabbitmq_shovel
          state: enabled
        - name: rabbitmq_shovel_management
          state: enabled

Also if you don't want to use plugins ( rabbitmq_management will be installed by default), you can just use next config:

---
- name: queue service
  hosts: your_hosts
  become: true
  roles:
    - role: stone-payments.rabbitmq

@AhmedSRamadan
Copy link

@PetrusHahol
Thank you very much for your help , It solved
do you know what is rabbitmq_shovel and management for ?

@PetrusHahol
Copy link
Author

@AhmedSRamadan
You can check here.
It's official rmq documentation. 🙂

w-4 added a commit to w-4/ansible-rabbitmq that referenced this pull request Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add bintray rabbitmq repository's key error
3 participants