Hi Brian,
On 2014-07-18 14:32, Brian Wilkins wrote:
Hello, We are trying to use the puppet-forge graphite module located here: https://github.com/echocat/puppet-graphite/blob/master/manifests/install.pp and our servers will not have access to the Internet. So we are downloading all the pip packages to a local repository and will point pip to each package. I would like to wrap the Package type so I can provide the source. How would I do this so that the package name is passed to the defined type? My intent is to not change much of the code here: https://github.com/echocat/puppet-graphite/blob/master/manifests/install.pp Otherwise, I will have to comment out alot of the manifest and replace with exec statements pointing to each individual package.
As far as I understand the current pip provider code, it won't work anyways without access to the pypi repository.
Since pip provides a way to globally configure a different index, I think that would be a much better way to achieve your goal:
http://pip.readthedocs.org/en/latest/user_guide.html#configuration
From a cursory glance over the possibilities, setting an environment variable to override your index location might be another way to avoid poisoning the global pip config.
Regards, David -- * Always looking for people I can help with awesome projects * G+: https://plus.google.com/+DavidSchmitt Blog: http://club.black.co.at/log/ LinkedIn: http://at.linkedin.com/in/davidschmitt -- 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/53CCE2EE.1090308%40dasz.at. For more options, visit https://groups.google.com/d/optout.
