|
10 | 10 | # |
11 | 11 | # @param create_resources |
12 | 12 | # A hash of resources to create |
13 | | -# NOTE: functions, such as `template` or `epp`, are not evaluated. |
| 13 | +# NOTE: functions, such as `template` or `epp`, are not directly evaluated |
| 14 | +# but processed as Puppet code based on epp and erb hash keys. |
14 | 15 | # |
15 | 16 | # @example |
16 | 17 | # class { 'stdlib::manage': |
17 | | -# 'create_resources' => { |
18 | | -# 'file' => { |
19 | | -# '/etc/motd.d/hello' => { |
20 | | -# 'content' => 'I say Hi', |
21 | | -# 'notify' => 'Service[sshd]', |
22 | | -# }, |
23 | | -# '/etc/motd' => { |
24 | | -# 'ensure' => 'file', |
25 | | -# 'template' => 'profile/motd.epp', |
| 18 | +# 'create_resources' => { |
| 19 | +# 'file' => { |
| 20 | +# '/etc/motd.d/hello' => { |
| 21 | +# 'content' => 'I say Hi', |
| 22 | +# 'notify' => 'Service[sshd]', |
| 23 | +# }, |
| 24 | +# '/etc/motd' => { |
| 25 | +# 'ensure' => 'file', |
| 26 | +# 'epp' => { |
| 27 | +# 'template' => 'profile/motd.epp', |
26 | 28 | # } |
27 | 29 | # }, |
28 | | -# 'package' => { |
29 | | -# 'example' => { |
30 | | -# 'ensure' => 'installed', |
31 | | -# 'subscribe' => ['Service[sshd]', 'Exec[something]'], |
| 30 | +# '/etc/information' => { |
| 31 | +# 'ensure' => 'file', |
| 32 | +# 'erb' => { |
| 33 | +# 'template' => 'profile/informaiton.erb', |
32 | 34 | # } |
33 | 35 | # } |
| 36 | +# }, |
| 37 | +# 'package' => { |
| 38 | +# 'example' => { |
| 39 | +# 'ensure' => 'installed', |
| 40 | +# 'subscribe' => ['Service[sshd]', 'Exec[something]'], |
| 41 | +# } |
34 | 42 | # } |
| 43 | +# } |
| 44 | +# } |
35 | 45 | # |
36 | 46 | # @example |
37 | 47 | # stdlib::manage::create_resources: |
|
0 commit comments