Re: [ansible-project] rpm-python centos5 package package_facts

2019-03-08 Thread Matt Martz
It creates a handful of RPMs that have to be installed, they are just the
python 2.4 RPMs patched to build python 2.6 versions. They install
alongside the existing python2.4 RPMs and should not interfere with them.

On Fri, Mar 8, 2019 at 4:41 PM Adam E  wrote:

> hey Matt,  just to ensure i'm clear, after the rebuild do you just need to
> install the rpm-python26 rpm or does it create rebuilt versions of the yum
> and rpm distributions as well that all need to also be updated.
>
> if it's only rpm-python then I may give your build a shot, but I tried a
> bunch of things and I assume that there are newer versions of rpm libraries
> needed as well which look to be what your build is doing ;-) .  That
> doesn't look like fun, pretty impressive though ;-)
>
>
> On Friday, March 8, 2019 at 2:22:33 PM UTC-8, Matt Martz wrote:
>>
>> I did some experimenting with this about a year ago.  I have a repo that
>> has a playbook that can build the packages for EL5 using python2.6 from
>> EPEL.
>>
>> NOTE: I don't necessarily recommend this, it was an experiment to see if
>> it could be done
>>
>> WARNING: Proceed at your own risk ;)
>>
>> https://github.com/sivel/el5-python26-rpm
>>
>> The last release of Ansible to support EL5 natively was Ansible 2.3
>>
>> On Fri, Mar 8, 2019 at 4:16 PM S C Rigler  wrote:
>>
>>> If you can install a newer python on the machines you should be able
>>> to manage them by setting the inventory variable
>>> "ansible_python_interpreter" for them to the path of the alternate
>>> python interpreter.
>>>
>>> On Fri, Mar 8, 2019 at 2:25 PM Adam E  wrote:
>>> >
>>> > hey there, i'm trying to manage a bunch of centos5/rhel5 systems with
>>> ansible 2.7.5
>>> >
>>> > On the target host I am able to install python 2.6 from epel which is
>>> all good and ansible runs just fine for most stuff.   The issue is with
>>> anything related to packages (ie . package_facts and package).  They both
>>> rely on the "rpm" python library.
>>> >
>>> >
>>> > Problem is, I can't figure out how to install this library on centos
>>> 5.   It seems the library is not available in epel
>>> >
>>> > I tried building from source but I then get the error below:
>>> > # python26
>>> > Python 2.6.8 (unknown, Nov  7 2012, 14:47:45)
>>> > [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
>>> > Type "help", "copyright", "credits" or "license" for more information.
>>> > >>> import rpm
>>> > rpm.py:15: UserWarning: The RPM Python bindings are not currently
>>> available via PyPI.
>>> >
>>> >
>>> > Please install them with your distro package manager (typically called
>>> > 'python2-rpm' or 'python3-rpm'), and ensure that any virtual
>>> environments
>>> > needing the API are configured to be able to see the system site
>>> packages
>>> > directory.
>>> >
>>> >
>>> >   warnings.warn(warning_msg)
>>> > >>>
>>> >
>>> >
>>> > If I can't get this working, I guess my only options are to either
>>> just not manage packages on the legacy centos/rhel5 boxes or see about
>>> running an older version (multiple versions) of ansible within AWX.
>>> >
>>> > Just wondering if anyone has went through this already and can provide
>>> any tips.
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> an email to ansible-proje...@googlegroups.com.
>>> > To post to this group, send email to ansible...@googlegroups.com.
>>> > To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/18a045ee-1f63-437b-a8c5-d10880e5cd50%40googlegroups.com
>>> .
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to ansible-proje...@googlegroups.com.
>>> To post to this group, send email to ansible...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/CAFbiokdgxMddo%3D-DP%2B5LVrGqyL_4PoHAddii%2BWH2cscEKhtbyA%40mail.gmail.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Matt Martz
>> @sivel
>> sivel.net
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/35f77629-8cd9-4407-9645-a901d5d315da%40googlegroups.com
> 
> .
> For more options, visit 

Re: [ansible-project] rpm-python centos5 package package_facts

2019-03-08 Thread Adam E
hey Matt,  just to ensure i'm clear, after the rebuild do you just need to 
install the rpm-python26 rpm or does it create rebuilt versions of the yum 
and rpm distributions as well that all need to also be updated.

if it's only rpm-python then I may give your build a shot, but I tried a 
bunch of things and I assume that there are newer versions of rpm libraries 
needed as well which look to be what your build is doing ;-) .  That 
doesn't look like fun, pretty impressive though ;-)


