Re: policy_server.dat IP to DNS
"'Nick Anderson' via help-cfengine" <[email protected]> Mon, 20 Oct 2025 10:28:28 -0500
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
--=-=-=
Content-Type: multipart/alternative; boundary="==-=-="
--==-=-=
Content-Type: text/plain; charset="UTF-8"
I do think that using an IP address is a bit more
reliable. Instead of manipulating that file you could
instead re-bootstrap with a command like cf-agent
--no-lock --inform --bootstrap <newip>.
I typically advise against a re-bootstrap. It's a bit heavy handed,
and if it fails it can leave you in worse position.
When you `--bootstrap' , the content in `$(sys.input_dir)' is wiped
and completely re-seeded. If your bootstrap fails you will not have a
full policy in inputs, where as if you re-write `policy_server.dat'
your existing policy will remain in place and the next time the agent
starts it will resolve the new value for policy server.
--
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 visit https://groups.google.com/d/msgid/help-cfengine/87h5vtlhhq.fsf%40northern.tech.
--==-=-=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<blockquote style=3D"border-left: 2px solid gray; padding-left: 4px;">
<p>
I do think that using an IP address is a bit more reliable.
Instead of manipulating that file you could instead re-bootstrap with a com=
mand like cf-agent –no-lock –inform –bootstrap <new=
ip>.
</p>
</blockquote>
<p>
I typically advise against a re-bootstrap. It's a bit heavy handed, and if =
it fails it can leave you in worse position.
</p>
<p>
When you <code>--bootstrap</code> , the content in <code>$(sys.input_dir)</=
code> is wiped and completely re-seeded. If your bootstrap fails you will n=
ot have a full policy in inputs, where as if you re-write <code>policy_serv=
er.dat</code> your existing policy will remain in place and the next time t=
he agent starts it will resolve the new value for policy server.
</p>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;help-cfengine" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">help-=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
help-cfengine/87h5vtlhhq.fsf%40northern.tech?utm_medium=3Demail&utm_source=
=3Dfooter">https://groups.google.com/d/msgid/help-cfengine/87h5vtlhhq.fsf%4=
0northern.tech</a>.<br />
--==-=-=--
--=-=-=
Content-Type: text/plain; charset="UTF-8"
--
Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech
--
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 visit https://groups.google.com/d/msgid/help-cfengine/87h5vtlhhq.fsf%40northern.tech.
--=-=-=--