The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:

Feature #23235

On Windows allow using root path for file type

Added by Rob Reynolds over 2 years ago. Updated over 2 years ago.

Status:UnreviewedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Affected Puppet version: Branch:
Keywords:windows

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket is now tracked at: https://tickets.puppetlabs.com/browse/PUP-855


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.

History

#2 Updated by Charlie Sharpsteen over 2 years ago

Redmine Issue #23235 has been migrated to JIRA:

https://tickets.puppetlabs.com/browse/PUP-855

Also available in: Atom PDF