On Friday, March 8, 2019 at 2:22:33 PM UTC-8, Matt Martz wrote:
>
> I did some experimenting with this about a year ago.  I have a repo that 
> has a playbook that can build the packages for EL5 using python2.6 from 
> EPEL.
>
> NOTE: I don't necessarily recommend this, it was an experiment to see if 
> it could be done
>
> WARNING: Proceed at your own risk ;)
>
> https://github.com/sivel/el5-python26-rpm
>
> The last release of Ansible to support EL5 natively was Ansible 2.3
>
> On Fri, Mar 8, 2019 at 4:16 PM S C Rigler > 
> wrote:
>
>> If you can install a newer python on the machines you should be able
>> to manage them by setting the inventory variable
>> "ansible_python_interpreter" for them to the path of the alternate
>> python interpreter.
>>
>> On Fri, Mar 8, 2019 at 2:25 PM Adam E > 
>> wrote:
>> >
>> > hey there, i'm trying to manage a bunch of centos5/rhel5 systems with 
>> ansible 2.7.5
>> >
>> > On the target host I am able to install python 2.6 from epel which is 
>> all good and ansible runs just fine for most stuff.   The issue is with 
>> anything related to packages (ie . package_facts and package).  They both 
>> rely on the "rpm" python library.
>> >
>> >
>> > Problem is, I can't figure out how to install this library on centos 
>> 5.   It seems the library is not available in epel
>> >
>> > I tried building from source but I then get the error below:
>> > # python26
>> > Python 2.6.8 (unknown, Nov  7 2012, 14:47:45)
>> > [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
>> > Type "help", "copyright", "credits" or "license" for more information.
>> > >>> import rpm
>> > rpm.py:15: UserWarning: The RPM Python bindings are not currently 
>> available via PyPI.
>> >
>> >
>> > Please install them with your distro package manager (typically called
>> > 'python2-rpm' or 'python3-rpm'), and ensure that any virtual 
>> environments
>> > needing the API are configured to be able to see the system site 
>> packages
>> > directory.
>> >
>> >
>> >   warnings.warn(warning_msg)
>> > >>>
>> >
>> >
>> > If I can't get this working, I guess my only options are to either just 
>> not manage packages on the legacy centos/rhel5 boxes or see about running 
>> an older version (multiple versions) of ansible within AWX.
>> >
>> > Just wondering if anyone has went through this already and can provide 
>> any tips.
>> >
>> > --
>> > You received this message because you are subscribed to the Google 
>> Groups "Ansible Project" group.
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to ansible-proje...@googlegroups.com .
>> > To post to this group, send email to ansible...@googlegroups.com 
>> .
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/18a045ee-1f63-437b-a8c5-d10880e5cd50%40googlegroups.com
>> .
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to ansible-proje...@googlegroups.com .
>> To post to this group, send email to ansible...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CAFbiokdgxMddo%3D-DP%2B5LVrGqyL_4PoHAddii%2BWH2cscEKhtbyA%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Matt Martz
> @sivel
> sivel.net
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/35f77629-8cd9-4407-9645-a901d5d315da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] rpm-python centos5 package package_facts

