AIX Open Source

 View Only
  • 1.  augeas for ansible

    Posted Thu April 30, 2020 12:34 PM

    Originally posted by: KarstenHespelt


    Hello,

     

    Could you please consider providing RPM packages for augeas and python-augeas for AIX?

    If we would have augeas and its python bindings on AIX, one would be able to leverage the very useful augeas ansible module for managing all kinds of configuration files and formats.

    Without augeas you would need to use things like lineinfile module to comment out configuration attributes you don't want and make sure the things you do want is in an uncommented line.

    Augeas ships with a understanding of many different configuration files and formats and gives you the ability to just specify which attribute need to be set to which value.

     

    Here is an example how directly you can manage sshd_config attributes:

    
    - name: modify sshd config
      action: augeas command="set" path="/files/etc/ssh/sshd_config/{{ item.path }}" value="{{ item.value }}"
      with_items:
        - path: 'PasswordAuthentication'
          value: 'no'
        - path: 'PubkeyAuthentication'
          value: 'yes'
        - path: 'PermitRootLogin' 
          value: 'no'
      notify:
        - Restart sshd
    

    Kind Regards

    Karsten Hespelt



  • 2.  Re: augeas for ansible

    Posted Fri May 08, 2020 02:27 AM

    Originally posted by: sanket


    Hi Karsten,

     

    Thank you for reaching out to us.

    We will add this into our list and will do some initial assessment. 

    But that will be in Q32020.



  • 3.  Re: augeas for ansible

    Posted Fri May 08, 2020 05:09 AM

    Originally posted by: KarstenHespelt


    Hi sanket,

    Thank you for your reply.
    I want to note that perzl already got augeas built on his site and that I tried to build/install the python bindings via pip, but failed because of several compiler error, that I couldn't solve.
    Maybe this helps a bit when you do your assessment.

    Kind Regards
    Karsten



  • 4.  Re: augeas for ansible

    Posted Mon May 18, 2020 05:08 AM

    Originally posted by: sanket


    Thank you for information. Yes it will help us. 



  • 5.  RE: Re: augeas for ansible

    IBM Champion
    Posted Thu May 20, 2021 04:14 PM
    Hello,

    I noticed that you added augeas package as well as python3 bindings for it.
    Thank you for that.

    Would you mind providing also the python2 bindings for it?
    Currently our ansible is only using the python2 installation and we need to see how to move on to python3.

    Kind Regards
    Karsten


    ------------------------------
    Karsten Hespelt
    ------------------------------