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

File resource fails for root(/) directory.

    XMLWordPrintable

    Details

    • Template:
    • Story Points:
      1
    • Sprint:
      Client 2016-07-27, Client 2016-08-10
    • CS Priority:
      Reviewed
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Puppet can now manage the root directory on unix-like systems

      Description

      I know this is probably an extreme edge case, but I recently noticed that this fails:

      file { '/': ensure => directory }
       
      with the error:  Parameter path failed: File paths must be fully qualified, not '' at /tmp/test.pp:1
      

      A little background, This comes from a larger module that I have which uses the lvm module to create additional or grow existing filesystems on a server. The file resource is used to make sure the mount point exists before using the mount resource to manage /etc/fstab and mount the filesystem. I noticed that if I tried to use my custom module to grow the root(/) filesystem that I got the error above. Is the / being removed to make it an empty path as a result of some code to try and remove trailing slashes from paths?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              redmine.exporter redmine.exporter
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support