2019-03-08 Thread Adam E
hi Steve.  the python interpreter is not the issue.  I am using python 2.6 
without issues, the issue is the dependency on the rpm-python os package 
(python library).   I cannot find/install this for centos5.   the "rpm" 
library is not part of the standard python distro, it's an extra library.

On Friday, March 8, 2019 at 2:17:04 PM UTC-8, Steve R wrote:
>
> If you can install a newer python on the machines you should be able 
> to manage them by setting the inventory variable 
> "ansible_python_interpreter" for them to the path of the alternate 
> python interpreter. 
>
> On Fri, Mar 8, 2019 at 2:25 PM Adam E > 
> wrote: 
> > 
> > hey there, i'm trying to manage a bunch of centos5/rhel5 systems with 
> ansible 2.7.5 
> > 
> > On the target host I am able to install python 2.6 from epel which is 
> all good and ansible runs just fine for most stuff.   The issue is with 
> anything related to packages (ie . package_facts and package).  They both 
> rely on the "rpm" python library. 
> > 
> > 
> > Problem is, I can't figure out how to install this library on centos 5. 
>   It seems the library is not available in epel 
> > 
> > I tried building from source but I then get the error below: 
> > # python26 
> > Python 2.6.8 (unknown, Nov  7 2012, 14:47:45) 
> > [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 
> > Type "help", "copyright", "credits" or "license" for more information. 
> > >>> import rpm 
> > rpm.py:15: UserWarning: The RPM Python bindings are not currently 
> available via PyPI. 
> > 
> > 
> > Please install them with your distro package manager (typically called 
> > 'python2-rpm' or 'python3-rpm'), and ensure that any virtual 
> environments 
> > needing the API are configured to be able to see the system site 
> packages 
> > directory. 
> > 
> > 
> >   warnings.warn(warning_msg) 
> > >>> 
> > 
> > 
> > If I can't get this working, I guess my only options are to either just 
> not manage packages on the legacy centos/rhel5 boxes or see about running 
> an older version (multiple versions) of ansible within AWX. 
> > 
> > Just wondering if anyone has went through this already and can provide 
> any tips. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Ansible Project" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to ansible-proje...@googlegroups.com . 
> > To post to this group, send email to ansible...@googlegroups.com 
> . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/18a045ee-1f63-437b-a8c5-d10880e5cd50%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dfcfab66-f579-4aea-8c82-58dd6dc8bfca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] rpm-python centos5 package package_facts

2019-03-08 Thread Matt Martz
I did some experimenting with this about a year ago.  I have a repo that
has a playbook that can build the packages for EL5 using python2.6 from
EPEL.

NOTE: I don't necessarily recommend this, it was an experiment to see if it
could be done

WARNING: Proceed at your own risk ;)

https://github.com/sivel/el5-python26-rpm

The last release of Ansible to support EL5 natively was Ansible 2.3

On Fri, Mar 8, 2019 at 4:16 PM S C Rigler  wrote:

> If you can install a newer python on the machines you should be able
> to manage them by setting the inventory variable
> "ansible_python_interpreter" for them to the path of the alternate
> python interpreter.
>
> On Fri, Mar 8, 2019 at 2:25 PM Adam E  wrote:
> >
> > hey there, i'm trying to manage a bunch of centos5/rhel5 systems with
> ansible 2.7.5
> >
> > On the target host I am able to install python 2.6 from epel which is
> all good and ansible runs just fine for most stuff.   The issue is with
> anything related to packages (ie . package_facts and package).  They both
> rely on the "rpm" python library.
> >
> >
> > Problem is, I can't figure out how to install this library on centos 5.
>  It seems the library is not available in epel
> >
> > I tried building from source but I then get the error below:
> > # python26
> > Python 2.6.8 (unknown, Nov  7 2012, 14:47:45)
> > [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import rpm
> > rpm.py:15: UserWarning: The RPM Python bindings are not currently
> available via PyPI.
> >
> >
> > Please install them with your distro package manager (typically called
> > 'python2-rpm' or 'python3-rpm'), and ensure that any virtual environments
> > needing the API are configured to be able to see the system site packages
> > directory.
> >
> >
> >   warnings.warn(warning_msg)
> > >>>
> >
> >
> > If I can't get this working, I guess my only options are to either just
> not manage packages on the legacy centos/rhel5 boxes or see about running
> an older version (multiple versions) of ansible within AWX.
> >
> > Just wondering if anyone has went through this already and can provide
> any tips.
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Ansible Project" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to ansible-project+unsubscr...@googlegroups.com.
> > To post to this group, send email to ansible-project@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/18a045ee-1f63-437b-a8c5-d10880e5cd50%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAFbiokdgxMddo%3D-DP%2B5LVrGqyL_4PoHAddii%2BWH2cscEKhtbyA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Matt Martz
@sivel
sivel.net

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v84Nf1P5KCPePKv_wgLte4W3q1XhAsJ2SGeSnC%3DEyPZYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] rpm-python centos5 package package_facts

