aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/releasekey
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/releasekey')
-rw-r--r--deployment/releasekey/init.pp25
1 files changed, 25 insertions, 0 deletions
diff --git a/deployment/releasekey/init.pp b/deployment/releasekey/init.pp
new file mode 100644
index 00000000..aec44cf1
--- /dev/null
+++ b/deployment/releasekey/init.pp
@@ -0,0 +1,25 @@
+class releasekey {
+ class variable {
+ $sign_login = "releasekey"
+ $sign_home_dir = "/var/lib/$sign_login"
+ $sign_keydir = "$sign_home_dir/keys"
+ }
+
+ class base inherits variable {
+ sshuser { $sign_login:
+ homedir => $sign_home_dir,
+ comment => "System user to sign Mageia Releases",
+ groups => [$sched_login],
+ }
+
+ gnupg::keys{"release":
+ email => "release@$domain",
+ #FIXME there should be a variable somewhere to change the name of the distribution
+ key_name => 'Mageia Release',
+ login => $sign_login,
+ batchdir => "$sign_home_dir/batches",
+ keydir => $sign_keydir,
+ require => Sshuser[$sign_login],
+ }
+ }
+}