Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  AWX 17.1.0 & Ansible 2.9.25 Cant set proxy in AWX for connecting to github or Galaxy

    Posted Thu March 23, 2023 03:40 PM
    Edited by Stanley Speegle Thu March 23, 2023 03:53 PM

    Hi Team,

    The AWX server is on AIX and is behind a proxy server. AWX is installed and AD-Hoc commands to hosts work but I receive errors connecting to github or Ansible Galaxy.

    The menu settings -> Jobs edit button says edit form coming soon and I can't add a proxy setting for connecting externally.

    Command line awx fails to list the settings after command line login as admin.

    root@awx:/opt/freeware/etc/ansible #awx setting list
    {}

    Running AIX-health-check output shows

    TASK [update project using git] ************************************************13:13:53
    fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/opt/freeware/bin/git", "fetch", "--tags", "origin", "refs/heads/*:refs/remotes/origin/*"], "msg": "Failed to download remote objects and refs: fatal: unable to access 'https://github.com/azhararain/healthcheck_aix.git/': Failed to connect to github.com port 443 after 4 ms: Couldn't connect to server\n"}
    After exporting the proxy settings wget works for pulling down the healthcheck_aix.git file from github.com

    awx:/home #wget https://github.com/azhararain/healthcheck_aix.git
    --2023-03-23 14:21:24--  https://github.com/azhararain/healthcheck_aix.git
    Resolving proxy
    Connecting to proxy... connected.
    Proxy request sent, awaiting response... 301 Moved Permanently
    Location: https://github.com/azhararain/healthcheck_aix [following]
    --2023-03-23 14:21:24--  https://github.com/azhararain/healthcheck_aix
    Reusing existing connection to github.com:443.
    Proxy request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: 'healthcheck_aix.git.1'

    healthcheck_aix.git.1                           [ <=>                                                                                       ] 181.96K  --.-KB/s    in 0.09s

    2023-03-23 14:21:25 (1.97 MB/s) - 'healthcheck_aix.git' saved [186323]

    How can the proxy be configured for AWX?
    Thank you for your help!
    Stan



    ------------------------------
    Stanley
    ------------------------------


    #AIXOpenSource


  • 2.  RE: AWX 17.1.0 & Ansible 2.9.25 Cant set proxy in AWX for connecting to github or Galaxy

    Posted Fri March 24, 2023 02:05 PM

    Stan,

     

    I do not know how many people use AWX and I think this will be community best effort work. Did you check with AWX developer.

    https://developer.ibm.com/articles/automation-using-ansible-awx-gui/

     

    can you configure proxy and also check with firewall people.

     

    AIX connect to external world thru proxy settings that would I think apply to AWX also.  (if you get AIX to

     

    https://www.ibm.com/docs/en/sva/7.0.0?topic=line-aix-installing-policy-proxy-server

     

    https://community.ibm.com/community/user/power/discussion/installing-ansible-awx-on-aix-72-1 - if this helps you.






  • 3.  RE: AWX 17.1.0 & Ansible 2.9.25 Cant set proxy in AWX for connecting to github or Galaxy

    Posted Tue March 28, 2023 11:59 AM

    Minesh,

    Thank you for your reply. I used the info before to get AW installed and running on AIX. I think it is better to not need to have a Linux server to run the Ansible playbooks. I still have not found a solution for the proxy connection to actively retrieve Ansible playbooks from Galaxy. I may have to see if the Playbooks can be manually downloaded and added to the AWX to run the IBM supplied playbooks. It would be easier to just add the proxy setting to AWX and then be able to update the playbooks when they are released for AIX by IBM. 

    Have a good day,

    Stan



    ------------------------------
    Stanley
    ------------------------------



  • 4.  RE: AWX 17.1.0 & Ansible 2.9.25 Cant set proxy in AWX for connecting to github or Galaxy

    Posted Tue March 28, 2023 01:29 PM

    Stan,

     

    You can put on AWX website request for "feature for proxy."

    Minesh.






  • 5.  RE: AWX 17.1.0 & Ansible 2.9.25 Cant set proxy in AWX for connecting to github or Galaxy

    Posted Tue March 28, 2023 03:57 PM





  • 6.  RE: AWX 17.1.0 & Ansible 2.9.25 Cant set proxy in AWX for connecting to github or Galaxy

    Posted Tue March 28, 2023 04:53 PM

    Stan,

     

    Will this help.

     

    I used docker-compose with settings below to build awx and did not have any issue to pull git http repo:

     

    web:

    image: ansible/awx_web:latest

    depends_on:

     

        rabbitmq

        memcached

        postgres

        ports:

        "80:8052"

        hostname: awxweb

        user: root

        restart: unless-stopped

        dns_search: "example.com"

        dns: "10.70.x.x,10.70.x.x"

        environment:

        http_proxy: http://example.com:80

        https_proxy: http://example.com:80

        no_proxy: localhost,127.0.0.1,169.254.169.254,10.0.0.0/8,.example.com,s3-ap-southeast-2.amazonaws.com