Skip to content

Instantly share code, notes, and snippets.

@kerin
Last active August 29, 2015 14:14
Show Gist options
  • Save kerin/8e0db7e7f4782adffc8b to your computer and use it in GitHub Desktop.
Save kerin/8e0db7e7f4782adffc8b to your computer and use it in GitHub Desktop.
[template]
# The name of the template that will be used to render the application's configuration file
# Confd will look in `/etc/conf.d/templates` for these files by default
src = "settings.tmpl"
# The location to place the rendered configuration file
dest = "/app/magiclantern/settings.py"
# The etcd keys or directory to watch. This is where the information to fill in
# the template will come from.
keys = [
"/services",
"/keys"
]
# File ownership and mode information
owner = "root"
mode = "0644"
# These are the commands that will be used to check whether the rendered config is
# valid and to reload the actual service once the new config is in place
check_cmd = "/usr/sbin/nginx -t"
reload_cmd = "/usr/sbin/service nginx reload"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment