diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-10-18 04:45:55 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-10-18 04:45:55 +0000 |
commit | a05b8f5116af3a4908d5aed2a6a320b227609ec7 (patch) | |
tree | 74eb2ac2000b21d0eb474272575dde415dcf863f /test/data | |
parent | 8a4bf1bd9d5ed674c0eed2c64d8a5f587452ede2 (diff) | |
download | puppet-a05b8f5116af3a4908d5aed2a6a320b227609ec7.tar.gz puppet-a05b8f5116af3a4908d5aed2a6a320b227609ec7.tar.xz puppet-a05b8f5116af3a4908d5aed2a6a320b227609ec7.zip |
Adding a "realize" function that can be used to make one or more resource non-virtual. It is just syntactic sugar for a collection by title.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1808 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/snippets/virtualresources.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/data/snippets/virtualresources.pp b/test/data/snippets/virtualresources.pp new file mode 100644 index 000000000..a29406b84 --- /dev/null +++ b/test/data/snippets/virtualresources.pp @@ -0,0 +1,14 @@ +class one { + @file { "/tmp/virtualtest1": content => "one" } + @file { "/tmp/virtualtest2": content => "two" } + @file { "/tmp/virtualtest3": content => "three" } + @file { "/tmp/virtualtest4": content => "four" } +} + +class two { + File <| content == "one" |> + realize File["/tmp/virtualtest2"] + realize(File["/tmp/virtualtest3"], File["/tmp/virtualtest4"]) +} + +include one, two |