The Puppet Labs Issue Tracker has Moved:

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 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:


Target version:-
Affected Puppet version: Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:

This ticket is now tracked at:


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.


#2 Updated by Charlie Sharpsteen over 2 years ago

Redmine Issue #23235 has been migrated to JIRA:

Also available in: Atom PDF