def __create_hawq_user_secured(): """ Creates HAWQ secured headless user belonging to hadoop group. """ import params Group(hawq_constants.hawq_group_secured, ignore_failures=True) User(hawq_constants.hawq_user_secured, gid=hawq_constants.hawq_group_secured, groups=[hawq_constants.hawq_group_secured, params.user_group], ignore_failures=True)
def __create_hawq_user(): """ Creates HAWQ user with password and default group. """ import params Group(hawq_constants.hawq_group, ignore_failures=True) User(hawq_constants.hawq_user, gid=hawq_constants.hawq_group, password=crypt.crypt(params.hawq_password, "$1$salt$"), groups=[hawq_constants.hawq_group, params.user_group], ignore_failures=True)
def __create_hawq_user(): """ Creates HAWQ user with default password and group. """ import params Group(constants.hawq_group, ignore_failures=True) User(constants.hawq_user, gid=constants.hawq_group, password=crypt.crypt(constants.hawq_password, "salt"), groups=[constants.hawq_group, params.user_group], ignore_failures=True)