Forum: Cfengine Help
Subject: Re: Using soft classes in "vars:" section of bundle
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,20545,20599#msg-20599

The verbose log you mentioned is an outcome of the first try of cfengine to 
populate a variable when there is no user-defined class get created. For the 
second try which there is a class "cfmaster", cfengine would populate a 
variable "sshpubkey" nicely.

Believe it or not, if you print out that variable (such an example below) you 
would able to see a right content displayed. :-)

bundle agent test
{
vars:
 cfmaster::
  "my_var" string => "Hello world!!!";

classes:
 any::
  "cfmaster" or => { "cfengine_3" };

reports:
 cfmaster::
  "--> $(my_var)";
}


Cheers,
--Nakarin

_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to