Skip to content

Instantly share code, notes, and snippets.

@geofffranks
Created December 25, 2017 19:45
Show Gist options
  • Save geofffranks/73eb669be9a2ad15dfb4a78942363e81 to your computer and use it in GitHub Desktop.
Save geofffranks/73eb669be9a2ad15dfb4a78942363e81 to your computer and use it in GitHub Desktop.
a bit o' spruce, from http://play.spruce.cf
{"flavor":"1.14.0","prune":[],"env":["HOME=/home/user"],"cherry_pick":[],"yaml":[{"filename":"file1.yml","contents":"---\nenv: production\nmeta: \n prometheus:\n ldap_password: 123@123 \ncluster:\n name: mjolnir\nident: (( concat cluster.name \"/\" env ))\n\nproperties:\n grafana:\n auth:\n ldap:\n enabled: true\n config: (( concat |\n \"\\# Set to true to log user information returned from LDAP \n verbose_logging = false\n \\[\\[servers\\]\\]\n \\# Ldap server host (specify multiple hosts space separated)\n host = \\\"wxample.com\\\"\n \\# Default port is 389 or 636 if use_ssl = true\n port = 3268\n \\# Set to true if ldap server supports TLS\n use_ssl = false\n \\# Set to true if connect ldap server with STARTTLS pattern (create connection in insecure, then upgrade to secure connection with TLS)\n start_tls = false\n bind_dn = \\\"DC=example,DC=com\\\"\n \\# Search user bind password\n \\# If the password contains \\# or \\; you have to wrap it with trippel quotes. Ex \\\"\\\"\\\"#password;\\\"\\\"\\\"\n bind_password =\" meta.prometheus.ldap_password ))\n \n\n\n\n"}],"skip_eval":true,"fallback_append":false,"go_patch":false,"debug":false,"trace":false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment