Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-8534

Account for trailing slashes in mount resource titles

    Details

    • Template:
    • Team:
      Platform OS
    • Sprint:
      Platform OS Kanban
    • Method Found:
      Customer Feedback
    • CS Priority:
      Reviewed
    • Zendesk Ticket IDs:
      32705
    • Zendesk Ticket Count:
      1

      Description

      Consider the following example mount resource:

      mount {'/test/':
        ensure  => mounted,
        fstype  => "iso9660",
        device  => "/root/vim.iso",
        options => "loop,ro",
      }
      

      When this is applied, Puppet will create an entry in /etc/fstab with a mountpoint without the trailing slash:

      /root/vim.iso> /test>iso9660> loop,ro> 0> 0
      

      However, if the fstab entry were manually edited to contain a trailing slash, Puppet will not match the entry and will create another entry when this manifest is applied:

      /root/vim.iso> /test/>  iso9660> loop,ro> 0> 0
      /root/vim.iso> /test>iso9660> loop,ro> 0> 0
      

      Modify the implementation of the mount resource to allow for an optional trailing slash in its resource title and fstab entries.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adrian.parreiras-horta Adrian Parreiras Horta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support