help-cfengine
[Top][All Lists]
Advanced

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

trouble with singlecopy nirvana


From: John van Zantvoort
Subject: trouble with singlecopy nirvana
Date: Wed, 18 Jan 2006 17:23:42 +0100

Hi guys,

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+

reply via email to

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