[ansible-devel] Re: Specify CA file for httpapi connection plugin

2023-03-21 Thread Roman Dodin
I got an answer from ansible networking team that this is not currently supported. Opened a feature request for this one https://github.com/ansible-collections/ansible.netcommon/issues/528 On Tue, Mar 21, 2023 at 6:43 PM Roman Dodin wrote: > Hi all, > > for an httpapi connection plugin

[ansible-devel] Specify CA file for httpapi connection plugin

2023-03-21 Thread Roman Dodin
Hi all, for an httpapi connection plugin is there a way to specify a path to the ca.pem file to validate client certificate? I see options to use_ssl and ansible_httpapi_validate_certs, but nothing that enables me to set a path to a custom CA file to validate certs. With curl cacert option does i

Re: [ansible-devel] How to have ansible collection installed in the "edit mode"?

2023-02-23 Thread Roman Dodin
ble_collections.. On Wed, Feb 22, 2023 at 10:10 PM Roman Dodin wrote: > Yes, this is clear, but then it will point to the "installed" collection. > Unless developing directly in the ~/.ansible/collections or using symlinks > like Brian mentioned above, this won't use the fil

Re: [ansible-devel] How to have ansible collection installed in the "edit mode"?

2023-02-22 Thread Roman Dodin
whatever else your IDE may use to all collections paths that ansible is > configured to consult. I mentioned this in my original reply. > > On Wed, Feb 22, 2023 at 2:59 PM Roman Dodin wrote: > >> As for the 2nd question the only workaround I found is to use relative >> imports, whi

Re: [ansible-devel] How to have ansible collection installed in the "edit mode"?

2023-02-22 Thread Roman Dodin
As for the 2nd question the only workaround I found is to use relative imports, which I want to get rid of. Let me give you an example. In my collection dir I have the plugins subdir that has: plugins ├── httpapi │ └── sr.py ├── module_utils │ └── sr.py └── modules └── get.py In my get.py

Re: [ansible-devel] How to have ansible collection installed in the "edit mode"?

2023-02-22 Thread Roman Dodin
ructured as I mentioned above. > > You can configure the paths that ansible looks using > https://docs.ansible.com/ansible-core/devel/reference_appendices/config.html#collections-paths > > > > On Wed, Feb 22, 2023 at 2:09 PM Roman Dodin wrote: > >> Thanks Matt, >> >

Re: [ansible-devel] How to have ansible collection installed in the "edit mode"?

2023-02-22 Thread Roman Dodin
You can use `ansible-config dump | > grep COLLECTIONS_PATHS` to see the default paths used. > > On Wed, Feb 22, 2023 at 12:58 PM Roman Dodin > wrote: > >> Hi all, >> I am developing a collection following the dir layout as prescribed by >> the skeleton. >> I have the foll

[ansible-devel] How to have ansible collection installed in the "edit mode"?

2023-02-22 Thread Roman Dodin
Hi all, I am developing a collection following the dir layout as prescribed by the skeleton. I have the following 2 questions re dev workflows 1) How do you install the collection that you're developing in the "edit mode", like with pip you do `pip install -e`, and then you can do changes to th