Beispiel #1
0
def feature_toggle_config():
    config_file = '../assets/teflo.cfg'
    cfgp = ConfigParser()
    cfgp.read(config_file)
    cfgp.set('feature_toggles:host', 'plugin_implementation', 'True')
    with open(config_file, 'w') as cf:
        cfgp.write(cf)
    os.environ['TEFLO_SETTINGS'] = config_file
    config = Config()
    config.load()
    return config
Beispiel #2
0
def task_concurrency_config():
    config_file = '../assets/teflo.cfg'
    cfgp = ConfigParser()
    cfgp.read(config_file)
    cfgp.set('task_concurrency', 'provision', 'True')
    cfgp.set('task_concurrency', 'report', 'True')
    with open(config_file, 'w') as cf:
        cfgp.write(cf)
    os.environ['TEFLO_SETTINGS'] = config_file
    config = Config()
    config.load()
    return config
Beispiel #3
0
def config():
    config_file = '../assets/teflo.cfg'
    cfgp = ConfigParser()
    cfgp.read(config_file)
    if cfgp.get('feature_toggles:host','plugin_implementation') != 'False':
        cfgp.set('feature_toggles:host','plugin_implementation','False')
        with open(config_file, 'w') as cf:
            cfgp.write(cf)
    if cfgp.get('task_concurrency','provision') != 'False':
        cfgp.set('task_concurrency','provision','False')
        with open(config_file, 'w') as cf:
            cfgp.write(cf)
    if cfgp.get('task_concurrency','report') != 'False':
        cfgp.set('task_concurrency','report','False')
        with open(config_file, 'w') as cf:
            cfgp.write(cf)
    config = Config()
    config.load()
    return config
Beispiel #4
0
def report_config():
    config_file = '../assets/teflo.cfg'
    os.environ['TEFLO_SETTINGS'] = config_file
    config = Config()
    config.load()
    return config
Beispiel #5
0
def test_vault_config():
    config_file = '../assets/testvault.cfg'
    config = Config()
    os.environ['TEFLO_SETTINGS'] = config_file
    config.load()
    return config
def cbn_config():
    os.environ['TEFLO_SETTINGS'] = '../assets/teflo.cfg'
    cfg = Config()
    cfg.load()
    return cfg