def __init__(self, chorus_path=None): self.chorus_path = chorus_path if chorus_path is None: self.release_path = None else: self.release_path = os.path.join( chorus_path, 'releases/%s' % get_version(chorus_path))
def __init__(self, parent): print('Performing check: ' + self.TITLE) self.dbversion = helper.get_version(parent.dbcurs) if int(self.dbversion) >= 11: # sha-1 hash self.SQL = "SELECT name, spare4 FROM sys.user$ WHERE password IS NOT NULL" else: # DES self.SQL = "SELECT username, password FROM dba_users"
def set_path(self, options): failover_file = os.path.join(options.chorus_path, ".failover") if os.path.exists(failover_file): os.remove(failover_file) self.options = options self.io = InstallerIO(self.options.silent) self.executor = ChorusExecutor(self.options.chorus_path) self.chorus_version = get_version(self.options.chorus_path) self.alpine_version = None self.release_path = os.path.join(self.options.chorus_path, "releases/%s" % self.chorus_version) self.shared = os.path.join(self.options.chorus_path, "shared")
def __init__(self, parent): print("Performing check: " + self.TITLE) self.dbversion = helper.get_version(parent.dbcurs) if int(self.dbversion) >= 11: # sha-1 hash self.SQL = "SELECT name, spare4 FROM sys.user$ WHERE password IS NOT NULL" else: # DES self.SQL = "SELECT username, password FROM dba_users"
def __init__(self, parent): print('Performing check: ' + self.TITLE) self.appuser = parent.appuser.upper() # upper it cuz oracle self.dbversion = helper.get_version(parent.dbcurs) if int(self.dbversion) >= 11: # sha-1 hash self.SQL = "SELECT name, spare4 FROM sys.user$ WHERE password IS NOT NULL AND name='" + self.appuser + "'" else: # DES self.SQL = "SELECT username, password FROM dba_users AND username='******'"
def set_path(self, options): failover_file = os.path.join(options.chorus_path, ".failover") if os.path.exists(failover_file): os.remove(failover_file) self.options = options self.io = InstallerIO(self.options.silent) self.executor = ChorusExecutor(self.options.chorus_path) self.chorus_version = get_version(self.options.chorus_path) self.alpine_version = None self.release_path = os.path.join(self.options.chorus_path, 'releases/%s' % self.chorus_version) self.shared = os.path.join(self.options.chorus_path, "shared")
def __init__(self, chorus_path=None): self.chorus_path = chorus_path if chorus_path is None: self.release_path = None else: self.release_path = os.path.join(chorus_path, 'releases/%s' % get_version(chorus_path))
from elasticsearch import NotFoundError, RequestError from helper import get_version, wait_until import time apm = "apm" apm_prefix = "{}*".format(apm) apm_version = get_version() day = time.strftime("%Y.%m.%d", time.gmtime()) default_policy = "apm-rollover-30-days" policy_url = "/_ilm/policy/" default_pipelines = ["apm_user_agent", "apm_user_geo", "apm"] ilm_pattern = "-000001" index_name = "apm-{}".format(apm_version) index_onboarding = "apm-{}-onboarding-{}".format(apm_version, day) index_smap = "apm-{}-sourcemap".format(apm_version) index_error = "apm-{}-error".format(apm_version) index_transaction = "apm-{}-transaction".format(apm_version) index_span = "apm-{}-span".format(apm_version) index_metric = "apm-{}-metric".format(apm_version) index_profile = "apm-{}-profile".format(apm_version) default_aliases = [ index_error, index_transaction, index_span, index_metric, index_profile ] default_indices = [index_name, index_onboarding, index_smap] + default_aliases def cleanup(es, delete_indices=[apm_prefix], delete_templates=[apm_prefix], delete_policies=[default_policy], delete_pipelines=[default_pipelines]):
def __init__(self, parent): print('Performing check: ' + self.TITLE) self.dbversion = helper.get_version(parent.dbcurs)