AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

Β View Only
  • 1.  Ansible 2.15 for AIX 7.3

    Posted Thu July 27, 2023 06:53 AM

    Ansible 2.15.2 for AIX. Are you ready to test? We are ready to share it with you!

    You need:
    βœ… IBM AIX 7.3 TL1 SP1. We are glad if you can test it with other AIX versions, but we built it using this this version.
    βœ… Latest Python 3.9 from AIX Toolbox for open-source applications.
    βœ… 5 our RPM packages with Ansible, Python-Cryptography and Jinja2:

    Download the packages in some directory and execute πšπš—πš πš’πš—πšœπšπšŠπš•πš• *πš›πš™πš–.
    It will install the packages and all required dependencies.

    Please bear in mind:

    βœ–οΈ These are not official IBM packages. They are not supported by IBM. We are not IBM.
    βœ–οΈ The packages are not 100% tested. If they work in our test environment, it doesn't mean they should work in your production environment.
    βœ–οΈ The packages are meant to be AIX Toolbox-compatible. But we don't know anything about IBM plans regarding AIX Toolbox and what the future will bring to us.

    One more point - Ansible 2.15 requires UTF-8 locale. If you get the error:

    π™΄πšπšπ™Ύπš: π™°πš—πšœπš’πš‹πš•πšŽ πšŒπš˜πšžπš•πš πš—πš˜πš πš’πš—πš’πšπš’πšŠπš•πš’πš£πšŽ πšπš‘πšŽ πš™πš›πšŽπšπšŽπš›πš›πšŽπš πš•πš˜πšŒπšŠπš•πšŽ: πšžπš—πšœπšžπš™πš™πš˜πš›πšπšŽπš πš•πš˜πšŒπšŠπš•πšŽ πšœπšŽπšπšπš’πš—πš

    check that you have the following two packages installed:

    bos.loc.com.utf
    bos.loc.utf.EN_US

    and set LANG to en_US.UTF-8.

    Source code is available under https://dl.power-devops.com/ansible-2.15.2-srpms.tar.gz

    Have fun with Ansible and AIX!


    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------


  • 2.  RE: Ansible 2.15 for AIX 7.3

    Posted Tue August 01, 2023 02:20 AM

    I test on 7300-00-04-2320 

    Try to install aix collections with tarball

    bash-5.1# /opt/freeware/bin/ansible-galaxy install -r galaxy.yml
    Starting galaxy collection install process
    ERROR! importlib_resources is not installed and is required



    ------------------------------
    Aldin Mujkic
    ------------------------------



  • 3.  RE: Ansible 2.15 for AIX 7.3

    Posted Tue August 01, 2023 06:26 AM

    Hi Aldin,

    can you test it first with just single collections. Because it works for me:

    # ansible-galaxy collection install enfence.powerha_aix
    Starting galaxy collection install process
    Process install dependency map
    Starting collection install process
    Downloading https://galaxy.ansible.com/download/enfence-powerha_aix-1.2.0.tar.gz to /home/root/.ansible/tmp/ansible-local-17695110wayuha0r/tmpw2pp9p8k/enfence-powerha_aix-1.2.0-w5wd354a
    Installing 'enfence.powerha_aix:1.2.0' to '/home/root/.ansible/collections/ansible_collections/enfence/powerha_aix'
    enfence.powerha_aix:1.2.0 was installed successfully
    
    # ansible-galaxy collection install -r requirements.yml -f
    Starting galaxy collection install process
    Process install dependency map
    Starting collection install process
    Downloading https://galaxy.ansible.com/download/ibm-power_aix-1.6.4.tar.gz to /home/root/.ansible/tmp/ansible-local-17695126m8c_8_k5/tmpoh3glgb_/ibm-power_aix-1.6.4-nv66b83e
    Installing 'ibm.power_aix:1.6.4' to '/home/root/.ansible/collections/ansible_collections/ibm/power_aix'
    Downloading https://galaxy.ansible.com/download/ibm-power_ibmi-1.9.1.tar.gz to /home/root/.ansible/tmp/ansible-local-17695126m8c_8_k5/tmpoh3glgb_/ibm-power_ibmi-1.9.1-k8cfekg1
    ibm.power_aix:1.6.4 was installed successfully
    Installing 'ibm.power_ibmi:1.9.1' to '/home/root/.ansible/collections/ansible_collections/ibm/power_ibmi'
    ibm.power_ibmi:1.9.1 was installed successfully
    
    # ansible-galaxy --version
    ansible-galaxy [core 2.15.2]
      config file = /home/root/a/ansible.cfg
      configured module search path = ['/home/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
      ansible python module location = /opt/freeware/lib/python3.9/site-packages/ansible
      ansible collection location = /home/root/.ansible/collections:/usr/share/ansible/collections
      executable location = /opt/freeware/bin/ansible-galaxy
      python version = 3.9.17 (main, Jul  5 2023, 06:17:22) [GCC 10.3.0] (/opt/freeware/bin/python3.9)
      jinja version = 3.1.2
      libyaml = True
    

    Or paste your galaxy.yml and I'll test it in my environment.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 4.  RE: Ansible 2.15 for AIX 7.3

    Posted Thu August 03, 2023 08:30 AM

    i am curious...how do you get recent python3-cryprography built, as there is no rust compiler available for aix?



    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 5.  RE: Ansible 2.15 for AIX 7.3

    Posted Fri August 04, 2023 04:57 AM

    there is a beta version of Rust compiler for AIX. You can search through community to find the link and sign up for the beta programm.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 6.  RE: Ansible 2.15 for AIX 7.3

    Posted 28 days ago

    Hi Aldin,

    Faced similar challenge Almost 2yrs later. The solution to it, is to install the following packages from AIX toolbox repo: python3-importlib_resources.noarch and python3.9-importlib_resources.noarch.

    Also make sure the Ansible is referencing python interpreter from /opt/freeware/bin/python3.9



    ------------------------------
    Moses Kihoro
    ------------------------------