diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-10 22:00:30 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-10 22:00:30 +0000 |
commit | 2be25d51f38f53c92bcc6b9688344fdb1c06f48f (patch) | |
tree | 883fb30254b637312ec4518d189df10ef13fd159 /examples | |
parent | 7f7b5c679ff4957dcd94b4652033b9fad871cad2 (diff) | |
download | puppet-2be25d51f38f53c92bcc6b9688344fdb1c06f48f.tar.gz puppet-2be25d51f38f53c92bcc6b9688344fdb1c06f48f.tar.xz puppet-2be25d51f38f53c92bcc6b9688344fdb1c06f48f.zip |
Making the language name a real alias. Now all objects in Puppet support specifying both the name and the namevar, or just a name and having the namevar set.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@896 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'examples')
-rw-r--r-- | examples/code/snippets/aliastest.pp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/code/snippets/aliastest.pp b/examples/code/snippets/aliastest.pp new file mode 100644 index 000000000..2a8fc9cb9 --- /dev/null +++ b/examples/code/snippets/aliastest.pp @@ -0,0 +1,16 @@ +file { "a file": + path => "/tmp/aliastest", + ensure => file +} + +file { "another": + path => "/tmp/aliastest2", + ensure => file, + require => file["a file"] +} + +file { "a third": + path => "/tmp/aliastest3", + ensure => file, + require => file["/tmp/aliastest"] +} |