Forum: Cfengine Help
Subject: Re: Cfengine master HA?
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,18019,18025#msg-18025

But Now it seems that I have broken everything. 

Unable to lookup hostname ($(g.phost)) or cfengine service: Name or service not 
known
 !! Unable to find host or service: ($(g.phost)/5308) Name or service not known
 !! No server is responding on this port
 !!! System error for socket: "No such file or directory"
Unable to establish connection with $(g.phost)
Unable to lookup hostname ($(g.phost)) or cfengine service: Name or service not 
known
 -> No suitable server responded to hail

My promises.cf:

bundle common g{
    vars:
        "repo" string => "/var/cfengine3/master";
        "inputs" string => "/var/cfengine3/inputs";
        "binaries" string => "/var/cfengine3/sbin";
        "libraries" string => "/var/cfengine3/lib";
        "rh4bin" string => "/var/cfengine3/RHEL4/sbin";
        "rh4lib" string => "/var/cfengine3/RHEL4/lib";
        "workdir" string => "/var/cfengine3";
        # for HA add more policy hosts
        "phost" slist => { "192.168.0.1", "192.168.0.1" };

}

One of my  copies:

/etc/cron.daily/tmpwatch"             
    perms => mog("755","root","root"), 
    copy_from => secure_cp("$(g.repo)/bond_studio/tmpwatch","$(g.phost)"),
    action => if_elapsed("30");


secure_cp is from the std library.

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

Reply via email to