Bapi,

I would go with Rob's suggestion here as well. I can definitely attest
to stankevich/python being a good module as I use it extensively.

Here's a code snippet that would do what you want using that module:

--[cut]--
class { 'python':
  version => 'system',
  pip     => 'present',
  dev     => 'present', # needed by a lot of modules, let's be safe
}

python::pip { ['argparse', 'pika']:
  ensure => 'present',
}
--[/cut]--

-Andy-

On 04/22/2016 11:33 AM, Rob Nelson wrote:
> Bapi,
> 
> Searching the forge (https://forge.puppet.com) is my first stop. A
> search on python or pip turn up a number of hits. There's an approved
> puppet module that looks like it might be helpful:
> https://forge.puppet.com/stankevich/python. Approved modules must meet
> some standards so are generally more interesting than non-approved
> modules, but you should always review modules to find which is the best
> fit for you now and in the future.
> 
> 
> Rob Nelson
> [email protected] <mailto:[email protected]>
> 
> On Fri, Apr 22, 2016 at 2:04 PM, <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Hi all,
> 
>     I am trying to manage python packages from puppet.I wanted to run
>     the following commands *without using EXEC..*
>     *
>     *
>     *After installing python-setuptools i tried to install pika using
>     pip as provider .. but it did not work.*
>     *
>     *
>     *What is the best way to puppetize this??*
>     *
>     *
>     *Thank You*
>     *Bapi*
>     *
>     *
> 
>     *
>     |
>     *
>     |
>     sudo yum install python-setuptools
>     |
>     *
> 
>     sudo easy-install pip
> 
>     sudo easy-install argparse
>     *
>     |
> 
>     sudo /usr/bin/pip install pika
>     |
>     *
>     |
>     *
> 
>     -- 
>     You received this message because you are subscribed to the Google
>     Groups "Puppet Users" group.
>     To unsubscribe from this group and stop receiving emails from it,
>     send an email to [email protected]
>     <mailto:[email protected]>.
>     To view this discussion on the web visit
>     
> https://groups.google.com/d/msgid/puppet-users/ed850c4b-628e-4a66-bd83-bb3dbd93d68c%40googlegroups.com
>     
> <https://groups.google.com/d/msgid/puppet-users/ed850c4b-628e-4a66-bd83-bb3dbd93d68c%40googlegroups.com?utm_medium=email&utm_source=footer>.
>     For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAC76iT8KaMSw9ABBdx9StXtv_X%2BGRD8Z%3DLNBbfjmB5AK5Uhy%2Bg%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAC76iT8KaMSw9ABBdx9StXtv_X%2BGRD8Z%3DLNBbfjmB5AK5Uhy%2Bg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/571A7CA4.8070002%40bardicgrove.org.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to