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

On Windows allow using root path for file type

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Template:

      Description

      This would allow full path in a way that doesn't require specifying the drive to look at. When this is specified, we will use SYSTEMDRIVE. This would allow multiple computers with different system drives to be able to use the same manifests. This could also open the door for more platforms using the same manifest with less use of selectors based on the OS.

      file {'/somepath':
        ensure => directory,
      }
       
      file { '/somepath/somefile.txt':
        ensure => file,
        content => 'this is content',
      }
      

      Those would translate to `c:\somepath` and `c:\somepath\somefile.txt` respectively on Windows if SYSTEMDRIVE was C:, otherwise it would translate to whatever the system drive is set to on Windows.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            redmine.exporter redmine.exporter
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support