1 |
class main_mirror { |
2 |
# FIXME shouldn't the various code in this module ? |
3 |
include mirror::main |
4 |
|
5 |
class { rsyncd: |
6 |
rsyncd_conf => 'main_mirror/rsyncd.conf' |
7 |
} |
8 |
|
9 |
$mirror = "/distrib" |
10 |
file { "$mirror": |
11 |
ensure => directory, |
12 |
} |
13 |
|
14 |
file { "$mirror/README": |
15 |
ensure => present, |
16 |
source => "puppet:///modules/main_mirror/README" |
17 |
} |
18 |
|
19 |
file { "$mirror/mirror": |
20 |
ensure => directory, |
21 |
|
22 |
} |
23 |
|
24 |
file { "$mirror/mirror/mirror.readme": |
25 |
ensure => present, |
26 |
source => "puppet:///modules/main_mirror/mirror/mirror.readme" |
27 |
} |
28 |
|
29 |
file { "$mirror/mirror/paths.readme": |
30 |
ensure => present, |
31 |
source => "puppet:///modules/main_mirror/mirror/paths.readme" |
32 |
} |
33 |
|
34 |
|
35 |
} |