Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3399

The file resource should autorequire any 'source' items that are on the local system.

    Details

    • Type: Improvement
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 3.7.1
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
    • Environment:

      Any

      Description

      The file resource needs to autorequire other file resources that it may be using as a source.

      This is necessary because the files may be completely independently managed by various classes without the knowledge of the end user.

      Example:

      class foo {
        file { '/tmp/foo': content => 'foo' }
      }
       
      class bar {
        file { '/dev/shm/bar':
           source => '/tmp/foo' # Should Autorequire This!
        }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              peiriannydd Trevor Vaughan
              QA Contact:
              Eric Thompson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Zendesk Support