<commit_before>import os

OS_FAMILY = os.environ.get('OS_FAMILY', "centos")
PUPPET_GEN = os.environ.get('PUPPET_GEN', "3")

DEFAULT_IMAGES = {
    'centos': '/var/lib/libvirt/images/centos63-cobbler-base.qcow2',
    'ubuntu': '/var/lib/libvirt/images/ubuntu-12.04.1-server-amd64-base.qcow2',
    }

BASE_IMAGE = os.environ.get('BASE_IMAGE', DEFAULT_IMAGES.get(OS_FAMILY))

PUPPET_VERSIONS = {
    'centos': {
        "2": '2.7.20-1.el6',
        "3": '3.0.1-1.el6',
        },
    'ubuntu': {
        "2": '2.7.19-1puppetlabs1',
        "3": '3.1.0-1puppetlabs1'
    },
    }

PUPPET_VERSION = PUPPET_VERSIONS.get(OS_FAMILY).get(PUPPET_GEN)

PUPPET_CLIENT_PACKAGES = {
    'centos': {
        "2": 'puppet-2.7.20-1.el6',
        "3": 'puppet-3.0.1-1.el6',
        },
    'ubuntu': {
        "2": 'puppet=2.7.19-1puppetlabs1 puppet-common=2.7.19-1puppetlabs1',
        "3": 'puppet=3.1.0-1puppetlabs1 puppet-common=3.1.0-1puppetlabs1'
    },
    }

PUPPET_CLIENT_PACKAGE = PUPPET_CLIENT_PACKAGES.get(OS_FAMILY).get(PUPPET_GEN)

ERROR_PREFIXES = {
    "2": "err: ",
    "3": "Error: ",
    }

ERROR_PREFIX = ERROR_PREFIXES.get(PUPPET_GEN)

WARNING_PREFIXES = {
    "2": "warning: ",
    "3": "Warning: ",
    }

WARNING_PREFIX = WARNING_PREFIXES.get(PUPPET_GEN)

PUPPET_MASTER_SERVICE = 'thin'

ADMIN_USERNAME = 'admin'
ADMIN_PASSWORD = '<PASSWORD>'
ADMIN_TENANT_ESSEX = 'openstack'
ADMIN_TENANT_FOLSOM = 'admin'

CIRROS_IMAGE = 'http://srv08-srt.srt.mirantis.net/cirros-0.3.0-x86_64-disk.img'
CONTROLLERS = int(os.environ.get('CONTROLLERS', 3))
COMPUTES = int(os.environ.get('COMPUTES', 3))
STORAGES = int(os.environ.get('STORAGES', 3))
PROXIES = int(os.environ.get('PROXIES', 2))


EMPTY_SNAPSHOT = os.environ.get('EMPTY_SNAPSHOT', 'empty')
OPENSTACK_SNAPSHOT = os.environ.get('OPENSTACK_SNAPSHOT', 'openstack')

INTERFACE_ORDER = ('public', 'internal', 'private')

INTERFACES = {
    'public': 'eth0',
    'internal': 'eth1',
    'private': 'eth2',
    }

FORWARDING = {
    'public': 'nat',
    'internal': None,
    'private': None,
    }

DHCP = {
    'public': True,
    'internal': False,
    'private': False,
    }

DEFAULT_POOLS = {
    'centos': {
        'public': '172.18.95.0/24,172.18.91.0/24:27',
        'private': '10.108.0.0/16:24',
        'internal': '10.108.0.0/16:24',
        },
    'ubuntu': {
        'public': '172.18.94.0/24,172.18.90.0/24:27',
        'private': '10.107.0.0/16:24',
        'internal': '10.107.0.0/16:24',
        },
    }

POOLS = {
    'public': os.environ.get('PUBLIC_POOL',
                             DEFAULT_POOLS.get(OS_FAMILY).get('public')).split(':'),
    'private': os.environ.get('PRIVATE_POOL',
                              DEFAULT_POOLS.get(OS_FAMILY).get('private')).split(':'),
    'internal': os.environ.get('INTERNAL_POOL',
                               DEFAULT_POOLS.get(OS_FAMILY).get('internal')).split(':')
}

