Thanks very much for your help! I'll find an workaround until a new stable
version is released.

Regards,
mlz.




On Wed, Mar 30, 2011 at 12:37 PM, Bas van der Vlies <b...@sara.nl> wrote:

> On 30-03-11 11:01, M LZ wrote:
> > I believe you, but on 3.1.4 both on sparc.solaris and debian_5.linux
> doesn't.
> >
> I just tested it to let you know it is fixed with a newer version. So wait
> till a new version is released and your problem is solved or try a svn
> version.
>
>
> > Regards,
> > mlz.
> >
> >
> > On Wed, Mar 30, 2011 at 11:57 AM, Bas van der Vlies <b...@sara.nl
> > <mailto:b...@sara.nl>> wrote:
> >
> >     On 29-03-11 15:17, M LZ wrote:
> >      >
> >      > Hi,
> >      >
> >      > I encounter the following problem, extracted from a more complex
> config:
> >      >
> >      > bundle agent test  {
> >      >
> >      > classes:
> >      >
> >      > "test_class" expression => fileexists("/etc/passwd");
> >      >
> >      > # "test_class" and  => { fileexists("/etc/passwd")  };
> >      >
> >      > # "test_class" expression   => "sunos_5_10";
> >      >
> >      >
> >      > vars:
> >      >
> >      >    test_class::
> >      >
> >      > "test_var" string => "test_var_value";
> >      >
> >      >
> >      >
> >      > reports:
> >      >
> >      >    test_class::
> >      >
> >      > "DEBUG: test_var has value $(test_var)";
> >      >
> >      > }
> >      >
> >      > The output to this simple example ( run by root ) :
> >      >
> >      > # /var/cfengine/bin/cf-agent -I -K   -f ./test.cf <http://test.cf
> >
> >     <http://test.cf>
> >      > R: DEBUG: test_var has value $(test_var)
> >      >
> >      > I got the same output when using test_class" expression =>
> >     isdir("/etc");
> >      >
> >      >
> >      > When defining  the test_class  by  using built-in classes for
> instantce,
> >      > things seem to work ok:
> >      >
> >      > # /var/cfengine/bin/cf-agent -I -K   -f ./test.cf <http://test.cf
> >
> >     <http://test.cf>
> >      > R: DEBUG: test_var has value test_var_value
> >      >
> >      > Is it  something that I miss or things are not working the way the
> >      > documentation says?
> >      >
> >      > Test run on cfengine-3.1.4, debian_5 linux and sparc solaris 10 .
> >      >
> >
> >
> >     I just tested this example with svn version 1917 (3.1.5a) on debian
> squeeze
> >     and everythins works as expected:
> >     {{{
> >     0:55 gb-r10n2.irc.sara.nl:/var/tmp/bas
> >     root# cf-agent  -K   -f /var/tmp/bas/test.cf <http://test.cf>
> >     R: DEBUG: test_var has value test_var_value
> >     }}}
> >
> >
> >     --
> >     ********************************************************************
> >     *  Bas van der Vlies                    e-mail: b...@sara.nl
> >     <mailto:b...@sara.nl>       *
> >     *  SARA - Academic Computing Services   Amsterdam, The Netherlands *
> >     ********************************************************************
> >     _______________________________________________
> >     Help-cfengine mailing list
> >     Help-cfengine@cfengine.org <mailto:Help-cfengine@cfengine.org>
> >     https://cfengine.org/mailman/listinfo/help-cfengine
> >
> >
>
>
> --
> ********************************************************************
> *  Bas van der Vlies                    e-mail: b...@sara.nl       *
> *  SARA - Academic Computing Services   Amsterdam, The Netherlands *
> ********************************************************************
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to