concourse-ansible-playbook-resource icon indicating copy to clipboard operation
concourse-ansible-playbook-resource copied to clipboard

Install ARA

Open ibotty opened this issue 4 years ago • 7 comments

It would be great to enable ARA in the resource.

ibotty avatar Aug 09 '19 09:08 ibotty

Thanks for the suggestion. Upgrading to python 3 is a no-brainer, but I'd like to think about ARA further. How do you envision it could be configured with this resource? Disclaimer: I only heard about it after reading your issue.

troykinsella avatar Aug 29 '19 01:08 troykinsella

Python 3 is now available on in the latest and 2.0.0 resource image tags.

troykinsella avatar Aug 29 '19 01:08 troykinsella

Thank you for consideration.

For the first iteration I would only set ANSIBLE_CALLBACK_PLUGINS and ANSIBLE_ACTION_PLUGINS as described in https://ara.readthedocs.io/en/latest/ansible-configuration.html. People would need to supply a .ansible.cfg file in the ansible playbook dir they supply to the concourse resource.

If more integration is necessary, one could generate a (global) ansible.cfg with options supplied to the resource. I don' know whether that's worth it though.

ibotty avatar Aug 29 '19 06:08 ibotty

Oh, of course it should also be possible to merge the settings easily with ansible (because it can edit ini-files easily) so it is not so hard to add ara settings from the resource's configuration to the ansible config file.

ibotty avatar Aug 29 '19 07:08 ibotty

What do you think of the idea to use ansible to merge a ara config into a .ansible.cfg file? If it is remotely acceptable, I can prototype it soonish.

ibotty avatar Sep 24 '19 12:09 ibotty

Since ruby is already manipulating the ansible.cfg file, I think I'd like to stick to that. I feel like some tricky cases could come out of ansible configuring ansible.

troykinsella avatar Sep 25 '19 16:09 troykinsella

I'll see how I can integrate the ara configuration with ruby. (Sometime this year, I suppose)

ibotty avatar Sep 27 '19 06:09 ibotty