[Buildbot] #3085: use some Jinja2 fanciness to make sure secrets exist

Buildbot trac trac at buildbot.net
Mon Dec 1 21:11:52 UTC 2014


#3085: use some Jinja2 fanciness to make sure secrets exist
-----------------------------+-------------------------
Reporter:  dustin            |      Owner:
    Type:  enhancement       |     Status:  new
Priority:  patches-accepted  |  Milestone:  sys - other
 Version:  0.8.9             |   Keywords:  ansible
-----------------------------+-------------------------
 We're currently writing things like

 {{{
   - password: "{{ some_password }}"
 }}}

 with the assumption that `some_password` is in `secrets.yml`.  But for
 folks trying to reproduce externally, they have no good way to know to set
 that value -- and Jinja2 will helpfully substitute an empty string in this
 case.

 I bet we could use a Jinja2 filter or function to look up secrets.  This
 could avoid empty values and also make it easy to grep the codebase for
 required secrets.

--
Ticket URL: <http://trac.buildbot.net/ticket/3085>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list