Skip to content

Commit bd6f29f

Browse files
committed
update puppet strings documentation
1 parent 6b98054 commit bd6f29f

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

Diff for: manifests/manage.pp

+24-14
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,38 @@
1010
#
1111
# @param create_resources
1212
# 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.
1415
#
1516
# @example
1617
# 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',
2628
# }
2729
# },
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',
3234
# }
3335
# }
36+
# },
37+
# 'package' => {
38+
# 'example' => {
39+
# 'ensure' => 'installed',
40+
# 'subscribe' => ['Service[sshd]', 'Exec[something]'],
41+
# }
3442
# }
43+
# }
44+
# }
3545
#
3646
# @example
3747
# stdlib::manage::create_resources:

0 commit comments

Comments
 (0)