I've got the following problem, it seems that groups I have defined are ignored in my copy program:
Here's a short rundown of my setup:
cfagent.conf
--------------------------------------------------------------------
import:
!DefinedCommonControl::
cf.common
any::
cf.copy
--------------------------------------------------------------------
cf.common
--------------------------------------------------------------------
classes:
any::
DefinedCommonControl = ( any )
import:
any::
cf.groups
--------------------------------------------------------------------
cf.groups
--------------------------------------------------------------------
groups:
client_lala = ( lala dipsy )
client_lmao = ( host1 host2 )
--------------------------------------------------------------------
cf.copy
--------------------------------------------------------------------
import:
!DefinedCommonControl::
cf.common
control:
actionsequence = ( copy )
singlecopy = ( on )
DefaultCopyType = ( checksum )
AllowRedefinitionOf = ( clientname )
any:: clientname = ( nevermatch )
client_lala:: clientname = ( lala )
copy:
client_lala::
$(distdir)/etc/file1_lala2 dest=/etc/file1_test
m=$(configmode)
owner=$(fowner)
group=$(fgroup)
server=$(policyhost)
any::
$(distdir)/etc/file1_${clientname} dest=/etc/file1
m=$(configmode)
owner=$(fowner)
group=$(fgroup)
server=$(policyhost)
$(distdir)/etc/file1 dest=/etc/file1
m=$(configmode)
owner=$(fowner)
group=$(fgroup)
server=$(policyhost)
--------------------------------------------------------------------
On host dipsy this should result in "$(distdir)/etc/file1_lala" beeing copied to "/etc/file1" and "$(distdir)/etc/file1_lala2" beeing copied to "/etc/file1_test".
Instead it tries to copy "$(distdir)/etc/file1_nevermatch" to "/etc/file1" and ignores client_lala part entirely?
I've also tried sticking the hostname where the client_lala sits in the control section same result. I've I just misread some place?
Any idea's are welcome.
--
Met vriendelijke groeten/with kind regards
John van Zantvoort
---
Paranoia is simply an optimistic outlook on life.
GCM d- s+:+ a- C+ UL+++ P+++ L++ E--- W++ N+ o K-
w-- O- M- V- PS+ PE- Y+ PGP+ t+ 5 X- R- tv b+ DI++
D+ G e h- r++ y+
_______________________________________________ Help-cfengine mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-cfengine
