Forum: CFEngine Help
Subject: Re: About "new" templates correct usage or limitations
Author: th
Link to topic: https://cfengine.com/forum/read.php?3,26723,26724#msg-26724

An example :


body common control
{
  bundlesequence => { "test_tmpl" };
}

bundle agent test_tmpl
{

files:

  "/root/TEMPLATES/TEST"

      comment => "Create TEST file from template",
      create  => "true",
      edit_template => "/root/TEMPLATES/test.tmpl";
}


with a "big file" generated like this for instance 


echo "[%CFEngine BEGIN %]" > test.tmpl ; for i in `seq 1 500` ; do echo "This 
is a the sample line number $i">> test.tmpl; done ; echo "[%CFEngine END %]" >> 
test.tmpl



cf-agent -Kv -f ./testtemplate.cf  | less



cf3> Expansion overflow constructing string. Increase CF_EXPANDSIZE macro. 
Tried to add This is a the sample line number 1
This is a the sample line number 2
This is a the sample line number 3
...


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to