|
@@ -29,8 +29,9 @@ def setup_users():
|
|
|
Creates users before cluster installation
|
|
|
"""
|
|
|
import params
|
|
|
+ should_create_users_and_groups = not params.host_sys_prepped and not params.ignore_groupsusers_create
|
|
|
|
|
|
- if not params.host_sys_prepped and not params.ignore_groupsusers_create:
|
|
|
+ if should_create_users_and_groups:
|
|
|
for group in params.group_list:
|
|
|
Group(group,
|
|
|
)
|
|
@@ -65,8 +66,10 @@ def setup_users():
|
|
|
|
|
|
if not params.host_sys_prepped:
|
|
|
if params.has_namenode:
|
|
|
- create_dfs_cluster_admins()
|
|
|
+ if should_create_users_and_groups:
|
|
|
+ create_dfs_cluster_admins()
|
|
|
if params.has_tez and params.hdp_stack_version != "" and compare_versions(params.hdp_stack_version, '2.3') >= 0:
|
|
|
+ if should_create_users_and_groups:
|
|
|
create_tez_am_view_acls()
|
|
|
else:
|
|
|
Logger.info('Skipping setting dfs cluster admin and tez view acls as host is sys prepped')
|