[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: copy happening despite my rules.
From: |
David Cress |
Subject: |
Re: copy happening despite my rules. |
Date: |
Fri, 30 Sep 2005 10:42:30 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.6 (X11/20050720) |
>From cfagent -p -v
Defined Classes = ( 10_188_129 10_188_129_85 192_9_200 192_9_200_22
192_9_200_23 192_9_200_24 32_bit Day30 Friday Hr10 Hr10_Q3 Min40_45
Min41 Q3 SUNW_Sun_Fire_V240 September Yr2005 any cfengine_2 cfengine_2_1
cfengine_2_1_15 compiled_on_solaris2_9 dam damref damworker4ref3
damworker4ref3_mp1 damworker4ref3_mp1_turner_com damworker4ref3_mp2
damworker4ref3_mp2_turner_com damworker4ref3_san01
damworker4ref3_san01_turner_com damworker4ref3_turner_com damworkerref
ipv4_10 ipv4_10_188 ipv4_10_188_129 ipv4_10_188_129_85 ipv4_192
ipv4_192_9 ipv4_192_9_200 ipv4_192_9_200_22 ipv4_192_9_200_23
ipv4_192_9_200_24 net_iface_bge0 net_iface_bge2 net_iface_bge2_1
net_iface_bge3 net_iface_lo0 solaris sparc sun4u sunos_5_9 sunos_sun4u
sunos_sun4u_5_9 sunos_sun4u_5_9_Generic_117171_17 )
Adams, Russell L. wrote:
> Could it be a problem with the length of the hostname? What classes
> does cfagent -v show being defined initially?
>
> Russell
>
> On Fri, Sep 30, 2005 at 09:30:16AM -0400, David Cress wrote:
>
>>Some more info.
>>
>>The machine I'm having problems on is damworker4ref3. After changing
>>cf.copy to:
>> copy:
>> !damworker4ref3::
>> /master/copy/samba/dam/smb.conf
>> dest=/opt/samba/lib/smb.conf
>> owner=root group=other mode=644
>> type=checksum inform=true
>> verify=true server=$(filehost)
>>
>>I re-ran cfagent on damworker4ref3, it still tries to install
>>/opt/samba/lib/smb.conf
>>
>> [BEGIN InstallPending File Imaging:
>>IsInstallable(!damworker4ref3) - true
>>
>>This makes no sense. I've stated, I want /opt/samba/lib/smb.conf
>>installed on any machine but, damworker4ref3. When I run it on
>>samworker4ref3, it gets installed. Argh!!! I've tried to make the
>>statements as simple as possible, but it still does not do what I want.
>> Somehow I telling it to do the wrong thing and I just do not see it.
>>
>>I even did an 'od' of cf.copy to see if there were any non-printing
>>characters in there. Nothing.
>>
>>
>>David Cress wrote:
>>
>>>Here is the relevant part of my config for cfengine v2.1.15:
>>>
>>>cf.groups:
>>> damworkerref = ( damworker4ref1 damworker4ref2 damworker4ref3 )
>>>
>>>cf.copy:
>>> damworkerref.!damworker4ref3::
>>> /master/copy/samba/dam/smb.conf
>>> dest=/opt/samba/lib/smb.conf
>>> owner=root group=other mode=644
>>> type=checksum inform=true
>>> verify=true server=$(filehost)
>>>
>>>
>>>When I run this config on damworker4ref3, (cfagent -d1 -q -n) I get the
>>>following:
>>>
>>>NEW CLASS PREDICATE:: damworkerref.!damworker4ref3::
>>> (No actions pending in File Imaging:)
>>>InitializeAction()
>>>HandleClass(damworkerref.!damworker4ref3)
>>> (No actions pending in File Imaging:)
>>>Compound class = (damworkerref.!damworker4ref3) with 2 members
>>>VAROBJ /master/copy/samba/dam/smb.conf
>>>IsVarString(/master/copy/samba/dam/smb.conf) - syntax verify
>>>Found 0 variables in (/master/copy/samba/dam/smb.conf)
>>>Handling Object = (/master/copy/samba/dam/smb.conf)
>>>
>>>
>>>It's reading everything in OK.
>>>
>>>
>>> [BEGIN InstallPending File Imaging:
>>>IsInstallable(damworkerref.!damworker4ref3) - true
>>>InstallImageItem (/master/copy/samba/dam/smb.conf) (+644)(-7133)
>>>(/opt/samba/lib/smb.conf), server=sunman.turner.com
>>>ExpandVarstring(/master/copy/samba/dam/smb.conf)
>>>ExpandVarstring(sunman.turner.com)
>>>SplitStringAsItemList(sunman.turner.com,:)
>>>Build2DListFromVarstring(/master/copy/samba/dam/smb.conf,sep=/)
>>>SplitVarstring(/master/copy/samba/dam/smb.conf,:=58)
>>>IsVarString(/master/copy/samba/dam/smb.conf) - syntax verify
>>>Found 0 variables in (/master/copy/samba/dam/smb.conf)
>>>AppendTwoDimItem(itemlist, sep=/)
>>>Set2DLIst()
>>>Get2DListEnt()
>>>Get2DLIstEnt returns /master/copy/samba/dam/smb.conf
>>>IncrementTwoDimList()
>>>
>>>
>>>This should be false, not true. Why is the "!", not functioning?
>>>
>>>On another box called 'sunman', it sees that it's not part of the
>>>damworkerref class, and drops out just fine.
>>>
>>>
>>> [BEGIN InstallPending File Imaging:
>>>IsInstallable(damworkerref.!damworker4ref3) - false
>>>Not installing copy item, no match
>>>(/master/copy/samba/dam/smb.conf,damworkerref.!damworker4ref3)
>>>InitializeAction()
>>> END InstallPending]
>>>
>>>
>>>I've got to be missing something something basic, and I just can not see it.
>>>
>>
>>--
>>David Cress
>>Lead Engineer
>>CNN Internet Technologies
>>http://www.cnn.com
>>--------------------
>>(404) 878-1921
>>
>>What exists, exists; what is, is.
>>
>>
>>_______________________________________________
>>Help-cfengine mailing list
>>Help-cfengine@gnu.org
>>http://lists.gnu.org/mailman/listinfo/help-cfengine
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
>
>
--
David Cress
Lead Engineer
CNN Internet Technologies
http://www.cnn.com
--------------------
(404) 878-1921
What exists, exists; what is, is.