"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/inherit_from.cf" between
cfengine-3.15.4.tar.gz and cfengine-3.18.0.tar.gz

About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version. Community version. LTS (Long Term Support) release.

inherit_from.cf  (cfengine-3.15.4):inherit_from.cf  (cfengine-3.18.0)
# This example illustrates the use of inherit_from to inherit body attribute # This example illustrates the use of inherit_from to inherit body attribute
# values from another body. # values from another body.
############################################################################### ###############################################################################
#+begin_src cfengine3 #+begin_src cfengine3
bundle agent __main__ bundle agent __main__
{ {
files: files:
"$(this.promise_filename).txt" "$(this.promise_filename).txt"
create => "true", content => "Hello World$(const.n)2$(const.n)3$(const.n)4$(const.n)half-w
template_method => "inline_mustache", ay
edit_template_string => string_mustache( "Hello World$(const.n)2$(const. 6$(const.n)7$(const.n)8$(const.n)9$(const.n)Byeeeeeee",
n)3$(const.n)4$(const.n)half-way create => "true";
6$(const.n)7$(const.n)8$(const.n)9$(const.n)Byeeeeeee", '{}');
reports: reports:
"The first 3 lines of this file are:" "The first 3 lines of this file are:"
printfile => head_n( "$(this.promise_filename).txt", "3" ); printfile => head_n( "$(this.promise_filename).txt", "3" );
"The whole file contains:" "The whole file contains:"
printfile => cat( "$(this.promise_filename).txt" ); printfile => cat( "$(this.promise_filename).txt" );
} }
body printfile head_n(file, lines) body printfile head_n(file, lines)
 End of changes. 1 change blocks. 
5 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)