Skip to content

Instantly share code, notes, and snippets.

@zined
Created October 30, 2012 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zined/3981584 to your computer and use it in GitHub Desktop.
Save zined/3981584 to your computer and use it in GitHub Desktop.
cfengine test snippet #1
bundle edit_line that_foo_line_be_gone
{
replace_patterns:
"^foo is a foo line$"
comment => "that foo line be gone! that bar line be there!",
replace_with => exchange_foo_line_with_bar_line;
}
body replace_with exchange_foo_line_with_bar_line
{
replace_value => "yay! i'm a bar line!";
occurrences => "all";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment