Skip to content

Commit

Permalink
update puppet strings documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxmea committed Mar 27, 2024
1 parent 6b98054 commit bd6f29f
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions manifests/manage.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,38 @@
#
# @param create_resources
# A hash of resources to create
# NOTE: functions, such as `template` or `epp`, are not evaluated.
# NOTE: functions, such as `template` or `epp`, are not directly evaluated
# but processed as Puppet code based on epp and erb hash keys.
#
# @example
# class { 'stdlib::manage':
# 'create_resources' => {
# 'file' => {
# '/etc/motd.d/hello' => {
# 'content' => 'I say Hi',
# 'notify' => 'Service[sshd]',
# },
# '/etc/motd' => {
# 'ensure' => 'file',
# 'template' => 'profile/motd.epp',
# 'create_resources' => {
# 'file' => {
# '/etc/motd.d/hello' => {
# 'content' => 'I say Hi',
# 'notify' => 'Service[sshd]',
# },
# '/etc/motd' => {
# 'ensure' => 'file',
# 'epp' => {
# 'template' => 'profile/motd.epp',
# }
# },
# 'package' => {
# 'example' => {
# 'ensure' => 'installed',
# 'subscribe' => ['Service[sshd]', 'Exec[something]'],
# '/etc/information' => {
# 'ensure' => 'file',
# 'erb' => {
# 'template' => 'profile/informaiton.erb',
# }
# }
# },
# 'package' => {
# 'example' => {
# 'ensure' => 'installed',
# 'subscribe' => ['Service[sshd]', 'Exec[something]'],
# }
# }
# }
# }
#
# @example
# stdlib::manage::create_resources:
Expand Down

0 comments on commit bd6f29f

Please sign in to comment.