From 07ee33455439d960b9996e8110e011437181b42a Mon Sep 17 00:00:00 2001 From: Ken Barber Date: Fri, 1 Jul 2011 21:09:02 +0200 Subject: Added validate_resource function and examples on how to use it (and kwalify as well) --- examples/validate_resource-2.pp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/validate_resource-2.pp (limited to 'examples/validate_resource-2.pp') 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'] +} -- cgit v1.2.3