aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/softwarekey/manifests/init.pp
blob: b2c4bcb27401f9e2c70630e15c7c2e0e0525003a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class softwarekey {
    $sign_login = 'softwarekey'
    $sign_home_dir = "/var/lib/${sign_login}"
    $sign_keydir = "${sign_home_dir}/keys"

    group { $sign_login: }

    user { $sign_login:
        home    => $sign_home_dir,
        gid     => $sign_login,
        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],
    }
}