On 02.12.2009 18:27, Peter Meier wrote:
>> What do you mean by once? It's slow? Or some other reason?
>> I need to get the first item, then the second, and if the second is not
>> there pass the first.
>> (ip_list is a custom fact that lists the machines ip addresses sorted,
>> except 127.0.0.1)
>>      
> if you already have custom facts, why not do the decision in another
> custom fact, which is based on the output on the ip_list fact and
> which does this logic for you?
>
> cheers pete
>
>    
I wanted the facts to be general. IE reuse this if I need a setup with 3 
ips.
The current requirement is for a website deployed on 2 ips on the 
production machine. Because the development machine has only one ip, I 
wanted the vhosts deployed only on that one ip. Before this 
testing/development meant I had to modify the files to work on the 
testing machine, make the actual changes, test, then copy only the 
required changes to puppet. But this is error prone...

Thanks for the support, I think that if I would of done this alone, 
without asking, I would of implemented a function to access the members 
of the array, which seems a bit too complicated just for this.

Cheers and thanks again for the support, :)
Silviu

> --
>
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@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.
>
>
>    

--

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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