summaryrefslogtreecommitdiff
path: root/examples/validate_resource-1.pp
blob: c701b8d902a89728d4f93bbccce5734b56d95396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
define fooresource(
  $color,
  $type,
  $somenumber,
  $map
  ) {

  validate_resource()

  # ... do something ...
 
}

fooresource { "example1":
  color => "blue",
  type => "circle",
  somenumber => 5,
  map => {
    a => 1,
    b => 2,
    c => 3,
  }
}