Report abuse

output

1
Parameter 'requires' is already set on File[/tmp/one] by one at /home/rip/test1.pp:9; cannot redefine at /home/rip/test1.pp:17 on node dev2

manifest

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
class files {
        @file{["/tmp/one", "/tmp/two", "/tmp/three"]:
                content => "foo"
        }
}

class one inherits files {
        File["/tmp/one"]{
                requires +> File["/tmp/two"]
        }

        realize(File["/tmp/one"])
}

class two inherits files {
        File["/tmp/one"]{
                requires +> File["/tmp/three"]
        }

        realize(File["/tmp/two"])
}

class three inherits files {
        realize(File["/tmp/three"])
}

include files
include one
include two