I'm having a problem with a pypi package/the pip provider.

The package name is riak_pb https://pypi.python.org/pypi/riak_pb/.

The problem I'm having is puppet keeps installing/upgrading the package 
every run. I suspect it has something to do with the hyphen/underscore.

I have also tried changing the riak_pb package name in the init.pp to 
riak-pb. The pypi API doesn't return a version resulting in a nil/null 
value for puppet, so it re-installs again.

Here are some relevant details.

Thanks for any help.

###
puppetclent ~# puppet agent --server=puppet --waitforcert 5 --test --debug
Debug: Executing '/usr/local/bin/pip install -q --upgrade riak_pb'
Notice: /Stage[main]/Mapreduce/Package[riak_pb]/ensure: created
Debug: /Stage[main]/Mapreduce/Package[riak_pb]: The container 
Class[Mapreduce] will propagate my refresh event

###
puppetcilent ~# pip freeze | egrep riak.pb
riak-pb==1.2.1

###
puppetclient ~# cat 
/usr/local/lib/python2.7/dist-packages/riak_pb-1.2.1-py2.7.egg-info/PKG-INFO 
| grep Name
Name: riak-pb

###
puppetserver ~# cat init.pp
...
    $required_pip_packages = [
        'clint',
        'gevent',
        'MySQL-python',
        'redis',
        'requests',
        'riak',
        'riak_pb',
        'ujson',
    ]

    package { $required_pip_packages:
        ensure => latest,
        provider => pip,
        require => Package[$required_deb_packages],
    }



-- 
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to