Created
January 22, 2015 15:26
-
-
Save acidprime/66648f4346218081b31f to your computer and use it in GitHub Desktop.
Remove multiple hosts with augeas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
augeas { 'remove_multi_hosts': | |
context => '/files/etc/hosts', | |
changes => [ | |
"rm *[canonical = 'foo.bar.com']", | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment