|
@@ -128,13 +128,13 @@ def do_keystore_setup():
|
|
|
jceks_path = params.ranger_credential_provider_path
|
|
|
cred_setup = format('{cred_setup_prefix} -f {jceks_path} -k "{ranger_jpa_jdbc_credential_alias}" -v "{ranger_ambari_db_password}" -c 1')
|
|
|
|
|
|
- Execute(cred_setup, logoutput=True)
|
|
|
+ Execute(cred_setup, environment={'RANGER_ADMIN_HOME':params.ranger_home, 'JAVA_HOME': params.java_home}, logoutput=True)
|
|
|
|
|
|
if not is_empty(params.ranger_credential_provider_path) and (params.ranger_audit_source_type).lower() == 'db' and not is_empty(params.ranger_ambari_audit_db_password):
|
|
|
jceks_path = params.ranger_credential_provider_path
|
|
|
cred_setup = format('{cred_setup_prefix} -f {jceks_path} -k "{ranger_jpa_audit_jdbc_credential_alias}" -v "{ranger_ambari_audit_db_password}" -c 1')
|
|
|
|
|
|
- Execute(cred_setup, logoutput=True)
|
|
|
+ Execute(cred_setup, environment={'RANGER_ADMIN_HOME':params.ranger_home, 'JAVA_HOME': params.java_home}, logoutput=True)
|
|
|
|
|
|
File(params.ranger_credential_provider_path,
|
|
|
owner = params.unix_user,
|
|
@@ -167,13 +167,13 @@ def setup_usersync():
|
|
|
cred_lib = os.path.join(params.usersync_home,"lib","*")
|
|
|
|
|
|
cred_setup = format('python {ranger_home}/ranger_credential_helper.py -l "{cred_lib}" -f {ugsync_jceks_path} -k "usersync_ssl_key_password" -v "{ranger_usersync_keystore_password}" -c 1')
|
|
|
- Execute(cred_setup, logoutput=True)
|
|
|
+ Execute(cred_setup, environment={'RANGER_ADMIN_HOME':params.ranger_home, 'JAVA_HOME': params.java_home}, logoutput=True)
|
|
|
|
|
|
cred_setup = format('python {ranger_home}/ranger_credential_helper.py -l "{cred_lib}" -f {ugsync_jceks_path} -k "ranger.usersync.ldap.bindalias" -v "{ranger_usersync_ldap_ldapbindpassword}" -c 1')
|
|
|
- Execute(cred_setup, logoutput=True)
|
|
|
+ Execute(cred_setup, environment={'RANGER_ADMIN_HOME':params.ranger_home, 'JAVA_HOME': params.java_home}, logoutput=True)
|
|
|
|
|
|
cred_setup = format('python {ranger_home}/ranger_credential_helper.py -l "{cred_lib}" -f {ugsync_jceks_path} -k "usersync.ssl.truststore.password" -v "{ranger_usersync_truststore_password}" -c 1')
|
|
|
- Execute(cred_setup, logoutput=True)
|
|
|
+ Execute(cred_setup, environment={'RANGER_ADMIN_HOME':params.ranger_home, 'JAVA_HOME': params.java_home}, logoutput=True)
|
|
|
|
|
|
File(params.ugsync_jceks_path,
|
|
|
owner = params.unix_user,
|