I started to configure cfengine3. I got difficulties when I tried to figured out, how should the first run works on client side. I created promises for the first run on the server masterfile for e.g.: bundle agent populate_instance {
files:
bootstrap_mode.dev::
"/var/local/properties/dev"
create => "true";
bootstrap_mode.test::
"/var/local/properties/test"
create => "true";
bootstrap_mode.prod::
"/var/local/properties/prod"
create => "true";
}
So, I expected that the client is going to create the the path above /var/local/properties/prod when I run first time the client
cf-agent -bootstrap xxx.xxx.xxx.xxx -Dprod
,but it doesn't create at all. The populate_instance is part of the body common control in promises.cf. I've also checked the verbosed client output and found everything fine, the soft class also was there
verbose: BEGIN initial soft classes:
verbose: C: added soft class dev
verbose: END initial soft classe
s
and the hard class also exists in the output
verbose: C: discovered hard class bootstrap_mode
So my question is, why does'n work this promises on the first run? Thanks,