Re: ansible in Fedora 23+ (python3)

2015-11-20 Thread Kevin Fenzi
On Fri, 20 Nov 2015 09:32:59 +0100 Petr Spacek wrote: > I would say nothing... Following playbook snippet is just enough to > go from bare minimal Fedora 23 to Fedora 23 which can run Ansible > modules: > > - hosts: vm_templates > gather_facts: False > tasks: > - name:

Re: ansible in Fedora 23+ (python3)

2015-11-20 Thread Adam Williamson
On Thu, 2015-11-19 at 17:28 -0500, Bill Nottingham wrote: > Till Maas (opensou...@till.name) said: > > On Wed, Nov 18, 2015 at 04:00:41PM -0800, Adam Williamson wrote: > > > > > OK - so what's the clear and non-controversial definition of > > > "modules > > > like 'file', 'template' and 'copy'"?

Re: ansible in Fedora 23+ (python3)

2015-11-20 Thread Petr Spacek
On 19.11.2015 23:28, Bill Nottingham wrote: > Till Maas (opensou...@till.name) said: >> On Wed, Nov 18, 2015 at 04:00:41PM -0800, Adam Williamson wrote: >> >>> OK - so what's the clear and non-controversial definition of "modules >>> like 'file', 'template' and 'copy'"? What do those modules

Re: ansible in Fedora 23+ (python3)

2015-11-19 Thread Till Maas
On Wed, Nov 18, 2015 at 04:00:41PM -0800, Adam Williamson wrote: > OK - so what's the clear and non-controversial definition of "modules > like 'file', 'template' and 'copy'"? What do those modules share in > common that we can define clearly and concisely and in a way there > won't be any

Re: ansible in Fedora 23+ (python3)

2015-11-19 Thread Bill Nottingham
Till Maas (opensou...@till.name) said: > On Wed, Nov 18, 2015 at 04:00:41PM -0800, Adam Williamson wrote: > > > OK - so what's the clear and non-controversial definition of "modules > > like 'file', 'template' and 'copy'"? What do those modules share in > > common that we can define clearly and

Re: ansible in Fedora 23+ (python3)

2015-11-19 Thread Stephen Gallagher
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/18/2015 07:00 PM, Adam Williamson wrote: > On Wed, 2015-11-18 at 17:19 -0500, Bill Nottingham wrote: >> Adam Williamson (adamw...@fedoraproject.org) said: You really really want libselinux-python(2) for that as well - it's needed for

Re: ansible in Fedora 23+ (python3)

2015-11-18 Thread Bill Nottingham
Adam Williamson (adamw...@fedoraproject.org) said: > On Tue, 2015-10-13 at 22:21 -0400, Dusty Mabe wrote: > > > > Does anyone have a good solution for this? Obviously it would be nice > > if ansible went to python3 but I think they have stated clearly that > > they are sticking with python2 for

Re: ansible in Fedora 23+ (python3)

2015-11-18 Thread Adam Williamson
On Wed, 2015-11-18 at 14:36 -0500, Bill Nottingham wrote: > Adam Williamson (adamw...@fedoraproject.org) said: > > On Tue, 2015-10-13 at 22:21 -0400, Dusty Mabe wrote: > > > > > > Does anyone have a good solution for this? Obviously it would be nice > > > if ansible went to python3 but I think

Re: ansible in Fedora 23+ (python3)

2015-11-18 Thread Stephen Gallagher
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/18/2015 03:21 PM, Adam Williamson wrote: > On Wed, 2015-11-18 at 14:36 -0500, Bill Nottingham wrote: >> Adam Williamson (adamw...@fedoraproject.org) said: >>> On Tue, 2015-10-13 at 22:21 -0400, Dusty Mabe wrote: Does anyone have a

Re: ansible in Fedora 23+ (python3)

