Git Product home page Git Product logo

Comments (10)

bcoca avatar bcoca commented on June 13, 2024 2

you CAN have per user facts modules now, it is configurable, but the intent is having 'per platform' and a more divisible facts load. right now you can workaround your issue with just having a facts module that returns the correct pkg_mgr key for ansible_facts, at least until we decide if this is something we need to correct in core (breaking backwards compat?) or if we just push to a facts gathering reorg.

from ansible.

bcoca avatar bcoca commented on June 13, 2024 1

First, it is not correct 'now' .. I assume it was correct at one point until AIX changed as AIX users had contributed that code and no one had complained in several years.

Since we don't have access to AIX to test we count on users keeping this up to date, but this is not really sustainable.

One way to address this is having custom/platform specific facts modules, use those via configuration in gather_facts action and not rely on the core 'setup' module, which we plan to sunset, for this and other reasons.

from ansible.

ansibot avatar ansibot commented on June 13, 2024

Files identified in the description:

None

If these files are incorrect, please update the component name section of the description or use the component bot command.

from ansible.

ansibot avatar ansibot commented on June 13, 2024

@StevePOI ansible-core 2.14 is not supported and no longer receives bug fixes. Please test against one of the supported versions of ansible-core, preferably the most recent one, to see whether the bug has been fixed.

click here for bot help

from ansible.

StevePOI avatar StevePOI commented on June 13, 2024

@ansibot

"ansible-core" 2.14.13 is the newest version available on AIX, see https://www.ibm.com/support/pages/node/883796#A

"ansible" has version 7.2.0

from ansible.

StevePOI avatar StevePOI commented on June 13, 2024

@ansibot component /opt/freeware/lib/python3.9/site-packages/ansible/module_utils/facts/system/pkg_mgr.py

from ansible.

bcoca avatar bcoca commented on June 13, 2024

this seems like a job for a custom facts module ...

from ansible.

StevePOI avatar StevePOI commented on June 13, 2024

Lines are identical in latest stable release:

https://github.com/ansible/ansible/blob/stable-2.17/lib/ansible/module_utils/facts/system/pkg_mgr.py

from ansible.

StevePOI avatar StevePOI commented on June 13, 2024

this seems like a job for a custom facts module ...

Hello @bcoca !

What do you mean by that?

"installp" is AFAIK only used on IBM AIX and the path set by pkg_mgr.py is not correct.

Sorry if I don´t understand, this is my first issue here :) .

Thanks,

With kind regards,

Steve

from ansible.

StevePOI avatar StevePOI commented on June 13, 2024

Hello @bcoca !

First, it is not correct 'now' .. I assume it was correct at one point until AIX changed as AIX users had contributed that code and no one had complained in several years.

That could be true, the line with installp and the issue that created it is from 2019, AIX 7.2 is from 2015, never monitored the location of these essentials, just used them since they were in $PATH :)

Since we don't have access to AIX to test we count on users keeping this up to date, but this is not really sustainable.

I understand and would be glad to help with feedback regarding AIX :) .

One way to address this is having custom/platform specific facts modules, use those via configuration in gather_facts action and not rely on the core 'setup' module, which we plan to sunset, for this and other reasons.

Do I understand it correctly that this is something planned for Ansible as a whole or do you mean as a "each user has his/her own custom fact modules for their obscure OSes"?

Thanks for the information regarding "setup"!

With kind regards,

Steve

from ansible.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.