]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/dacs/manifests/init.pp
e8abf313a158b03ecf835a93e4eaf1b34cf9cdc4
[dsa-puppet.git] / modules / dacs / manifests / init.pp
1 class dacs {
2     package {
3         "dacs": ensure => installed;
4         "libapache2-mod-dacs": ensure => installed;
5     }
6
7     file {
8         "/etc/dacs/federations":
9              ensure  => directory,
10              owner   => root,
11              group   => www-data,
12              mode    => 750,
13              purge   => true
14              ;
15
16         "/etc/dacs/federations/debian.org/":
17              ensure  => directory,
18              owner   => root,
19              group   => www-data,
20              mode    => 750,
21              purge   => true
22              ;
23
24         "/etc/dacs/federations/debian.org/DEBIAN":
25              ensure  => directory,
26              owner   => root,
27              group   => www-data,
28              mode    => 750,
29              purge   => true
30              ;
31
32         "/etc/dacs/federations/debian.org/DEBIAN/acls":
33              ensure  => directory,
34              owner   => root,
35              group   => www-data,
36              mode    => 750,
37              purge   => true
38              ;
39         
40         "/etc/dacs/federations/debian.org/DEBIAN/groups":
41              ensure  => directory,
42              owner   => root,
43              group   => www-data,
44              mode    => 750,
45              purge   => true
46              ;
47
48         "/etc/dacs/federations/site.conf":
49              source  => [ "puppet:///modules/dacs/per-host/$fqdn/site.conf",
50                           "puppet:///modules/dacs/common/site.conf" ],
51              mode    => 640,
52              owner   => root,
53              group   => www-data
54              ;
55
56         "/etc/dacs/federations/debian.org/DEBIAN/dacs.conf":
57              source  => [ "puppet:///modules/dacs/per-host/$fqdn/dacs.conf",
58                           "puppet:///modules/dacs/common/dacs.conf" ],
59              mode    => 640,
60              owner   => root,
61              group   => www-data
62              ;
63
64         "/etc/dacs/federations/debian.org/DEBIAN/acls/revocations":
65              source  => [ "puppet:///modules/dacs/per-host/$fqdn/revocations",
66                           "puppet:///modules/dacs/common/revocations" ],
67              mode    => 640,
68              owner   => root,
69              group   => www-data
70              ;
71
72         "/etc/dacs/federations/debian.org/DEBIAN/acls/acl-noauth.0":
73              source  => [ "puppet:///modules/dacs/per-host/$fqdn/acl-noauth.0",
74                           "puppet:///modules/dacs/common/acl-noauth.0" ],
75              mode    => 640,
76              owner   => root,
77              group   => www-data
78              notify  => Exec["dacsacl"]
79              ;
80
81         "/etc/dacs/federations/debian.org/DEBIAN/acls/acl-private.0":
82              source  => [ "puppet:///modules/dacs/per-host/$fqdn/acl-private.0",
83                           "puppet:///modules/dacs/common/acl-private.0" ],
84              mode    => 640,
85              owner   => root,
86              group   => www-data
87              notify  => Exec["dacsacl"]
88              ;
89
90         "/etc/dacs/federations/debian.org/federation_keyfile":
91              source  => "puppet:///modules/dacs/private/debian.org_federation_keyfile",
92              mode    => 640,
93              owner   => root,
94              group   => www-data
95              ;
96
97         "/etc/dacs/federations/debian.org/DEBIAN/jurisdiction_keyfile":
98              source  => "puppet:///modules/dacs/private/DEBIAN_jurisdiction_keyfile",
99              mode    => 640,
100              owner   => root,
101              group   => www-data
102              ;
103
104     }
105
106     exec {
107         "dacsacl":
108             command     => "dacsacl -uj DEBIAN",
109             refreshonly => true,
110     }
111
112
113 }
114 # vim:set et:
115 # vim:set sts=4 ts=4:
116 # vim:set shiftwidth=4: