Puppet: System Administration Automated

Support

Ticket #713 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

[DOC] add a word about multiple dependencies with the require parameter

Reported by: DavidS Assigned to: luke
Priority: normal Milestone:
Component: documentation Version:
Severity: trivial Keywords: documentation, require
Cc: Triage Stage: Unreviewed
Attached Patches: None Complexity: Trivial

Description

Index: lib/puppet/metatype/metaparams.rb
===================================================================
--- lib/puppet/metatype/metaparams.rb   (revision 2680)
+++ lib/puppet/metatype/metaparams.rb   (working copy)
@@ -321,9 +321,14 @@
                 file { \"/usr/local/scripts/myscript\":
                     source => \"puppet://server/module/myscript\",
                     mode => 755,
-                    require => file[\"/usr/local/scripts\"]
+                    require => File[\"/usr/local/scripts\"]
                 }
 
+            Multiple dependencies can be specified by providing a comma-seperated list
+            of resources, enclosed in square brackets::
+
+                require => [ File[\"/usr/local\"], File[\"/usr/local/scripts\"] ]
+
             Note that Puppet will autorequire everything that it can, and
             there are hooks in place so that it's easy for resources to add new
             ways to autorequire objects, so if you think Puppet could be

Change History

07/12/07 13:53:03 changed by DavidS

  • complexity changed from Unknown to Trivial.
  • compatibility changed from Unknown to Full.
  • severity changed from normal to trivial.

07/12/07 16:40:30 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

Applied in [2682]. It would be best if these patches were provided as attachments.