2015-11-18 Thread Bill Nottingham
Adam Williamson (adamw...@fedoraproject.org) said: > > You really really want libselinux-python(2) for that as well - it's needed > > for any file/copy/templating you'd do on the node to ensure proper SELinux > > contexts. (In fact, Ansible will abort on the node without it if it detects > >

Re: ansible in Fedora 23+ (python3)

2015-11-18 Thread Adam Williamson
On Wed, 2015-11-18 at 17:19 -0500, Bill Nottingham wrote: > Adam Williamson (adamw...@fedoraproject.org) said: > > > You really really want libselinux-python(2) for that as well - it's needed > > > for any file/copy/templating you'd do on the node to ensure proper SELinux > > > contexts. (In

Re: ansible in Fedora 23+ (python3)

2015-11-17 Thread Adam Williamson
On Tue, 2015-10-13 at 22:21 -0400, Dusty Mabe wrote: > > Does anyone have a good solution for this? Obviously it would be nice > if ansible went to python3 but I think they have stated clearly that > they are sticking with python2 for backwards compat with systems that > still need 2.4. FWIW, as

Re: ansible in Fedora 23+ (python3)

2015-10-20 Thread Bill Nottingham
Kevin Kofler (kevin.kof...@chello.at) said: > Fabio Alessandro Locati wrote: > > Also, the problem is that RedHat still supports RHEL5 systems which > > for today standards are totally legacy and therefore it has to run on > > Python 2.4. > > The point of forking would be that the fork wouldn't

Re: ansible in Fedora 23+ (python3)

2015-10-20 Thread Stephen John Smoogen
On 19 October 2015 at 21:00, Kevin Kofler wrote: > Fabio Alessandro Locati wrote: >> Also, the problem is that RedHat still supports RHEL5 systems which >> for today standards are totally legacy and therefore it has to run on >> Python 2.4. > > The point of forking would

Re: ansible in Fedora 23+ (python3)

2015-10-19 Thread Richard Bradfield
On Mon, 19 Oct 2015, at 01:33, Kevin Kofler wrote: > Dusty Mabe wrote: > > Does anyone have a good solution for this? Obviously it would be nice > > if ansible went to python3 but I think they have stated clearly that > > they are sticking with python2 for backwards compat with systems that > >

Re: ansible in Fedora 23+ (python3)

2015-10-19 Thread Fabio Alessandro Locati
2015-10-19 2:33 GMT+02:00 Kevin Kofler : > Dusty Mabe wrote: >> Does anyone have a good solution for this? Obviously it would be nice >> if ansible went to python3 but I think they have stated clearly that >> they are sticking with python2 for backwards compat with systems

Re: ansible in Fedora 23+ (python3)

2015-10-19 Thread Florian Weimer
On 10/19/2015 11:37 AM, Fabio Alessandro Locati wrote: > 2015-10-19 2:33 GMT+02:00 Kevin Kofler : >> Dusty Mabe wrote: >>> Does anyone have a good solution for this? Obviously it would be nice >>> if ansible went to python3 but I think they have stated clearly that >>> they

Re: ansible in Fedora 23+ (python3)

2015-10-19 Thread Adam Miller
On Mon, Oct 19, 2015 at 4:37 AM, Fabio Alessandro Locati wrote: > 2015-10-19 2:33 GMT+02:00 Kevin Kofler : >> Dusty Mabe wrote: >>> Does anyone have a good solution for this? Obviously it would be nice >>> if ansible went to python3 but I think they

Re: ansible in Fedora 23+ (python3)

2015-10-19 Thread Kevin Kofler
Fabio Alessandro Locati wrote: > Also, the problem is that RedHat still supports RHEL5 systems which > for today standards are totally legacy and therefore it has to run on > Python 2.4. The point of forking would be that the fork wouldn't have to care. Let the upstream project deal with ancient

Re: ansible in Fedora 23+ (python3)

2015-10-18 Thread Kevin Kofler
Dusty Mabe wrote: > Does anyone have a good solution for this? Obviously it would be nice > if ansible went to python3 but I think they have stated clearly that > they are sticking with python2 for backwards compat with systems that > still need 2.4. I don't understand why still nobody has forked

Re: ansible in Fedora 23+ (python3)

2015-10-15 Thread Robert Kuska
- Original Message - > From: "Kevin Fenzi" <ke...@scrye.com> > To: devel@lists.fedoraproject.org > Sent: Wednesday, October 14, 2015 9:04:19 PM > Subject: Re: ansible in Fedora 23+ (python3) > > On Wed, 14 Oct 2015 16:47:56 + > Igor Gnaten

Re: ansible in Fedora 23+ (python3)

2015-10-15 Thread Bill Nottingham
Robert Kuska (rku...@redhat.com) said: > > > Yes, DNF module works for ansible from the box. We worked at it for > > > some time: https://github.com/ansible/ansible-modules-extras/pull/527 > > > > ...with the caveat from the first post in this thread: You will need to > > have the python2 dnf

Re: ansible in Fedora 23+ (python3)

2015-10-15 Thread Lars Kellogg-Stedman
On Thu, Oct 15, 2015 at 11:54:29AM -0400, Bill Nottingham wrote: > same python version as the Ansible version you're using. If Ansible were to > use python3, all module bindings would need to be python 3, and *all the > managed machines would need to have python3 installed*. Isn't it entirely

Re: ansible in Fedora 23+ (python3)

2015-10-15 Thread Ryan S. Brown
On 10/15/2015 03:30 PM, Lars Kellogg-Stedman wrote: On Thu, Oct 15, 2015 at 11:54:29AM -0400, Bill Nottingham wrote: same python version as the Ansible version you're using. If Ansible were to use python3, all module bindings would need to be python 3, and *all the managed machines would need

Re: ansible in Fedora 23+ (python3)

2015-10-15 Thread Lars Kellogg-Stedman
On Thu, Oct 15, 2015 at 03:36:28PM -0400, Ryan S. Brown wrote: > The difference here is the span of versions that need to be supported. > OpenStack is only trying to support 2.7-3.X and the gulf between 2.4 and 2.7 > is actually quite broad. True that, and I didn't bother to check what Ansible

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Matthew Miller
On Wed, Oct 14, 2015 at 08:40:19AM -0500, Pete Travis wrote: > >> Beyond that, though, why not just have your ansible play ensure its own > >> deps are installed? If you're dealing with docker, make sure the > >> package you need is installed before you run any docker steps... > > So, in other

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Colin Walters
On Tue, Oct 13, 2015, at 10:21 PM, Dusty Mabe wrote: > Just wondering if anyone has started to feel any pain from trying to > use ansible with F23 systems. As part of the Fedora Cloud working > group it would be nice to ship a system that could be targeted by > ansible out of the box. Sounds

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Adam Williamson
On Wed, 2015-10-14 at 08:47 -0400, Matthew Miller wrote: > On Tue, Oct 13, 2015 at 08:57:57PM -0700, Adam Williamson wrote: > > Beyond that, though, why not just have your ansible play ensure its > > own > > deps are installed? If you're dealing with docker, make sure the > > package you need is

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Dusty Mabe
On Wed, Oct 14, 2015 at 11:07:42AM -0400, Colin Walters wrote: > On Tue, Oct 13, 2015, at 10:21 PM, Dusty Mabe wrote: > > > Just wondering if anyone has started to feel any pain from trying to > > use ansible with F23 systems. As part of the Fedora Cloud working > > group it would be nice to ship

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Matthew Miller
On Wed, Oct 14, 2015 at 08:47:24AM -0700, Adam Williamson wrote: > Eh, I guess for me the general 'case' here isn't even really something > for Fedora to document, it's just...how ansible works? It can remote > all sorts of stuff, I mean, *obviously* you need to install the > appropriate backing

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Igor Gnatenko
Yes, DNF module works for ansible from the box. We worked at it for some time: https://github.com/ansible/ansible-modules-extras/pull/527 On Wed, Oct 14, 2015 at 4:28 PM Matthew Miller wrote: > On Wed, Oct 14, 2015 at 08:40:19AM -0500, Pete Travis wrote: > > >> Beyond

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Miroslav Suchý
Dne 14.10.2015 v 04:21 Dusty Mabe napsal(a): > Obviously it would be nice > if ansible went to python3 but I think they have stated clearly that > they are sticking with python2 for backwards compat with systems that > still need 2.4. *nod* https://github.com/ansible/ansible/issues/1409 --

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Kevin Fenzi
On Wed, 14 Oct 2015 16:47:56 + Igor Gnatenko wrote: > Yes, DNF module works for ansible from the box. We worked at it for > some time: https://github.com/ansible/ansible-modules-extras/pull/527 ...with the caveat from the first post in this thread: You will need

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Matthew Miller
On Tue, Oct 13, 2015 at 08:57:57PM -0700, Adam Williamson wrote: > Beyond that, though, why not just have your ansible play ensure its own > deps are installed? If you're dealing with docker, make sure the > package you need is installed before you run any docker steps... So, in other words, it

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Pete Travis
On 10/14/2015 07:47 AM, Matthew Miller wrote: > On Tue, Oct 13, 2015 at 08:57:57PM -0700, Adam Williamson wrote: >> Beyond that, though, why not just have your ansible play ensure its own >> deps are installed? If you're dealing with docker, make sure the >> package you need is installed before

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Matthew Miller
On Wed, Oct 14, 2015 at 11:07:42AM -0400, Colin Walters wrote: > > Just wondering if anyone has started to feel any pain from trying to > > use ansible with F23 systems. As part of the Fedora Cloud working > > group it would be nice to ship a system that could be targeted by > > ansible out of the

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Dusty Mabe
On 10/14/2015 12:42 PM, Matthew Miller wrote: On Wed, Oct 14, 2015 at 11:07:42AM -0400, Colin Walters wrote: Just wondering if anyone has started to feel any pain from trying to use ansible with F23 systems. As part of the Fedora Cloud working group it would be nice to ship a system that

Re: ansible in Fedora 23+ (python3)

2015-10-14 Thread Dusty Mabe
On 10/14/2015 09:40 AM, Pete Travis wrote: On 10/14/2015 07:47 AM, Matthew Miller wrote: On Tue, Oct 13, 2015 at 08:57:57PM -0700, Adam Williamson wrote: Beyond that, though, why not just have your ansible play ensure its own deps are installed? If you're dealing with docker, make sure the

Re: ansible in Fedora 23+ (python3)

2015-10-13 Thread Adam Williamson
On Tue, 2015-10-13 at 21:06 -0600, Kevin Fenzi wrote: > I don't see how that could work. Ansible has tons of modules, which > ones are "standard" ? Such a package would have a ton of deps... Right. Sometimes you need the Docker bits, sometimes you don't. One thing that's a bit awkward is that

Re: ansible in Fedora 23+ (python3)

2015-10-13 Thread Adam Williamson
On Tue, 2015-10-13 at 20:57 -0700, Adam Williamson wrote: > On Tue, 2015-10-13 at 21:06 -0600, Kevin Fenzi wrote: > > > I don't see how that could work. Ansible has tons of modules, which > > ones are "standard" ? Such a package would have a ton of deps... > > Right. Sometimes you need the

Re: ansible in Fedora 23+ (python3)

2015-10-13 Thread Orion Poplawski
On 10/13/2015 08:21 PM, Dusty Mabe wrote: Hey all, Just wondering if anyone has started to feel any pain from trying to use ansible with F23 systems. As part of the Fedora Cloud working group it would be nice to ship a system that could be targeted by ansible out of the box. Unfortunately,

Re: ansible in Fedora 23+ (python3)

2015-10-13 Thread Kevin Fenzi
On Tue, 13 Oct 2015 20:36:39 -0600 Orion Poplawski wrote: > On 10/13/2015 08:21 PM, Dusty Mabe wrote: > > > > > > Hey all, > > > > Just wondering if anyone has started to feel any pain from trying to > > use ansible with F23 systems. As part of the Fedora Cloud working > >

ansible in Fedora 23+ (python3)

2015-10-13 Thread Dusty Mabe
Hey all, Just wondering if anyone has started to feel any pain from trying to use ansible with F23 systems. As part of the Fedora Cloud working group it would be nice to ship a system that could be targeted by ansible out of the box. Unfortunately, since ansible uses python 2.X vs python 3 it