From d604d2fab58f2c7432c0cc5fd8ec532a2c7f0795 Mon Sep 17 00:00:00 2001
From: Leif Johansson <leifj@sunet.se>
Date: Mon, 9 Jan 2017 22:03:38 +0100
Subject: [PATCH] set no-protection on the private key

---
 global/pre-tasks.d/040hiera-gpg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/global/pre-tasks.d/040hiera-gpg b/global/pre-tasks.d/040hiera-gpg
index e5de6da..3aa3037 100755
--- a/global/pre-tasks.d/040hiera-gpg
+++ b/global/pre-tasks.d/040hiera-gpg
@@ -44,6 +44,7 @@ Name-Comment: Hiera GPG key
 Name-Email: root@`hostname --fqdn`
 Expire-Date: 0
 # Do a commit here, so that we can later print "done" :-)
+%no-protection
 %commit
 %echo done
 EOF