That has the added benefit of also working correctly on localized versions
of windows where they changed "Program Files" to something completely
different locale dependent :(


On 2 July 2014 14:49, David Schmitt <[email protected]> wrote:

> Hi Rob,
>
> The alternative would be to provide many of the well-known paths on
> windows as facts.
>
>   file { "${::systemdrive}/somepath/bob": ... }
>
> Not an obvious improvement.
>
> A different question: is %PROGRAMFILES% always on %SYSTEMDRIVE% and will
> people tend to write
>
>   file { "/Program Files/...": }
>   file { "/Windows/...": }
>
> expecting it to work?
>
> So I'm leaning more on the side of requiring explicit paths and against
> magic.
>
> Regards, David
>
>
> On 2014-07-01 21:28, Rob Reynolds wrote:
>
>> Context,
>>  Awhile ago I thought it might be a good idea to allow for some more
>> consistency in manifests where you would not need to specify the drive
>> letter if you were going to the system drive on windows (usually c: as
>> in c:/).
>>
>> This is encapsulated in PUP-855[1].
>>
>> This would allow for the ability to specify paths in somewhat the same
>> way as they are specified on other systems, with the knowledge that on
>> Windows, the "/" on the front of the path ("/somepath/bob") would
>> actually be translated to SYSTEMDRIVE, most times c:/
>> ("c:/somepath/bob").
>>
>> There is concern that this is non-deterministic and could possibly be
>> a problem, but this could potentially be useful for most folks.
>>
>> Thoughts? Feedback?
>>
>> [1] https://tickets.puppetlabs.com/browse/PUP-855 [1]
>>
>>
>> --
>>
>> Rob Reynolds
>>
>>  Developer, Puppet Labs
>>
>> JOIN US AT , SEPTEMBER 20-24 IN SAN FRANCISCO
>>
>> _Register by July 31st to take advantage of the Early Bird discount
>> [2] __--__save $249!_
>>
>>
>>  --
>>  You received this message because you are subscribed to the Google
>> Groups "Puppet Developers" group.
>>  To unsubscribe from this group and stop receiving emails from it,
>> send an email to [email protected] [3].
>>
>>  To view this discussion on the web visit
>>
>> https://groups.google.com/d/msgid/puppet-dev/CAMJiBK6YGz42hFL3JJ%2B%
>> 3D4nXriZ69ZcPYo1dQA6znpfxCU%2BRG5w%40mail.gmail.com
>> [4].
>>  For more options, visit https://groups.google.com/d/optout [5].
>>
>>
>> Links:
>> ------
>> [1] https://tickets.puppetlabs.com/browse/PUP-855
>> [2] https://puppetconf2014.eventbrite.com/?discount=EarlyBird
>> [3] mailto:[email protected]
>> [4]
>>
>> https://groups.google.com/d/msgid/puppet-dev/CAMJiBK6YGz42hFL3JJ%2B%
>> 3D4nXriZ69ZcPYo1dQA6znpfxCU%2BRG5w%40mail.gmail.com?utm_
>> medium=email&utm_source=footer
>> [5] https://groups.google.com/d/optout
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/puppet-dev/4f489b7dd0e881b2c7ccf00f02cf04dd%40hosting.edv-bus.at.
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Erik Dalén

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CAAAzDLex6dK6uKcBCop-q6QJRFi3jA71CVJewzrBiPr9Dnyuuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to