Forum: Cfengine Help Subject: Re: Separating clients into groups Author: Lucas Link to topic: https://cfengine.com/forum/read.php?3,20902,20908#msg-20908
Thank you for the response! I am about to go to your site and look it over. But i tried what you suggested and I've actually tried this already but it doesn't seem to work. I don't get any errors but it doesn't fix the file as soon as i add that information in under bundle agent main. so this is what it looks like for me. bundle agent main { classes: "mgts" or => { "fully.qualified.domain1", "fully.qualified.domain2" }; vars: "masterfiles" string => "/var/cfengine/masterfiles"; "phost" string => "0.0.0.0"; # actuall IP (: files: mgts:: "/etc/resolv.conf" comment => "blah", perms => m("444"), copy_from => secure_cp("${masterfiles}/etc/resolv.conf","$(phost)"), action => immediate; } If i add the mgts:: it doesn't fix the file if i remove it it does. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine