Forum: Cfengine Help
Subject: Re: Cfengine Help: How to configure a client machine to contact the 
policy server and downloads updates?
Author: David Brazzeal
Link to topic: https://cfengine.com/forum/read.php?3,19909,19937#msg-19937

Thanks again Nick! 
I copied your failsafe.cf and the unmodified default update.cf that comes with 
the installation to /var/cfengine/inputs on the agent, then issued this command:
cf-agent -B -s dbraz17

 and I get this error:

cf3:/var/cfengine/inputs/update.cf:26,1: Redefinition of bundle update for 
agent is a broken promise, near token '{'
Protocol transaction broken off (1)
 !!! System reports error for recv: "Connection reset by peer"
I: Made in version 'not specified' of '/var/cfengine/inputs/failsafe.cf' near 
line 39
 !! Authentication dialogue with dbraz17 failed


Here's the contents of the default update.cf that comes with the installation:

bundle agent update
{
vars:

 "master_location" string => "/var/cfengine/masterfiles";

files:

  "/var/cfengine/inputs"

    perms => u_p("600"),
    copy_from => mycopy("$(master_location)","localhost"),
    depth_search => recurse("inf"),
    action => uimmediate;

  "/var/cfengine/bin"

    perms => u_p("700"),
    copy_from => mycopy("/usr/local/sbin","localhost"),
    depth_search => recurse("inf"),
    action => uimmediate;
}





############################################

body perms u_p(p)

{
mode  => "$(p)";
}

############################################

body file_select cf3_files

{
leaf_name => { "cf-.*" };

file_result => "leaf_name";
}

#########################################################

body copy_from mycopy(from,server)

{
source      => "$(from)";
compare     => "digest";
}

#########################################################

body action uimmediate
{
ifelapsed => "1";
}

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

Reply via email to