# Server Specific Configurations
server = {
    'port': '8082',
    'host': '0.0.0.0'
}

# Pecan Application Configurations
app = {
    'root': 'joulupukki.worker.controllers.root.RootController',
    'modules': ['joulupukki.worker'],
    'static_root': '%(confdir)s/public',
    'template_path': '%(confdir)s/joulupukki/templates',
    'debug': True,
    'errors': {
        404: '/error/404',
        '__force_dict__': True
    }
}

logging = {
#    'root': {'level': 'INFO', 'handlers': ['console']},
    'root': {'level': 'DEBUG', 'handlers': ['console']},
    'loggers': {
        'joulupukki': {'level': 'DEBUG', 'handlers': ['console']},
        'pecan.commands.serve': {'level': 'DEBUG', 'handlers': ['console']},
        'py.warnings': {'handlers': ['console']},
        '__force_dict__': True
    },
    'handlers': {
        'console': {
            'level': 'DEBUG',
            'class': 'logging.StreamHandler',
            'formatter': 'color'
        }
    },
    'formatters': {
        'simple': {
            'format': ('%(asctime)s %(levelname)-5.5s [%(name)s] '
                       '%(message)s')
        },
        'color': {
            '()': 'pecan.log.ColorFormatter',
            'format': ('%(asctime)s [%(padded_color_levelname)s] [%(name)s] '
                       '%(message)s'),
        '__force_dict__': True
        }
    }
}

# Custom Configurations must be in Python dictionary format::
#
# foo = {'bar':'baz'}
workspace_path = '%(confdir)s/../output'

rabbit_server = "127.0.0.1"
rabbit_port = 5672
rabbit_db = "joulupukki"
rabbit_user = "guest"
rabbit_password = "guest"
rabbit_vhost = "/"
mongo_server = "127.0.0.1"
mongo_port = 27017
mongo_db = "joulupukki"

distros = (
    ("ubuntu_10.04", "ubuntu:10.04", "deb", "docker"),
    ("ubuntu_12.04", "ubuntu:12.04", "deb", "docker"),
    ("ubuntu_14.04", "ubuntu:14.04", "deb", "docker"),
    ("ubuntu_14.10", "ubuntu:14.10", "deb", "docker"),
    ("ubuntu_15.04", "ubuntu:15.04", "deb", "docker"),
    ("debian_7", "debian:7", "deb", "docker"),
    ("debian_8", "debian:8", "deb", "docker"),
    ("centos_6", "centos:6", "rpm", "docker"),
    ("centos_7", "centos:7", "rpm", "docker"),
    ("fedora_20", "fedora:20", "rpm", "docker"),
    ("fedora_21", "fedora:21", "rpm", "docker"),
    ("win32", "ubuntu:14.10", "win32", "docker"),
)
docker_version = "1.14"
ccache_path = '%(confdir)s/ccache'

supported_build_type = ['docker', 'ios']

docker_cpuset = 1
thread_count = 5
#
# All configurations are accessible at::
# pecan.conf
