Policy/Promise to agents
Rakesh Patel <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
Hello,
First new to cf CFengine.
I have a sample file called creat_a_file.cf in the /var/cfengine/master
directory on the hub server.
File content
#!/var/cfengine/bin/cf-agent --no-lock
body common control
{
bundlesequence =>{"create_test_file"};
}
bundle agent create_test_file
{
files:
"/tmp/test-cfengine/test-file"
edit_line => addline,
create => "true";
}
bundle edit_line addline
{
insert_lines: "Cfengine is running nicely.";
The file is copying to the agents but not executing. I can manually run
the file and get the expected output but again not automatically. What am
I missing. I have read that I need to modify the promise.cf file on the hub
server but where and what?
Also, I know the agents update every 5 minutes, but how can I force to
update it manually?
Please advise
Thank you.
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/d1362c18-249a-4bb1-becd-c041c5afc92en%40googlegroups.com.