summaryrefslogtreecommitdiff
path: root/examples/validate_resource-2.pp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/validate_resource-2.pp')
-rw-r--r--examples/validate_resource-2.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/validate_resource-2.pp b/examples/validate_resource-2.pp
new file mode 100644
index 0000000..b53b109
--- /dev/null
+++ b/examples/validate_resource-2.pp
@@ -0,0 +1,17 @@
+class foo (
+ $a,
+ $b,
+ $c
+ ) {
+
+ validate_resource()
+
+ # ... do something ...
+
+}
+
+class { "foo":
+ a => "1",
+ b => "foobaz",
+ c => ['a','b','c']
+}