Skip to content

RHEL8 pip3 and python-consul2 support  #5251

Open
@deeco

Description

@deeco

Summary

when trying to run the community kv get error for "python-consul" here

'python-consul is required for consul_kv lookup. see http://python-consul.readthedocs.org/en/latest/#installation')

New distro only supports pip3 and would also like to know if pytohn-consul2 is supported ?

Issue Type

Bug Report

Component Name

https://github.com/ansible-collections/community.general/blob/main/plugins/lookup/

Ansible Version

$ ansible --version

AWX tower via operator version 0.21

Community.general Version

$ ansible-galaxy collection list community.general

 - name: community.general
    source: https://galaxy.ansible.com

Configuration

$ ansible-config dump --only-changed
  • name: Retrieve a value from the key/value store
    community.general.consul_kv:
    host: dev-consul.domain.com
    port: 32690
    key: test/testkey
    register: test_key

  • name: Print Key Value
    debug:
    var: test_key

  • name: retrieving a KV from consul cluster on non default port
    debug:
    msg: "{{ lookup('community.general.consul_kv', 'test/testkey', host='dev-consul.domain.com', port='32690') }}"

OS / Environment

rhel 8 and k8s

Steps to Reproduce

  • name: Retrieve a value from the key/value store
    community.general.consul_kv:
    host: dev-consul.domain.com
    port: 32690
    key: test/testkey
    register: test_key

  • name: Print Key Value
    debug:
    var: test_key

  • name: retrieving a KV from consul cluster on non default port
    debug:
    msg: "{{ lookup('community.general.consul_kv', 'test/testkey', host='dev-consul.domain.com', port='32690') }}"

Expected Results

expect version to be installed but never installs due to updated distro believe

Actual Results

'python-consul is required for consul_kv lookup. see http://python-consul.readthedocs.org/en/latest/#installation')

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue/PR relates to a buglookuplookup pluginmodulemodulepluginsplugin (any type)teststestsunittests/unit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions