test template
authorStephen Gran <steve@lobefin.net>
Sun, 21 Feb 2010 13:26:05 +0000 (13:26 +0000)
committerStephen Gran <steve@lobefin.net>
Sun, 21 Feb 2010 13:26:05 +0000 (13:26 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/named/manifests/geodns.pp
modules/named/templates/class-test.erb [new file with mode: 0644]

index 0754b32..5503919 100644 (file)
@@ -4,6 +4,9 @@ class named::geodns inherits named {
         }
 
         file {
+                "/tmp/test":
+                        content => template("named/class-test.erb")
+                        ;
                 "/etc/apt/sources.list.d/geoip.list":
                         content => template("debian-org/etc/apt/sources.list.d/geoip.list.erb"),
                         notify  => Exec["apt-get update"],
diff --git a/modules/named/templates/class-test.erb b/modules/named/templates/class-test.erb
new file mode 100644 (file)
index 0000000..ec52f96
--- /dev/null
@@ -0,0 +1,4 @@
+<% classes.each do |klass| -%>
+The class <%= klass %> is defined
+<% end -%>
+