-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy pathenvironment.bat
29 lines (22 loc) · 1.03 KB
/
environment.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@ECHO OFF
REM This is the parent directory of the directory containing this script (resolves to :install_root/Puppet)
SET PL_BASEDIR=%~dp0..
REM Avoid the nasty \..\ littering the paths.
SET PL_BASEDIR=%PL_BASEDIR:\bin\..=%
SET PUPPET_DIR=%PL_BASEDIR%\puppet
REM Set a fact so we can easily source the environment.bat file in the future.
SET FACTER_env_windows_installdir=%PL_BASEDIR%
REM Add puppet's bindirs to the PATH
SET PATH=%PUPPET_DIR%\bin;%PL_BASEDIR%\bin;%PATH%
REM Set the RUBY LOAD_PATH using the RUBYLIB environment variable
SET RUBYLIB=%PUPPET_DIR%\lib;%RUBYLIB%
REM Translate all slashes to / style to avoid issue #11930
SET RUBYLIB=%RUBYLIB:\=/%
REM Now return to the caller.
REM Set SSL variables to ensure trusted locations are used
SET SSL_CERT_FILE=%PUPPET_DIR%\ssl\cert.pem
SET SSL_CERT_DIR=%PUPPET_DIR%\ssl\certs
SET OPENSSL_CONF=%PUPPET_DIR%\ssl\openssl.cnf
SET OPENSSL_CONF_INCLUDE=%PUPPET_DIR%\ssl
SET OPENSSL_MODULES=%PUPPET_DIR%\lib\ossl-modules
SET OPENSSL_ENGINES=%PUPPET_DIR%\lib\engines-3