From 2be25d51f38f53c92bcc6b9688344fdb1c06f48f Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 10 Feb 2006 22:00:30 +0000 Subject: 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 --- examples/code/snippets/aliastest.pp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/code/snippets/aliastest.pp (limited to 'examples/code/snippets') 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"] +} -- cgit