Last active
August 14, 2018 22:04
-
-
Save Szparki/8dff778602b615c80b3df492dd0b0db0 to your computer and use it in GitHub Desktop.
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
cat test | |
$(sys.fqhost) | |
bundle agent main | |
{ | |
files: | |
"/etc/test" | |
copy_from => secure_cp("$(g.configfiles)/etc/test", "$(g.host)"); | |
"/etc/test" | |
perms => mog("644", "root", "$(g.root_group)"), | |
edit_template => "$(g.configfiles)/etc/test"; | |
template_method => "mustache"; | |
} |
"/etc/test.tpl"
perms => mog("644", "root", "$(g.root_group)"),
copy_from => secure_cp("$(g.configfiles)/etc/test.tpl", "$(g.host)");
"/etc/test"
edit_template => "/etc/test";
"/etc/test.tpl"
copy_from => secure_cp("$(g.configfiles)/etc/test.tpl", "$(g.host)"),
comment => "We must have a template that we can use to dynamically render our final config file.";
"/etc/test"
perms => mog("644", "root", "$(g.root_group)"),
#edit_template => "$(g.configfiles)/etc/test";
edit_template => "/etc/test",
comment => "Render our final config file using the template";
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#+BEGIN_SRC cfengine3
bundle agent main
{
files:
}
#+END_SRC