From 0535413a98ace7cbf301bba18dd95254302d584f Mon Sep 17 00:00:00 2001 From: Loys Ollivier Date: Fri, 8 Sep 2017 09:57:39 +0200 Subject: Add callback option to command line The callback option takes one argument. It is the name of the file located in ./templates/callback/ that contains all the "secret" information such as the callback FQDN, lab name and token. A readme is provided: ./templates/callback/callback_readme.txt Change-Id: Id457d90eba0d1312e43246ca607289ad829fd55f Signed-off-by: Loys Ollivier Signed-off-by: Kevin Hilman --- templates/base/agl-base.jinja2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/base/agl-base.jinja2') diff --git a/templates/base/agl-base.jinja2 b/templates/base/agl-base.jinja2 index 1119aaa..f717ef6 100644 --- a/templates/base/agl-base.jinja2 +++ b/templates/base/agl-base.jinja2 @@ -4,6 +4,9 @@ metadata: image.type: 'AGL' {% endblock %} +{% if callback_name %} +{% include 'base/agl-callback.jinja2' %} +{% endif %} {%- block main %} device_type: {{ device_type }} job_name: {{ name }} -- cgit 1.2.3-korg