This shows you the differences between two versions of the page.
augeas [2015/10/20 12:37] ian [Load a File with A Specific Lens] |
augeas [2020/02/13 22:55] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Augeas / augtool ====== | ||
- | |||
- | ===== Uncomment a Line ===== | ||
- | |||
- | < | ||
- | augtool --backup <<END | ||
- | rename / | ||
- | set / | ||
- | save | ||
- | END | ||
- | </ | ||
- | |||
- | ===== Load a File with A Specific Lens ===== | ||
- | |||
- | < | ||
- | :~# augtool --backup | ||
- | augtool> set / | ||
- | augtool> load | ||
- | augtool> set / | ||
- | augtool> save | ||
- | augtool> quit | ||
- | </ | ||
- | |||
- | ==== Puppet ==== | ||
- | |||
- | < | ||
- | augeas { " | ||
- | lens => ' | ||
- | incl => '/ | ||
- | context => '/ | ||
- | changes => [ | ||
- | "set dc_smarthost ' | ||
- | ], | ||
- | } | ||
- | </ | ||