From 4ce9c52e83b6593365cfcd8859744bc853d8f7b9 Mon Sep 17 00:00:00 2001
From: Alexandre MERLIN <alexandre.merlin@inria.fr>
Date: Tue, 2 Mar 2021 13:18:12 +0100
Subject: [PATCH] [gen:kadeploy] add trusted env in kadeploy config

---
 lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb b/lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb
index d389a73cd6..f1710b462b 100644
--- a/lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb
+++ b/lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb
@@ -15,6 +15,15 @@ partitioning:
 timeouts:
   reboot: <%= data['reboot.timeout'] %>
   kexec: <%= data['reboot.kexec'] %>
+trusted_deployment:
+   user: oar
+   partition: /dev/sda2
+   envs:
+    - name: <%= data['trusted_env.name'] ? data['trusted_env.name'] : data['defaults.trusted_env.name'] %>
+      user: deploy
+kexec:
+  server_precmd: "true"
+  script: /etc/kadeploy3-dev/kexec.sh
 remoteops:
   console:
   - name: soft
-- 
GitLab