[augeas] edit YAML file

17 views
Skip to first unread message

Helmut Schneider

unread,
Feb 7, 2019, 3:47:20 PM2/7/19
to puppet...@googlegroups.com
Hi,

I want to edit a YAML file:

network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: yes
dhcp6: yes

Id like to add a line:

network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: yes
dhcp6: yes
dhcp-identifier: mac

How can I do so?

Thank you!

Ben Ford

unread,
Feb 7, 2019, 4:12:40 PM2/7/19
to puppet...@googlegroups.com
The https://forge.puppet.com/fiddyspence/hash_file module makes it very easy to manage yaml files.

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/xn0lpwsm9ld5lb8000%40news.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Helmut Schneider

unread,
Feb 9, 2019, 5:52:11 PM2/9/19
to puppet...@googlegroups.com
Ben Ford wrote:

> The https://forge.puppet.com/fiddyspence/hash_file module makes it
> very easy to manage yaml files.

Will check. Thank you.

Reply all
Reply to author
Forward
0 new messages