# Wrapper config for real raw config file.
# The goal of this wrapper is to ensure that certain config options cannot be
# changed by the submitted raw config.
# This Raw Config wrapper allows overriding certain raw config configuration
# options.

from raw_config import *

koji_profile = 'odcs_production'
link_type = 'symlink'


createrepo_deltas = False

dogpile_cache_backend = "dogpile.cache.dbm"
dogpile_cache_arguments = {
    "filename": "/var/tmp/pungi_cache_file.dbm",
}
dogpile_cache_expiration_time = 14400

buildinstall_use_guestmount = True


# Allow overriding pkgset_koji_builds from ODCS client.
{%- if compose["builds"] %}
pkgset_koji_builds = [
{%- for build in compose["builds"].split(" ") %}
    '{{ build }}',
{%- endfor %}
]
{%- endif %}

# Allow overriding sigkeys from ODCS client.
{%- if compose["sigkeys"] %}
sigkeys = [
{%- for sigkey in compose["sigkeys"].split(" ") %}
        '{{ sigkey }}',
{%- endfor%}
]
{%- endif %}
