help-cfengine
[Top][All Lists]
Advanced

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

AllowRefinitionOf


From: Wheeler, John
Subject: AllowRefinitionOf
Date: Wed, 19 Mar 2003 21:40:18 -0600

Below is a test program. Why do I still get the Warnings? Even If I uncomment 
the "Allow..." lines below I still get warnings.
cfagent --inform --no-splay -f /var/cfengine/inputs/toplevel.conf
cessna:/var/cfengine/inputs/secondlevel.conf:7: Warning: Redefinition of macro 
testvar=bar
cessna:/var/cfengine/inputs/secondlevel2.conf:8: Warning: Redefinition of macro 
testvar=foofoo
cfengine:cessna: Executing script /bin/echo foo...(timeout=0,uid=-1,gid=-1)
cfengine:cessna: foo
cfengine:cessna: Finished script /bin/echo foo
cfengine:cessna: Executing script /bin/echo bar...(timeout=0,uid=-1,gid=-1)
cfengine:cessna: bar
cfengine:cessna: Finished script /bin/echo bar
cfengine:cessna: Executing script /bin/echo foofoo...(timeout=0,uid=-1,gid=-1)
cfengine:cessna: foofoo
cfengine:cessna: Finished script /bin/echo foofoo


toplevel.conf
::::::::::::::
control:
        AllowRedefinitionOf = ( testvar )
        actionsequence = (
                shellcommands.toplevel
                        )

        testvar = ( foo )

import:
        secondlevel.conf
        secondlevel2.conf


shellcommands:
        toplevel::
                '/bin/echo ${testvar}'

::::::::::::::
secondlevel.conf
::::::::::::::
control:
#       AllowRedefinitionOf = ( testvar )
        actionsequence = (
                shellcommands.secondlevel
                        )

        testvar = ( bar )

shellcommands:
        secondlevel::
                '/bin/echo ${testvar}'
::::::::::::::
secondlevel2.conf
::::::::::::::
control:
#        AllowRedefinitionOf = ( testvar )

        actionsequence = (
                shellcommands.secondlevel2
                        )

        testvar = ( foofoo )

shellcommands:
        secondlevel2::
                '/bin/echo ${testvar}'
::::::::::::::





reply via email to

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