help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: miscmounts


From: Scott Lackey
Subject: Re: miscmounts
Date: Tue, 20 Jun 2006 09:09:56 -0500

I've done some testing with a setup like you list here, however the problem must lie somewhere else in your configuration. The reason I believe this is:

mygroup.!othergroup
 is the same as
mygroup!othergroup  (implicit and)
and neither will cause a member of both groups to be acted upon. If you're still having this problem then copy some more info from a cfagent -v --no-splay and any other code that is relevant and I'll try to help. I cannot reproduce the problem you are having with the info so far.

Scott Lackey
cfenginesupport.com



On 6/19/06, Igor Sutton Lopes < igor.sutton@gmail.com> wrote:
Scott,

Thanks for your reply. The point here is that I want to exclude some
hosts from certain configuration. The example below I expect the host
'papeete' is excluded from mounting that mountpoint.

Here is a sample of my groups section:

groups:
        my_group = ( papeete )
        my_other_group = ( papeete )

And here is a sample of what doesn't work as expected:

miscmounts:
        my_group.!my_other_group::
                10.244.0.3:/exports/alfa/Linux/Gentoo/current/usr/procergs /usr/procergs mode=ro,rsize=8192,wsize=8192

Here is the output from cfagent debug:

NEW CLASS PREDICATE:: my_group.!my_other_group::
   (No actions pending in Miscellaneous Mountables:)
InitializeAction()
HandleClass(my_group.!my_other_group)
   (No actions pending in Miscellaneous Mountables:)
Compound class = (my_group.!my_other_group) with 2 members
VAROBJ 10.244.0.3:/exports/alfa/Linux/Gentoo/current/usr/procergs
IsVarString(10.244.0.3:/exports/alfa/Linux/Gentoo/current/usr/procergs) - syntax verify
Found 0 variables in (10.244.0.3:/exports/alfa/Linux/Gentoo/current/usr/procergs)
Handling Object = (10.244.0.3:/exports/alfa/Linux/Gentoo/current/usr/procergs )
VAROBJ /usr/procergs

   [BEGIN InstallPending Miscellaneous Mountables:
InitializeAction()
   END InstallPending]

InitializeAction()
IsVarString(/usr/procergs) - syntax verify
Found 0 variables in (/usr/procergs)
Handling Object = (/usr/procergs)

OPTION mode=ro,rsize=8192,wsize=8192
HandleOption(mode=ro,rsize=8192,wsize=8192)
ExpandVarstring(mode=ro,rsize=8192,wsize=8192)
HandleOptionalMiscMOuntsItem(ro,rsize=8192,wsize=8192)
GetCommAttribute(mode)
GetCommAttribute - got: mode
SplitStringAsItemList(ro,rsize=8192,wsize=8192,,)
Appending [ro]
Appending [rsize=8192]
Appending [wsize=8192]
miscmounts option: ro
Delete Item: ro
miscmounts option: rsize=8192
miscmounts option: wsize=8192
NEW ACTION packages:

   [BEGIN InstallPending Miscellaneous Mountables:
Adding misc mountable 10.244.0.3:/exports/alfa/Linux/Gentoo/current/usr/procergs /usr/procergs (ro,rsize=8192,wsize=8192) to list
IsInstallable(my_group.!my_other_group) - true
ExpandVarstring(10.244.0.3:/exports/alfa/Linux/Gentoo/current/usr/procergs)
ExpandVarstring(/usr/procergs)
InitializeAction()
Resetting miscmount data
   END InstallPending]

InitializeAction()
   (No actions pending in Miscellaneous Mountables:)






--
-Scott
reply via email to

[Prev in Thread] Current Thread [Next in Thread]