aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/softwarekey/manifests/init.pp
blob: 41102b4e23b08ff2b14443ef7732c793da9b7260 (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
25
class softwarekey {
    $sign_login = 'softwarekey'
    $sign_home_dir = "/var/lib/$sign_login"
    $sign_keydir = "$sign_home_dir/keys"

    group { $sign_login: }

    user { $sign_login:
        comment => 'System user to sign Mageia Software',
        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],
    }
}