Skip to content

Instantly share code, notes, and snippets.

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 nickanderson/9d96fc8486b4877924ec83ddbfa89344 to your computer and use it in GitHub Desktop.
Save nickanderson/9d96fc8486b4877924ec83ddbfa89344 to your computer and use it in GitHub Desktop.
cat test
$(sys.fqhost)
bundle agent main
{
files:
"/etc/test.tpl"
copy_from => secure_cp("$(g.configfiles)/etc/test", "$(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 => "/etc/test.tpl",
comment => "Render our final config file using the legacy template";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment