I take it you're referring to this:

http://reductivelabs.com/trac/puppet/wiki/UsingMultipleEnvironments

So on the puppetmaster server I'd need to generate a puppet.conf to create a
[section] for each version I need to run. Since iterating over arrays
doesn't appear to be allowed I guess I'd need to look into writing my own
function, or simply externalize this to a script that I'd write.

On the client I'd manage the puppet.conf to set the environment parameter to
the proper version (this I can easily do with a puppet recipe).

I'll take a look at this today and see how easy it is to write my own
function to generate a file like this. I've never done this or written ruby.
An adventure, for sure!

Any other suggestions on how to skin this cat?

Thanks, Ohad, for pointing me to this suggestion.

Pete

On Mon, Jul 6, 2009 at 8:32 PM, Ohad Levy <ohadl...@gmail.com> wrote:

> why don't you use puppet environments?
>
> Ohad
>
>
> On Tue, Jul 7, 2009 at 7:46 AM, Pete Emerson <pemer...@gmail.com> wrote:
>
>> In order to facilitate puppet manifest upgrades, I need to manage puppet
>> recipes on a per-server basis.
>>
>> My puppet classifier spits out a variable called $puppet_iteration.
>>
>> I tried putting this variable in my site.pp:
>>
>> import
>> "/var/lib/puppet/files/static/applications/puppet/$puppet_iteration/system"
>>
>> but it looks like the variable does not get interpreted in the import
>> statement:
>>
>> err: Could not retrieve catalog: Could not parse for environment mgmt: No
>> file(s) found for import of
>> '/var/lib/puppet/files/static/applications/puppet/$puppet_iteration/system'
>> at /etc/puppet/manifests/site.pp:33
>>
>> Can I get some suggestions for how to load specific manifests based on a
>> path partially determined by my puppet classifier?
>>
>> Thanks in advance,
>> Pete
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to