Skip to content

Instantly share code, notes, and snippets.

@carmstrong
Created July 30, 2014 05:35
Show Gist options
  • Save carmstrong/057756c17f872f3c69c8 to your computer and use it in GitHub Desktop.
Save carmstrong/057756c17f872f3c69c8 to your computer and use it in GitHub Desktop.
confd examples
{{ range $user := gets "/builder/users/*" }}{{ range $keys := gets "/builder/users/" + base $user.Key + "/*" }}
command="/usr/local/bin/gitreceive run {{ base $user.Key }} {{ base $keys.Key }}",no-agent-forwarding,no-pty,no-user-rc,no-X11-forwarding,no-port-forwarding {{ $keys.Value }}
{{ end }}{{ end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment