dellis23 / ansible-toolkit

The missing Ansible tools
GNU General Public License v3.0
157 stars 16 forks source link

ansible 2.0 support? #22

Open jkomara opened 8 years ago

jkomara commented 8 years ago

Just came across this today and it looks awesome. I tried running it but it looks like it requires runner and the API was rewritten in 2.0, no longer using runner.

Are there any plans to support 2.0?

Thanks.

ghost commented 8 years ago

:+1: :) Variable precedence has changed a bit in v2 as well, so there might need to be some mods for that.

dellis23 commented 8 years ago

Unfortunately I'm not using Ansible much anymore, but I'd be happy to take a look at PRs with 2.0 support.

jkomara commented 8 years ago

Are you using something else? Just curious what you decided to go with of you did.

On Wed, Jan 27, 2016 at 9:25 AM -0800, "Dan" notifications@github.com wrote:

Unfortunately I'm not using Ansible much anymore, but I'd be happy to take a look at PRs with 2.0 support.

— Reply to this email directly or view it on GitHub.

dellis23 commented 8 years ago

@jkomara Sorry for the late response. I'm using puppet now. Though I have my beefs with Ansible, the primary reason I've changed is because my employer changed.

steenzout commented 8 years ago

@jkomara I've added a tox file ( #26 ) which should enable testing against ansible 2.0.

after the PR is merged I can do some work to make it 2.0 compatible.

steenzout commented 8 years ago

28 addresses this issue.

when merged I'll close this.

steenzout commented 8 years ago

master branch has code to support Ansible 2.0.

a v2.0.0 will follow in a couple of days.

jkomara commented 8 years ago

Awesome! Thank you.

_____________________________

From: Pedro Salgado notifications@github.com Sent: Wednesday, April 13, 2016 13:38 Subject: Re: [dellis23/ansible-toolkit] ansible 2.0 support? (#22) To: dellis23/ansible-toolkit ansible-toolkit@noreply.github.com Cc: jkomara john.komara@gmail.com

Closed #22.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub

opoplawski commented 8 years ago

There are still two users of ansible.runner - show_vars.py and show_template.py:

Traceback (most recent call last):
  File "/bin/atk-show-vars", line 6, in <module>
    from ansible_toolkit.show_vars import show_vars
  File "/usr/lib/python2.7/site-packages/ansible_toolkit/show_vars.py", line 3, in <module>
    from ansible.runner import Runner
ImportError: No module named runner
steenzout commented 8 years ago

@opoplawski what ansible version are you using?

our tests are passing in ansible 1.9.4 and 2.0.1.0

steenzout commented 8 years ago

oh wait! don't know if the tests cover that code...

opoplawski commented 8 years ago

FWIW - ansible 2.0.2.0.

steenzout commented 8 years ago

tests don't cover the case above : reference here.

need to add tests for this and patch the code...

steenzout commented 8 years ago

working on this at issue-41 branch.

opoplawski commented 8 years ago

Okay, I'll keep an eye on that then. Still see 4 test failures on that branch at the moment.

steenzout commented 8 years ago

yes, I'm still working on this...

sylr commented 7 years ago

Hi @steenzout, are you still working on that ?

steenzout commented 7 years ago

@sylr this ain't a priority for me anymore.

the current work on this is at this branch: https://github.com/dellis23/ansible-toolkit/tree/issue-41

feel free to PR.

aioue commented 6 years ago

Needed the atk-vault functionality and don't have the python chops to update this code so instead borrowed heavily from this repo and extracted what I needed. Works with Ansible 2.6.

https://github.com/aioue/pilfer

Needs pathlib and ansible-vault pip packages and has a hardcoded vault password path right now but works the same way as atk-vault. Doesn't use the ansible libraries, but rather a 3rd party wrapper that is currently being supported.