From 118f3a70b4d3dbb999d2a14683c0fb0df76275ac Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 18 Apr 2011 10:00:07 +0000 Subject: add software key in its own module --- deployment/softwarekey/manifests/init.pp | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 deployment/softwarekey/manifests/init.pp (limited to 'deployment/softwarekey') diff --git a/deployment/softwarekey/manifests/init.pp b/deployment/softwarekey/manifests/init.pp new file mode 100644 index 00000000..4296cce0 --- /dev/null +++ b/deployment/softwarekey/manifests/init.pp @@ -0,0 +1,33 @@ +class softwarekey { + class variable { + $sign_login = "softwarekey" + $sign_home_dir = "/var/lib/$sign_login" + $sign_keydir = "$sign_home_dir/keys" + } + + class base inherits variable { + group {"$sign_login": + ensure => present, + } + + user {"$sign_login": + ensure => present, + comment => "System user to sign Mageia Software", + managehome => true, + home => $sign_home_dir, + gid => $sign_login, + shell => "/bin/bash", + require => Group[$sign_login], + } + + gnupg::keys{"software": + email => "software@$domain", + #FIXME there should be a variable somewhere to change the name of the distribution + key_name => 'Mageia Software', + login => $sign_login, + batchdir => "$sign_home_dir/batches", + keydir => $sign_keydir, + require => User[$sign_login], + } + } +} -- cgit v1.2.1