blob: 51703871ca6dae10afc06efb1d49fcbaaff13441 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
== Relationships and ordering ==
https://puppet.com/docs/puppet/7/lang_relationships.html
=== Parameters ===
before :: Applies a resource before the target resource.
require :: Applies a resource after the target resource.
notify :: Applies a resource before the target resource. The target resource refreshes if the notifying resource changes.
subscribe :: Applies a resource after the target resource. The subscribing resource refreshes if the target resource changes.
=== Multiple declaration in single resource block ===
{{{puppet
ini_setting {
default:
ensure => $ensure,
path => $::pacman::conf_path,
section => $repo_name ,
;
"Pacman repo [${repo_name}] server":
setting => 'Server',
value => $server ,
;
"Pacman repo [${repo_name}] SigLevel":
setting => 'SigLevel',
value => $sig_level ,
;
}
}}}
=== Type Case ===
{{{puppet
$variable ? {
Array => 'one thing',
String => 'Anothing thing'
}
}}}
|