vaultmanager/modules/VaultManagerAuth.py
def auth_push(self):
        """
        Push auth methods configuration to Vault
        """
        self.logger.info("Pushing auth methods to Vault")
        self.read_configuration()
        self.get_distant_auth_methods()
        self.get_local_auth_methods()
        for auth_method in self.local_auth_methods:
            if auth_method in self.distant_auth_methods:
                self.logger.debug("Auth method remaining unchanged " +
                                  str(auth_method))
        if "auth-methods-deletion" in self.conf and \
           self.conf["auth-methods-deletion"]:
            self.disable_distant_auth_methods()
        self.enable_distant_auth_methods()
        self.get_distant_auth_methods()
        self.logger.info("Auth methods successfully pushed to Vault")
        self.logger.info("Tuning auth methods")
        self.find_auth_methods_to_tune()
        self.logger.info("Auth methods successfully tuned")
        self.logger.info("Setting up auth method specific configuration")
        for auth_method in self.local_auth_methods:
            auth_method_module = None
            if auth_method.auth_config:
                if auth_method.type == "ldap":
                    auth_method_module = AuthMethodLDAP(
                        self.base_logger,
                        auth_method.path,
                        auth_method.auth_config,
                        self.vault_client
                    )
                elif auth_method.type == "approle":
                    auth_method_module = AuthMethodAppRole(
                        self.base_logger,
                        auth_method.path,
                        auth_method.auth_config,
                        self.vault_client
                    )
            if auth_method_module:
                auth_method_module.auth_method_configuration()
            else:
                self.logger.debug("No specific auth method configuration")
        self.logger.info("Auth method specific configuration OK")

        Push auth methods configuration to Vault
        
Push auth methods configuration to Vault
Push auth methods configuration to Vault
def auth_push(self):
        self.logger.info("Pushing auth methods to Vault")
        self.read_configuration()
        self.get_distant_auth_methods()
        self.get_local_auth_methods()
        for auth_method in self.local_auth_methods:
            if auth_method in self.distant_auth_methods:
                self.logger.debug("Auth method remaining unchanged " +
                                  str(auth_method))
        if "auth-methods-deletion" in self.conf and \
           self.conf["auth-methods-deletion"]:
            self.disable_distant_auth_methods()
        self.enable_distant_auth_methods()
        self.get_distant_auth_methods()
        self.logger.info("Auth methods successfully pushed to Vault")
        self.logger.info("Tuning auth methods")
        self.find_auth_methods_to_tune()
        self.logger.info("Auth methods successfully tuned")
        self.logger.info("Setting up auth method specific configuration")
        for auth_method in self.local_auth_methods:
            auth_method_module = None
            if auth_method.auth_config:
                if auth_method.type == "ldap":
                    auth_method_module = AuthMethodLDAP(
                        self.base_logger,
                        auth_method.path,
                        auth_method.auth_config,
                        self.vault_client
                    )
                elif auth_method.type == "approle":
                    auth_method_module = AuthMethodAppRole(
                        self.base_logger,
                        auth_method.path,
                        auth_method.auth_config,
                        self.vault_client
                    )
            if auth_method_module:
                auth_method_module.auth_method_configuration()
            else:
                self.logger.debug("No specific auth method configuration")
        self.logger.info("Auth method specific configuration OK")
def auth_push ( self ) : self . logger . info ( "Pushing auth methods to Vault" ) self . read_configuration ( ) self . get_distant_auth_methods ( ) self . get_local_auth_methods ( ) for auth_method in self . local_auth_methods : if auth_method in self . distant_auth_methods : self . logger . debug ( "Auth method remaining unchanged " + str ( auth_method ) ) if "auth-methods-deletion" in self . conf and self . conf [ "auth-methods-deletion" ] : self . disable_distant_auth_methods ( ) self . enable_distant_auth_methods ( ) self . get_distant_auth_methods ( ) self . logger . info ( "Auth methods successfully pushed to Vault" ) self . logger . info ( "Tuning auth methods" ) self . find_auth_methods_to_tune ( ) self . logger . info ( "Auth methods successfully tuned" ) self . logger . info ( "Setting up auth method specific configuration" ) for auth_method in self . local_auth_methods : auth_method_module = None if auth_method . auth_config : if auth_method . type == "ldap" : auth_method_module = AuthMethodLDAP ( self . base_logger , auth_method . path , auth_method . auth_config , self . vault_client ) elif auth_method . type == "approle" : auth_method_module = AuthMethodAppRole ( self . base_logger , auth_method . path , auth_method . auth_config , self . vault_client ) if auth_method_module : auth_method_module . auth_method_configuration ( ) else : self . logger . debug ( "No specific auth method configuration" ) self . logger . info ( "Auth method specific configuration OK" )
Push auth methods configuration to Vault
Push auth methods configuration to Vault
"""
        Push auth methods configuration to Vault
        """
self