Justin,
Yeah, I'm very glad that it was made public... it's one of my go-to
places when I can't figure out how I should do something; we also used a
bunch of ideas in our new Puppet3 multi-master rollout, including some
of the certificate handling ideas for multiple separate puppet stacks,
and I'm going to be exploring secret storage next.
Having looked at the python module both at the link you mentioned and at
https://github.com/mozilla/build-puppet-manifests/tree/master/modules/python,
I'm not longer sure I can really say that our module is "heavily
modified" as opposed to "inspired by".
Ahhhh yeah, I see, the inject-venv-path-into-title-and-strip method. I
considered that (actually without seeing, or at least remembering, your
module) but found it to be a bit of a kludge, plus making it harder to
use Puppet's native list-as-namevar-becomes-multiple-resources
functionality. It *appears* (from looking at the puppetlabs-inifile
module) that impementing this as a native puppet/ruby type or provider
would provide a way to work around this problem. Alas, nobody on my team
has much skill with ruby.
Sure, I've posted the module we're using at:
https://github.com/jantman/puppet-python-test
Speaking of your "are you able to show what you have" comment, is there
a specific license that the PuppetAgain stuff is released under? We're a
near 100% open source shop (our main "product" is a Django application),
so we operate under the assumption that anything we modify should (as
time allows) be submitted back upstream.
Cool, good to hear. One of the members of our automation team is a
pip/virtualenv maintainer, so we're trying to come up with something
that will become a (semi) official module. I'll spend some more time
looking over your current code (is the github repo I referenced up to
date?) and see if we can use that as the base; with the one caveat that
we'd likely want to either rename the module to 'virtualenv' or
'python-virtualenv', or attempt to expand it to also (optionally) handle
installing the python OS packages.
Thanks very much for the information and reply.
-Jason Antman
jantman
On 11/01/2013 10:46 PM, Justin Wood wrote:
> Hi,
>
> Wonderful to hear of your interest in our "PuppetAgain" and its utility to you (that is one of the reasons we made it public from the start). That said as far as I can tell our define for our python module does use the venv directory itself as a part of our naming scheme for specific python packages [1].
>
> Are you able to show what you have in your modified copy (if possible anyway) and I'm happy to look at it and help identify a way you may be able to fix it to do what you need.
>
> Also we'd likely be very open to any upstreaming of relevant changes to our module. You can file bug(s) on our bugzilla [2] instance as you see fit. While our module's/code is designed strictly to assist needs for Mozilla, improvements that don't detract from our needs and make our puppet modules more robust will be a welcome change you as a contributor can make.
>
> Thank You,
> ~Justin Wood (Callek)
>
> [1] -
http://mxr.mozilla.org/build/source/puppet-manifests/modules/python/manifests/virtualenv.pp#244
> [2] -
https://bugzilla.mozilla.org/enter_bug.cgi?product=Infrastructure%20%26%20Operations&component=RelOps:%20Puppet
>
> ----- Original Message -----
>> From:
inebri...@gmail.com
>> To:
tools-pu...@lists.mozilla.org
>> Sent: Friday, November 1, 2013 10:28:29 PM
>> Subject: python module, virtualenv/pip handling
>>