HomePhorge

(#8660) Default config dir to %PROGRAMDATA% on Windows
95b21dfde7d7Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#8660) Default config dir to %PROGRAMDATA% on Windows

The puppet install.rb script now defaults the config directory to
%PROGRAMDATA%\PuppetLabs\puppet\etc on Windows. This is more inline
with Windows best-practices, as this directory is used to store
application data across all users. The PROGRAMDATA environment
variable also takes into account alternate system drives, by using the
SYSTEMDRIVE environment variable.

Note that the Dir::COMMON_APPDATA constant is so named because it
corresponds to the CSIDL_COMMON_APPDATA constant, which on 2000, XP,
and 2003 is %ALLUSERSPROFILE%\Application Data, and on Vista, Win7 and
2008 is %SYSTEMDRIVE%\ProgramData.

This commit also updates puppet's default run_mode var and conf
directories when running as "root" to match the install script, and
fixes the spec test, which was looking in the Dir::WINDOWS directory.

Reviewed-by: Cameron Thomas <cameron@puppetlabs.com>

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUca3396e827d4: Merge branch 'ticket/master/8663-windows-spec-tests'
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU95b21dfde7d7: (#8660) Default config dir to %PROGRAMDATA% on Windows (authored by Josh Cooper <josh@puppetlabs.com>).Jul 29 2011, 7:45 PM