Forum: CFEngine Help
Subject: Re: Unable to create a test file on a cat of servers.
Author: jab2...@yahoo.com
Link to topic: https://cfengine.com/forum/read.php?3,27131,27138#msg-27138

Thanks For the help:


Resolved.  The issue was I had the same name for the bundle as I had for the 
class.  I had a class called "TESTSERVERS" and a bundle called test servers.  I 
noticed from the output of a cfagent -v  that may bundle "testservers" was not 
listed.

1.
# cfagent -v  > log 
# grep  Bundlesequence log
cf3> -> Bundlesequence =>  
{'update','garbage_collection','executor','server','groups','def','module_class_definer','system','log_archive','database','addusers','etl','tci_ib','tci_ob','optimusdb','optimusweb','bento','wlqapi','fast','inventory','cfbackup'}


2. I changed the bundle name form testservers to testserver in promises.cf and 
my cf file testservers.cf and reran cfagent -IK  and then ran:
# cfagent -v  > log2 
# grep  Bundlesequence log2
 > cf3> -> Bundlesequence =>  
 > {'update','garbage_collection','executor','server','groups','def','module_class_definer','system','log_archive','database','addusers','etl','tci_ib','tci_ob','optimusdb','optimusweb','bento','wlqapi','fast','testserver','inventory','cfbackup'}

Now I see testserver in the bundlesequence. Lessons learned  

A. Classes and bundles should not have the same name.

B. Case-insensitive. Meaning  testservers and TESTSERVERS must be the same. 
Just a guess. (paying for cfengine training and reading Learning CFEngine 3)

C. The cfengine will not alert you to the issue.

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

Reply via email to