On Friday, January 18, 2013 12:11:42 PM UTC-6, iamauser wrote:
>
> What's the best practice to define two mount resources with same name, but 
> different fstypes or ensure parameter ? In my particular case, I have the 
> following :
>
> Two mounts defined as virtual resources with same name but different 
> fstype. One is is ensuring present, other absent. Puppet doesn't like it,
> Looking at a bug report earlier ( 
> http://projects.puppetlabs.com/issues/7491 ), I followed the suggestion, 
> but it doesn't help. puppet throws this error :
>


You cannot declare multiple configurations of the same resource for the 
same target node.  This constraint covers all resource declarations 
equally, including those of virtual and exported resources.  Where it knows 
how to do so, Puppet intentionally recognizes and blocks attempts to 
disguise multiple declarations by use of different resource titles 
(contrary to some of the comments on issue 7491, but imho correctly).

Instead, declare the resource once, and either set its parameters 
conditionally or override them, where needed, by one of the supported 
mechanisms for doing so.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/kDHM2JVxoIsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to