2019-03-08 Thread S C Rigler
If you can install a newer python on the machines you should be able
to manage them by setting the inventory variable
"ansible_python_interpreter" for them to the path of the alternate
python interpreter.

On Fri, Mar 8, 2019 at 2:25 PM Adam E  wrote:
>
> hey there, i'm trying to manage a bunch of centos5/rhel5 systems with ansible 
> 2.7.5
>
> On the target host I am able to install python 2.6 from epel which is all 
> good and ansible runs just fine for most stuff.   The issue is with anything 
> related to packages (ie . package_facts and package).  They both rely on the 
> "rpm" python library.
>
>
> Problem is, I can't figure out how to install this library on centos 5.   It 
> seems the library is not available in epel
>
> I tried building from source but I then get the error below:
> # python26
> Python 2.6.8 (unknown, Nov  7 2012, 14:47:45)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import rpm
> rpm.py:15: UserWarning: The RPM Python bindings are not currently available 
> via PyPI.
>
>
> Please install them with your distro package manager (typically called
> 'python2-rpm' or 'python3-rpm'), and ensure that any virtual environments
> needing the API are configured to be able to see the system site packages
> directory.
>
>
>   warnings.warn(warning_msg)
> >>>
>
>
> If I can't get this working, I guess my only options are to either just not 
> manage packages on the legacy centos/rhel5 boxes or see about running an 
> older version (multiple versions) of ansible within AWX.
>
> Just wondering if anyone has went through this already and can provide any 
> tips.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/18a045ee-1f63-437b-a8c5-d10880e5cd50%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFbiokdgxMddo%3D-DP%2B5LVrGqyL_4PoHAddii%2BWH2cscEKhtbyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] rpm-python centos5 package package_facts

2019-03-08 Thread Adam E
hey there, i'm trying to manage a bunch of centos5/rhel5 systems with 
ansible 2.7.5

On the target host I am able to install python 2.6 from epel which is all 
good and ansible runs just fine for most stuff.   The issue is with 
anything related to packages (ie . package_facts and package).  They both 
rely on the "rpm" python library.


Problem is, I can't figure out how to install this library on centos 5.  
 It seems the library is not available in epel 


I tried building from source  but I 
then get the error below:
# python26
Python 2.6.8 (unknown, Nov  7 2012, 14:47:45)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpm
rpm.py:15: UserWarning: The RPM Python bindings are not currently available 
via PyPI.


Please install them with your distro package manager (typically called
'python2-rpm' or 'python3-rpm'), and ensure that any virtual environments
needing the API are configured to be able to see the system site packages
directory.


  warnings.warn(warning_msg)
>>>


If I can't get this working, I guess my only options are to either just not 
manage packages on the legacy centos/rhel5 boxes or see about running an 
older version (multiple versions) of ansible within AWX.

Just wondering if anyone has went through this already and can provide any 
tips.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/18a045ee-1f63-437b-a8c5-d10880e5cd50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.