Forum: CFEngine Help
Subject: Re: again, cf-runagent
Author: bahamat
Link to topic: https://cfengine.com/forum/read.php?3,25915,25929#msg-25929

So I checked the previous debug output and see this:


    cf3> Path: /cfengine/inputs (encrypt=0)
    cf3>    Admit: ****:****:****:****::/64 root=
    cf3>    Admit: .*\.digitalelf.net root=
    cf3> Path: "/var/cfengine/bin/cf-agent" (encrypt=0)
    cf3>    Admit: undefined root=


That tells me two things. First, something is different about the way I'm 
specifying the second path because it has quotes around it. Secondly, Admit is 
undefined.

My original promise being this:


    "$(sys.cf_agent)"
      admit   => { "$(sys.policy_hub)" };


I changed it to this:


    "/var/cfengine/bin/cf-agent"
      admit   => { "****:****:****:****:216:3eff:fed5:f13" };


So now I have this:


    cf3> Path: /var/cfengine/bin/cf-agent (encrypt=0)
    cf3>    Admit: 2600:4401:c001:d00d:216:3eff:fed5:f13 root=


And this does work. So thanks to Neil and David. I also spent some time trying 
to refine this, and here's my final promise:


    "$(sys.workdir)/bin/cf-agent"
      admit   => { ********.digitalelf.net" };


Which isn't so hard coded and comes with More Magic(TM).

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

Reply via email to