Permalink
Browse files

- Add inheritless override example

  • Loading branch information...
1 parent fc6e729 commit dd8e21f68e940c02f8b098a36e7ff5a4b4c22622 @jordansissel committed Nov 30, 2010
Showing with 23 additions and 0 deletions.
  1. +7 −0 inheritless-override/README
  2. +16 −0 inheritless-override/example.pp
View
7 inheritless-override/README
@@ -0,0 +1,7 @@
+% puppet apply example.pp
+notice: /Stage[main]/Foo/File[/tmp/hello]/ensure: defined content as '{md5}09421fa0d48df35164511391b40b2406'
+
+% cat /tmp/hello
+override!
+
+
View
16 inheritless-override/example.pp
@@ -0,0 +1,16 @@
+class foo {
+ file {
+ "/tmp/hello":
+ content => "Hello world\n";
+ }
+}
+
+class bar {
+ include foo
+
+ File <| title == "/tmp/hello" |> {
+ content => "override!\n"
+ }
+}
+
+include bar

0 comments on commit dd8e21f

Please sign in to comment.