TEST_REPO = os.environ.get('TEST_REPO', 'false') == 'true'
EXIST_TAR = os.environ.get('EXIST_TAR', None)
CREATE_SNAPSHOTS = os.environ.get('CREATE_SNAPSHOTS', 'true') == 'true'
CLEAN = os.environ.get('CLEAN', 'true') == 'true'
ISO = os.environ.get('ISO', '/var/lib/libvirt/images/fuel-centos-6.3-x86_64.iso')
USE_ISO= os.environ.get('USE_ISO', 'true') == 'true'
PARENT_PROXY = os.environ.get('PARENT_PROXY', "172.18.3.14")
PROFILES_COBBLER_COMMON = {
    'centos': 'centos63_x86_64',
    'ubuntu': 'ubuntu_1204_x86_64'<commit_msg>Set none for default proxy<commit_after>import os

OS_FAMILY = os.environ.get('OS_FAMILY', "centos")
PUPPET_GEN = os.environ.get('PUPPET_GEN', "3")

DEFAULT_IMAGES = {
    'centos': '/var/lib/libvirt/images/centos63-cobbler-base.qcow2',
    'ubuntu': '/var/lib/libvirt/images/ubuntu-12.04.1-server-amd64-base.qcow2',
    }

BASE_IMAGE = os.environ.get('BASE_IMAGE', DEFAULT_IMAGES.get(OS_FAMILY))

PUPPET_VERSIONS = {
    'centos': {
        "2": '2.7.20-1.el6',
        "3": '3.0.1-1.el6',
        },
    'ubuntu': {
        "2": '2.7.19-1puppetlabs1',
        "3": '3.1.0-1puppetlabs1'
    },
    }

PUPPET_VERSION = PUPPET_VERSIONS.get(OS_FAMILY).get(PUPPET_GEN)

PUPPET_CLIENT_PACKAGES = {
    'centos': {
        "2": 'puppet-2.7.20-1.el6',
        "3": 'puppet-3.0.1-1.el6',
        },
    'ubuntu': {
        "2": 'puppet=2.7.19-1puppetlabs1 puppet-common=2.7.19-1puppetlabs1',
        "3": 'puppet=3.1.0-1puppetlabs1 puppet-common=3.1.0-1puppetlabs1'
    },
    }

PUPPET_CLIENT_PACKAGE = PUPPET_CLIENT_PACKAGES.get(OS_FAMILY).get(PUPPET_GEN)

ERROR_PREFIXES = {
    "2": "err: ",
    "3": "Error: ",
    }

ERROR_PREFIX = ERROR_PREFIXES.get(PUPPET_GEN)

WARNING_PREFIXES = {
    "2": "warning: ",
    "3": "Warning: ",
    }

WARNING_PREFIX = WARNING_PREFIXES.get(PUPPET_GEN)

PUPPET_MASTER_SERVICE = 'thin'

ADMIN_USERNAME = 'admin'
ADMIN_PASSWORD = '<PASSWORD>'
ADMIN_TENANT_ESSEX = 'openstack'
ADMIN_TENANT_FOLSOM = 'admin'

CIRROS_IMAGE = 'http://srv08-srt.srt.mirantis.net/cirros-0.3.0-x86_64-disk.img'
CONTROLLERS = int(os.environ.get('CONTROLLERS', 3))
COMPUTES = int(os.environ.get('COMPUTES', 3))
STORAGES = int(os.environ.get('STORAGES', 3))
PROXIES = int(os.environ.get('PROXIES', 2))


EMPTY_SNAPSHOT = os.environ.get('EMPTY_SNAPSHOT', 'empty')
OPENSTACK_SNAPSHOT = os.environ.get('OPENSTACK_SNAPSHOT', 'openstack')

INTERFACE_ORDER = ('public', 'internal', 'private')

INTERFACES = {
    'public': 'eth0',
    'internal': 'eth1',
    'private': 'eth2',
    }

FORWARDING = {
    'public': 'nat',
    'internal': None,
    'private': None,
    }

DHCP = {
    'public': True,
    'internal': False,
    'private': False,
    }

DEFAULT_POOLS = {
    'centos': {
        'public': '172.18.95.0/24,172.18.91.0/24:27',
        'private': '10.108.0.0/16:24',
        'internal': '10.108.0.0/16:24',
        },
    'ubuntu': {
        'public': '172.18.94.0/24,172.18.90.0/24:27',
        'private': '10.107.0.0/16:24',
        'internal': '10.107.0.0/16:24',
        },
    }

POOLS = {
    'public': os.environ.get('PUBLIC_POOL',
                             DEFAULT_POOLS.get(OS_FAMILY).get('public')).split(':'),
    'private': os.environ.get('PRIVATE_POOL',
                              DEFAULT_POOLS.get(OS_FAMILY).get('private')).split(':'),
    'internal': os.environ.get('INTERNAL_POOL',
                               DEFAULT_POOLS.get(OS_FAMILY).get('internal')).split(':')
}

TEST_REPO = os.environ.get('TEST_REPO', 'false') == 'true'
EXIST_TAR = os.environ.get('EXIST_TAR', None)
CREATE_SNAPSHOTS = os.environ.get('CREATE_SNAPSHOTS', 'true') == 'true'
CLEAN = os.environ.get('CLEAN', 'true') == 'true'
ISO = os.environ.get('ISO', '/var/lib/libvirt/images/fuel-centos-6.3-x86_64.iso')
USE_ISO= os.environ.get('USE_ISO', 'true') == 'true'
PARENT_PROXY = os.environ.get('PARENT_PROXY', '')
PROFILES_COBBLER_COMMON = {
    'centos': 'centos63_x86_64',
    'ubuntu': 'ubuntu_1204_x86_64'
{'fraction_non_alphanumeric': 0.1986221049545588, 'fraction_numerical': 0.06068601583113457, 'mean_word_length': 3.1552984165651643, 'pattern_counts': {'":': 24, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 17, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2842860', 'n_tokens_mistral': 3179, 'n_tokens_neox': 3012, 'n_words': 338}