Exemple #1
0
    def install(self, env):
        self.install_packages(env)
        self.install_ranger()
        import params
        env.set_params(params)

        setup_ranger_xml.validate_user_password('rangertagsync_user_password')

        setup_ranger_xml.ranger_credential_helper(
            params.tagsync_cred_lib, 'tagadmin.user.password',
            params.rangertagsync_user_password, params.tagsync_jceks_path)
        File(params.tagsync_jceks_path,
             owner=params.unix_user,
             group=params.unix_group,
             only_if=format("test -e {tagsync_jceks_path}"),
             mode=0640)

        setup_ranger_xml.update_dot_jceks_crc_ownership(
            credential_provider_path=params.tagsync_jceks_path,
            user=params.unix_user,
            group=params.unix_group)

        if params.stack_supports_ranger_tagsync_ssl_xml_support:
            Logger.info(
                "Stack support Atlas user for Tagsync, creating keystore for same."
            )
            self.create_atlas_user_keystore(env)
        else:
            Logger.info(
                "Stack does not support Atlas user for Tagsync, skipping keystore creation for same."
            )
Exemple #2
0
 def create_atlas_user_keystore(self,env):
   import params
   env.set_params(params)
   ranger_credential_helper(params.tagsync_cred_lib, 'atlas.user.password', 'admin', params.atlas_tagsync_jceks_path)
   File(params.atlas_tagsync_jceks_path,
        owner = params.unix_user,
        group = params.unix_group,
        mode = 0640
   )
    def install(self, env):
        self.install_packages(env)
        import params
        env.set_params(params)

        ranger_credential_helper(params.tagsync_cred_lib,
                                 'tagadmin.user.password', 'rangertagsync',
                                 params.tagsync_jceks_path)
        File(params.tagsync_jceks_path,
             owner=params.unix_user,
             group=params.unix_group,
             mode=0640)
        self.configure(env)
    def create_atlas_user_keystore(self, env):
        import params
        env.set_params(params)
        ranger_credential_helper(params.tagsync_cred_lib,
                                 'atlas.user.password', 'admin',
                                 params.atlas_tagsync_jceks_path)
        File(params.atlas_tagsync_jceks_path,
             owner=params.unix_user,
             group=params.unix_group,
             only_if=format("test -e {atlas_tagsync_jceks_path}"),
             mode=0640)

        update_dot_jceks_crc_ownership(
            credential_provider_path=params.atlas_tagsync_jceks_path,
            user=params.unix_user,
            group=params.unix_group)
Exemple #5
0
    def install(self, env):
        self.install_ranger()
        import params
        env.set_params(params)

        if params.stack_supports_usersync_passwd:
            from setup_ranger_xml import ranger_credential_helper
            ranger_credential_helper(params.ugsync_cred_lib, params.ugsync_policymgr_alias, 'rangerusersync',
                                     params.ugsync_policymgr_keystore)

            File(params.ugsync_policymgr_keystore,
                 owner=params.unix_user,
                 group=params.unix_group,
                 mode=0640
                 )

        self.configure(env)
    def install(self, env):
        self.install_packages(env)
        import params
        env.set_params(params)

        setup_ranger_xml.validate_user_password('rangerusersync_user_password')

        if params.stack_supports_usersync_passwd:
            setup_ranger_xml.ranger_credential_helper(
                params.ugsync_cred_lib, params.ugsync_policymgr_alias,
                params.rangerusersync_user_password,
                params.ugsync_policymgr_keystore)

            File(params.ugsync_policymgr_keystore,
                 owner=params.unix_user,
                 group=params.unix_group,
                 mode=0640)
Exemple #7
0
  def install(self, env):
    self.install_packages(env)
    import params
    env.set_params(params)

    ranger_credential_helper(params.tagsync_cred_lib, 'tagadmin.user.password', 'rangertagsync', params.tagsync_jceks_path)
    File(params.tagsync_jceks_path,
       owner = params.unix_user,
       group = params.unix_group,
       mode = 0640
    )
    if params.stack_supports_ranger_tagsync_ssl_xml_support:
      Logger.info("Stack support Atlas user for Tagsync, creating keystore for same.")
      self.create_atlas_user_keystore(env)
    else:
      Logger.info("Stack does not support Atlas user for Tagsync, skipping keystore creation for same.")

    self.configure(env)