summaryrefslogtreecommitdiffstats
path: root/test/data/snippets/collection_within_virtual_definitions.pp
blob: 3c21468b07c45c9fe0c6e0f9bfb89eea5552ec91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
define test($name) {
    file {"/tmp/collection_within_virtual_definitions1_$name.txt":
        content => "File name $name\n"
    }
    Test2 <||>
}

define test2() {
    file {"/tmp/collection_within_virtual_definitions2_$name.txt":
        content => "This is a test\n"
    }
}

node default {
    @test {"foo":
        name => "foo"
    }
    @test2 {"foo2": }
    Test <||>
}