def configure(self, env, upgrade_type=None, setup_db=False): import params env.set_params(params) # set up db if we are not upgrading and setup_db is true if setup_db and upgrade_type is None: setup_ranger_xml.setup_ranger_db() setup_ranger_xml.ranger('ranger_admin', upgrade_type=upgrade_type) # set up java patches if we are not upgrading and setup_db is true if setup_db and upgrade_type is None: setup_ranger_xml.setup_java_patch() # Updating password for Ranger Admin user setup_ranger_xml.setup_ranger_admin_passwd_change( params.admin_username, params.admin_password, params.default_admin_password) # Updating password for Ranger Usersync user setup_ranger_xml.setup_ranger_admin_passwd_change( params.rangerusersync_username, params.rangerusersync_user_password, params.default_rangerusersync_user_password) # Updating password for Ranger Tagsync user setup_ranger_xml.setup_ranger_admin_passwd_change( params.rangertagsync_username, params.rangertagsync_user_password, params.default_rangertagsync_user_password) # Updating password for Ranger Keyadmin user setup_ranger_xml.setup_ranger_admin_passwd_change( params.keyadmin_username, params.keyadmin_user_password, params.default_keyadmin_user_password)
def install(self, env): self.install_packages(env) import params env.set_params(params) if params.xml_configurations_supported: from setup_ranger_xml import setup_ranger_db setup_ranger_db() self.configure(env) if params.xml_configurations_supported: from setup_ranger_xml import setup_java_patch setup_java_patch() if params.stack_supports_ranger_admin_password_change: setup_ranger_admin_passwd_change()
def configure(self, env, upgrade_type=None, setup_db=False): import params env.set_params(params) # set up db if we are not upgrading and setup_db is true if setup_db and upgrade_type is None: from setup_ranger_xml import setup_ranger_db setup_ranger_db() ranger('ranger_admin', upgrade_type=upgrade_type) # set up java patches if we are not upgrading and setup_db is true if setup_db and upgrade_type is None: from setup_ranger_xml import setup_java_patch setup_java_patch() if params.stack_supports_ranger_admin_password_change: setup_ranger_admin_passwd_change()
def configure(self, env, upgrade_type=None, setup_db=False): import params env.set_params(params) if params.xml_configurations_supported: from setup_ranger_xml import ranger else: from setup_ranger import ranger # set up db if we are not upgrading and setup_db is true if setup_db and upgrade_type is None: if params.xml_configurations_supported: from setup_ranger_xml import setup_ranger_db setup_ranger_db() ranger('ranger_admin', upgrade_type=upgrade_type) Execute("chown -R ranger:ranger %s" % params.ranger_conf) # set up java patches if we are not upgrading and setup_db is true if setup_db and upgrade_type is None: if params.xml_configurations_supported: from setup_ranger_xml import setup_java_patch setup_java_patch() if params.stack_supports_ranger_admin_password_change: setup_ranger_admin_passwd_change()