Re: [Puppet-dev] #2157 - help on windows paths

2011-08-23 Thread Josh Cooper
On Tue, Aug 23, 2011 at 4:27 PM, Ken Barber wrote: > >> If PROGRAMDATA is defined, I would use that value. > >> Otherwise, if ALLUSERSPROFILE is defined (and it should be), I would use > >> %ALLUSERSPROFILE%\Application Data > > > > I actually like this methodology over relying on win32-dir mysel

Re: [Puppet-dev] #2157 - help on windows paths

2011-08-23 Thread Ken Barber
>> If PROGRAMDATA is defined, I would use that value. >> Otherwise, if ALLUSERSPROFILE is defined (and it should be), I would use >> %ALLUSERSPROFILE%\Application Data > > I actually like this methodology over relying on win32-dir myself > because if it works its a win-win and I don't need to degra

Re: [Puppet-dev] #2157 - help on windows paths

2011-08-23 Thread Ken Barber
> If PROGRAMDATA is defined, I would use that value. > Otherwise, if ALLUSERSPROFILE is defined (and it should be), I would use > %ALLUSERSPROFILE%\Application Data I actually like this methodology over relying on win32-dir myself because if it works its a win-win and I don't need to degrade. I gu

Re: [Puppet-dev] #2157 - help on windows paths

2011-08-23 Thread Josh Cooper
On Tue, Aug 23, 2011 at 12:46 PM, Ken Barber wrote: > Thanks Josh. > > > The ProgramData environment variable is not supported on 2003. The > > equivalent directory on 2003 (and other legacy systems) > > is %ALLUSERSPROFILE%\Application Data.[1] > > Gah! (/me goes off to download Windows 2003 ...

Re: [Puppet-dev] #2157 - help on windows paths

2011-08-23 Thread Jacob Helwig
On Tue, 23 Aug 2011 20:46:11 +0100, Ken Barber wrote: > > Thanks Josh. > > > The ProgramData environment variable is not supported on 2003. The > > equivalent directory on 2003 (and other legacy systems) > > is %ALLUSERSPROFILE%\Application Data.[1] > > Gah! (/me goes off to download Windows 200

Re: [Puppet-dev] #2157 - help on windows paths

2011-08-23 Thread Ken Barber
Thanks Josh. > The ProgramData environment variable is not supported on 2003. The > equivalent directory on 2003 (and other legacy systems) > is %ALLUSERSPROFILE%\Application Data.[1] Gah! (/me goes off to download Windows 2003 ...). So in 2008R2 ALLUSERSPROFILE points at C:\ProgramData ... so i

Re: [Puppet-dev] #2157 - help on windows paths

2011-08-23 Thread Josh Cooper
On Tue, Aug 23, 2011 at 11:31 AM, Ken Barber wrote: > > Generally speaking: Facter should probably still work (though in a > > degraded mode) without the win32-dir gem installed. > > Hmm. ENV["ProgramData"] is actually the same as Dir::COMMON_APPDATA on > 2008R2. I can avoid the gem completely th

Re: [Puppet-dev] #2157 - help on windows paths

2011-08-23 Thread Ken Barber
> Generally speaking: Facter should probably still work (though in a > degraded mode) without the win32-dir gem installed. Hmm. ENV["ProgramData"] is actually the same as Dir::COMMON_APPDATA on 2008R2. I can avoid the gem completely this way, but this is not how Puppet does it today ... as it seem

Re: [Puppet-dev] #2157 - help on windows paths

2011-08-23 Thread Jacob Helwig
On Tue, 23 Aug 2011 19:10:35 +0100, Ken Barber wrote: > > Hi everyone, > > I need some advice on a ticket I'm working on - #2157: > > https://projects.puppetlabs.com/issues/2157 > > This introduces scripting support for facter. This new change > introduces two new path requirements: > > * A di

[Puppet-dev] #2157 - help on windows paths

2011-08-23 Thread Ken Barber
Hi everyone, I need some advice on a ticket I'm working on - #2157: https://projects.puppetlabs.com/issues/2157 This introduces scripting support for facter. This new change introduces two new path requirements: * A directory for scripted facts (for linux now its /etc/facter/facts.d/) * A file