aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/releasekey/manifests/init.pp
blob: a3c995262bf4dd25f207a1b8253cc16ba1a8cf8b (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
26
27
class releasekey {
    $sign_login = 'releasekey'
    $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 Releases',
        home    => $sign_home_dir,
        gid     => $sign_login,
        require => Group[$sign_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  => User[$sign_login],
    }

    mga_common::local_script { 'sign_checksums':
        content => template('releasekey/sign_checksums'),
    }
}