aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/repositories/manifests/subversion.pp
blob: 9e8030bbf06fa276e743d17529de7abf958df971 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
class repositories::subversion {

    Subversion::Repository {
        cia_post          => true,
        cia_ignore_author => '^schedbot$',
    }

    subversion::repository { '/svn/adm/':
        group        => 'mga-sysadmin',
        commit_mail  => ["sysadmin-commits@ml.$::domain"],
        syntax_check => ['check_puppet_templates','check_puppet'],
        cia_module   => 'sysadm',
    }

    sudo::sudoers_config { 'puppet_update':
        content => template('repositories/puppet_update.sudoers')
    }

    subversion::hook::post_commit { '/svn/adm/|puppet_update':
        content => template('repositories/puppet_update.sh')
    }

    subversion::repository { '/svn/soft/':
        group        => 'mga-packagers',
        commit_mail  => ["soft-commits@ml.$::domain"],
        syntax_check => ['check_po'],
        cia_module   => 'soft',
        i18n_mail    => ["mageia-i18n@$::domain"],
    }

    subversion::repository { '/svn/soft_publish/':
        group       => 'mga-packagers',
        commit_mail => ["soft-commits@ml.$::domain"],
        cia_post    => true,
        cia_module  => 'soft_publish',
    }

    subversion::repository { '/svn/web/':
        group        => 'mga-web',
        syntax_check => ['check_php'],
        cia_module   => 'web',
    }

    subversion::repository { '/svn/packages/':
        group       => 'mga-packagers-committers',
        no_binary   => true,
        commit_mail => ["packages-commits@ml.$::domain"],
        cia_module  => 'packages',
    }

    file { '/svn/binrepos/':
        ensure => directory,
        mode   => '0700',
    }

    subversion::repository { '/svn/binrepos/cauldron/':
        group      => 'mga-packagers-committers',
        cia_module => 'binrepos',
    }

    file { '/svn/binrepos/updates/':
        ensure => directory
    }

    subversion::repository { '/svn/binrepos/updates/1/':
        group      => 'mga-packagers-committers',
        cia_module => 'binrepos_1',
    }
}