# use a remote comps.xml file from a git repository
comps_file = {
    'scm': 'git',
    'repo': 'http://git.inferitos.ru/msvsphere/pungi-msvsphere.git',
    'branch': 'i9.3',
    'file': 'comps.xml',
    'command': ''
}

# alternatively, it's possible to use a local groups file
#comps_file = 'comps.xml'

# use a remote variants.xml file from a git repository
variants_file = {
    'scm': 'git',
    'repo': 'http://git.inferitos.ru/msvsphere/pungi-msvsphere.git',
    'branch': 'i9.3',
    'file': 'variants-i686.xml',
    'command': ''
}

# alternatively, it's possible to use a local variants file
#variants_file = 'variants.xml'

# use modulemd-defaults from a git repository
module_defaults_dir = {
    'scm': 'git',
    'repo': 'http://git.inferitos.ru/msvsphere/module-defaults.git',
    'branch': 'i9',
    'dir': '.'
}

gather_backend = 'dnf'

# if set to True, abort the compose if some package has broken dependencies
check_deps = False

gather_method = {
    # Anything that is not AppStream, CRB or Buildroot should use the old depsolver
    "^(?!(AppStream|CRB|Buildroot)).*$": {
        "comps": "deps",
        "json": "deps",
    },
    "^(AppStream|CRB|Devel|HighAvailability|ResilientStorage|NFV|RT|Minimal|Server|Extras|Testing)$": "hybrid",
}

hashed_directories = False
gather_allow_reuse = True
repoclosure_backend = 'dnf'

# extra packages to be added
gather_prepopulate = {
    'scm': 'git',
    'repo': 'http://git.inferitos.ru/msvsphere/pungi-msvsphere',
    'branch': 'i9.3',
    'file': 'prepopulate-i686.json',
    'command': ''
}

greedy_method = "build"

sigkeys = ['8BDA73A4', '8bda73a4']

pkgset_source = 'koji'
pkgset_koji_tag = ['inferit-9_3-init', 'inferit-9_3-extras', 'inferit-9-devel']
# add modules from those tags to compose
pkgset_koji_module_tag = ['inferit-9_3-module-init']
pkgset_allow_reuse = True
koji_profile = 'koji'
runroot_method = "local"
global_runroot_method = "local"
createiso_break_hardlinks = True
iso_hfs_ppc64le_compatible = False

create_optional_isos = False
createiso_use_xorrisofs = True

createiso_skip = [
    ("^(BaseOS|AppStream|CRB|Devel|HighAvailability|ResilientStorage|NFV|RT|Minimal|Server|Extras|Testing)$", {
        # No binary ISOs for BaseOS (but still generate src ISOs) - RCM-41330
        # No binary ISOs for AppStream (but still generate src ISOs) - RCM-40356
        # No binary or src ISOs for CRB
        # No binary or src ISOs for NFV
        # Note: "*" matches only binary architectures.
        "*": True,
        "src":True #RCM-41427 -Disable source iso generation during createiso phase
    }),
]

restricted_volid = True

# CREATEREPO
createrepo_deltas = False
createrepo_database = True
createrepo_c = True
createrepo_checksum = 'sha256'
createrepo_use_xz = True
createrepo_enable_cache = False
createrepo_num_threads = 8
createrepo_num_workers = 4
createrepo_extra_args = [
    '--distro=cpe:/o:ncsd:msvsphere:9,MSVSphere 9',
    '--revision=9.3'
]

# CHECKSUMS
media_checksums = ['sha256']
media_checksum_one_file = True
create_jigdo = False

# BUILDINSTALL
# deprecated!
# bootable = True

buildinstall_method = "lorax"

lorax_options = [
    ("^.*$", {
        "*": {
            "noupgrade": False,
            "rootfs_size": 3,
            "version": "9.3"
        }
    })
]

# LOOKASIDE
variant_as_lookaside = [
    ('AppStream', 'BaseOS'),
    ('CRB', 'BaseOS'),
    ('CRB', 'AppStream'),
    ('HighAvailability', 'BaseOS'),
    ('HighAvailability', 'AppStream'),
    ("ResilientStorage", "BaseOS"),
    ("ResilientStorage", "AppStream"),
    ("RT", "BaseOS"),
    ("RT", "AppStream"),
    ("NFV", "BaseOS"),
    ("NFV", "AppStream"),
    ("Devel", "BaseOS"),
    ("Devel", "AppStream"),
    ("Devel", "Extras"),
    ("Extras", "BaseOS"),
    ("Extras", "AppStream"),
    ("Testing", "BaseOS"),
    ("Testing", "AppStream")
]