Modify a YAML file
Jerome Jean Verleyen <[email protected]> Mon, 11 Aug 2025 14:26:59 -0700 (PDT)
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_512842_1082218521.1754947619156 Content-Type: multipart/alternative; boundary="----=_Part_512843_585560225.1754947619156" ------=_Part_512843_585560225.1754947619156 Content-Type: text/plain; charset="UTF-8" Dear all I'm really a newbie in using cfengine. I'v do som policy to configure a server, and learning with errors and corrections. I managed to install some services, maybe not in a "elegant" way at this moment, but funcionally. Right now, i'm facing the need to modify a YAML file from some value. For example, change the following line: ipaddr: 10.0.0.1 with ipaddr: 172.16.1.1 I could get back in a policy test file the line of this ipaddr, with the readyaml funtion. But i could not foud how to write off this new values inside the original file. I' could use a copy function to copy the correct file, and it's funcional. But requiee that i put this good file in a specific repository. It's my next step of learning this great automation system that is Cfengine. Regards! -- 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/9f1ae6a7-f750-4fb5-ad39-4375d27ac306n%40googlegroups.com. ------=_Part_512843_585560225.1754947619156 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div>Dear all</div><div><br /></div><div>I'm really a newbie in using cfeng= ine. I'v do som policy to configure a server, and learning with errors and = corrections. I managed to install some services, maybe not in a "elegant" w= ay at this moment, but funcionally.</div><div><br /></div><div>Right now, i= 'm facing the need to modify a YAML file from some value. For example, chan= ge the following line:</div><div>ipaddr: 10.0.0.1=C2=A0</div><div>with <br = /></div><div>ipaddr: 172.16.1.1</div><div><br /></div><div>I could get back= in a policy test file the line of this ipaddr, with the readyaml funtion. = But i could not foud how to write off this new values inside the original f= ile.</div><div><br /></div><div>I' could use a copy function to copy the co= rrect file, and it's funcional. But requiee that i put this good file in a = specific repository. <br /></div><div>It's my next step of learning this gr= eat automation system that is Cfengine.</div><div><br /></div><div>Regards!= <br /></div><div><br /></div> <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/9f1ae6a7-f750-4fb5-ad39-4375d27ac306n%40googlegroups.com?utm_= medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/help-= cfengine/9f1ae6a7-f750-4fb5-ad39-4375d27ac306n%40googlegroups.com</a>.<br /= > ------=_Part_512843_585560225.1754947619156-- ------=_Part_512842_1082218521.1754947619156--