Hello Puppeteers,

please consider the following scenario:  Puppet is supposed to set up similar 
(but not necessarily identical) groups of hosts for a range of customers. For 
each customer a dedicated filesystem tree needs to be established on host A. 

This should not be difficult  using exported File resources, however: How do I 
make sure that only the exported File resource of the first created host in a 
customer group is imported by host A? Otherwise puppet will -- understandably 
-- complain about duplicate imported resources on host A:

Error: Another local or imported resource exists with the type and title 
File[customer/fs/tree] on node A

In other words: May I use an "if defined()" when collecting resources on host A 
-- and if so: How does the syntax to reference a specific _imported_ resource 
look like? Or would I be able to prevent the creation of an exported File 
resource on a customer host when host A already has imported the appropriate 
resource from a host previously defined for this customer? (In this case: How 
do I reference "File[customer/fs/tree] on node A"?)

There's no way to tell which host type in a customer group will be created 
first (all customers will have at least one host, but not necessarily of the 
same type), hence I can't  pin the exported File resource to a certain type of 
host which always has to be installed first.

Or should I consider a completely different approach to solve the problem -- 
any suggestion which one?

Thanks a lot for caring

     Patricia



-- 
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