hughesjr / centos / pungi-centos

Forked from centos/pungi-centos 2 years ago
Clone
Brian Stinson b8d9e7
from multilib import *
Brian Stinson 2f13b1
from stream-include-excludes import *
Brian Stinson 819d52
#from stream-images import *
Brian Stinson b8d9e7
a3aeec
# PRODUCT INFO
680c4e
release_name = "CentOS Stream"
Brian Stinson a39fdc
release_short = "CentOS-Stream"
Brian Stinson a39fdc
release_version = "8"
Brian Stinson a39fdc
version = "8"
Brian Stinson b8d9e7
Brian Stinson b8d9e7
# GENERAL SETTINGS
Brian Stinson b8d9e7
comps_file = {
d007f5
    "scm": "git",
d007f5
    "repo": "https://git.centos.org/centos/comps.git",
d007f5
    "branch": "master",
d007f5
    "file": "comps-centos-8-stream.xml",
Brian Stinson b8d9e7
}
Brian Stinson b8d9e7
Brian Stinson b8d9e7
link_type = 'hardlink-or-copy'
a3aeec
variants_file = 'variants-stream.xml'
a3aeec
sigkeys = ['8483C65D']
a3aeec
tree_arches = ['aarch64', 'i386', 'ppc64le', 'x86_64']
Brian Stinson b8d9e7
Brian Stinson b8d9e7
module_defaults_dir = {
d007f5
    "scm": "git",
d007f5
    "repo": "https://git.centos.org/centos/centos-module-defaults.git",
d007f5
    "branch": "c8s",
d007f5
    "dir": ".",
Brian Stinson b8d9e7
}
Brian Stinson b8d9e7
Brian Stinson b8d9e7
multilib = [
d007f5
    ("^.*$", {
d007f5
        "x86_64": ["devel", "runtime"]
Brian Stinson b8d9e7
    }),
Brian Stinson b8d9e7
]
Brian Stinson b8d9e7
680c4e
# RUNROOT settings
Brian Stinson b8d9e7
runroot_channel = 'image'
Brian Stinson b8d9e7
runroot_tag = 'dist-c8-build'
Brian Stinson b8d9e7
runroot_method = 'koji'
Brian Stinson b8d9e7
Brian Stinson b8d9e7
# PKGSET
Brian Stinson b8d9e7
pkgset_source = "koji"
Brian Stinson b8d9e7
koji_profile = "mbox"
Brian Stinson 397193
pkgset_allow_reuse = False
Brian Stinson b8d9e7
Brian Stinson b8d9e7
# PKGSET - KOJI
Brian Stinson b8d9e7
pkgset_koji_tag = "dist-c8-stream-compose"
Brian Stinson b8d9e7
pkgset_koji_inherit = False
Brian Stinson e44849
pkgset_koji_module_tag = "dist-c8-stream-module-compose"
Brian Stinson b8d9e7
Brian Stinson b8d9e7
filter_system_release_packages = False
Brian Stinson b8d9e7
Brian Stinson b8d9e7
# GATHER
a3aeec
gather_backend = "dnf"
a3aeec
check_deps = False
a3aeec
greedy_method = "none"
a3aeec
repoclosure_backend = "dnf"
Brian Stinson 819d52
gather_prepopulate = "centos-stream-packages.json"
Brian Stinson b8d9e7
Brian Stinson b8d9e7
gather_method = {
680c4e
    "^(?!(AppStream|PowerTools|CR)).*$": {
680c4e
        "comps": "deps",
680c4e
    },
680c4e
    "^(AppStream|PowerTools|CR)$": "hybrid",
Brian Stinson b8d9e7
}
Brian Stinson b8d9e7
a3aeec
hashed_directories = False
Brian Stinson b8d9e7
Brian Stinson b8d9e7
# CREATEREPO
Brian Stinson b8d9e7
createrepo_deltas = False
Brian Stinson b8d9e7
createrepo_database = True
Brian Stinson b8d9e7
createrepo_c = True
Brian Stinson b8d9e7
createrepo_checksum = "sha256"
Brian Stinson b8d9e7
createrepo_use_xz = True
Brian Stinson b8d9e7
createrepo_num_threads = 8
d0e810
createrepo_num_workers = 8
James Antill f81b25
createrepo_extra_args = ['--distro=cpe:/o:centos-stream:centos-stream:8,CentOS Stream 8', '--revision=8-stream']
Brian Stinson b8d9e7
Brian Stinson b8d9e7
# CHECKSUMS
Brian Stinson b8d9e7
media_checksums = ['sha256']
Brian Stinson b8d9e7
media_checksum_one_file = True
Brian Stinson b8d9e7
create_jigdo = False
Brian Stinson b8d9e7
1d6938
# Pull in modulemd for older module versions to fill in gaps in contexts
1d6938
createrepo_extra_modulemd = {
1d6938
    "AppStream": {
1d6938
        "scm": "git",
011e4d
        "repo": "https://git.centos.org/centos/centos-metadata.git",
1d6938
        "dir": "extra-modulemd",
1d6938
    }
1d6938
}
1d6938
Brian Stinson b8d9e7
# BUILDINSTALL
Brian Stinson b8d9e7
bootable = True
Brian Stinson b8d9e7
buildinstall_method = "lorax"
Brian Stinson b8d9e7
Brian Stinson b8d9e7
lorax_options = [
Brian Stinson b8d9e7
    ("^.*$", {
Brian Stinson b8d9e7
        "*": {
Brian Stinson b8d9e7
            "noupgrade": False,
Brian Stinson b8d9e7
            "rootfs_size": 3,
Brian Stinson 29a7b7
            "version": "8-stream"
Brian Stinson b8d9e7
        }
Brian Stinson b8d9e7
    })
Brian Stinson b8d9e7
]
Brian Stinson b8d9e7
d007f5
# Skip buildinstall for AppStream for all architectures
Brian Stinson b8d9e7
buildinstall_skip = [
d007f5
    ("^(AppStream|HighAvailability|ResilientStorage|RT|NFV|PowerTools|CR)$", {
680c4e
        "*": True
a3aeec
    }),
Brian Stinson b8d9e7
]
Brian Stinson b8d9e7
Brian Stinson b8d9e7
image_name_format = {
Brian Stinson 63904d
    "^BaseOS$": "{release_short}-{version}-{arch}-{date}-{disc_type}{disc_num}{suffix}",
Brian Stinson 63904d
    ".*": "{release_short}-{version}-{arch}-{date}-{disc_type}{disc_num}{suffix}",
Brian Stinson b8d9e7
}
Brian Stinson b8d9e7
Brian Stinson 29a7b7
image_volid_formats = [ '{release_short}-{version}-{arch}-{disc_type}', ]
Brian Stinson 29a7b7
Brian Stinson b8d9e7
# CREATEISO
Brian Stinson b8d9e7
create_optional_isos = False
Brian Stinson b8d9e7
Brian Stinson b8d9e7
createiso_skip = [
d007f5
    ("^(BaseOS|AppStream|PowerTools|HighAvailability|CR|RT|ResilientStorage|NFV)$", {
d007f5
        "*": True,
d007f5
        "src":True
Brian Stinson b8d9e7
    }),
Brian Stinson b8d9e7
]
Brian Stinson b8d9e7
Brian Stinson b8d9e7
extra_isos = {
Brian Stinson b8d9e7
    "BaseOS": [{
Brian Stinson b8d9e7
        "include_variants": ["AppStream"],
Brian Stinson 63904d
        "filename": "{release_short}-{version}-{arch}-{date}-{disc_type}{disc_num}{suffix}",
Brian Stinson b8d9e7
        "skip_src": True,
680c4e
    }]
Brian Stinson b8d9e7
}
Brian Stinson b8d9e7
Brian Stinson b8d9e7
restricted_volid = True
Brian Stinson b8d9e7
Brian Stinson b8d9e7
# LOOKASIDE
Brian Stinson b8d9e7
variant_as_lookaside = [
f78e87
    ("AppStream", "BaseOS"),
f78e87
    ("HighAvailability", "BaseOS"),
f78e87
    ("HighAvailability", "AppStream"),
92ed3a
    ("ResilientStorage", "BaseOS"),
92ed3a
    ("ResilientStorage", "AppStream"),
James Antill 1de7be
    ("RT", "BaseOS"),
James Antill 1de7be
    ("RT", "AppStream"),
3f4044
    ("NFV", "BaseOS"),
3f4044
    ("NFV", "AppStream"),
f78e87
    ("PowerTools", "BaseOS"),
f78e87
    ("PowerTools", "AppStream"),
Brian Stinson b8d9e7
]
Brian Stinson b8d9e7
Brian Stinson 43c2ed
extra_files = [
Brian Stinson 4ba66b
    ("^.*$", {
Brian Stinson 43c2ed
        "*": [
Brian Stinson 43c2ed
            {
Brian Stinson 43c2ed
                "scm": "git",
edcea6
                "repo": "https://git.centos.org/rpms/centos-stream-release.git",
edcea6
                "branch": "c8s",
Brian Stinson 43c2ed
                "file": [
edcea6
                    'SOURCES/LICENSE',
Brian Stinson 43c2ed
                    'SOURCES/EULA',
Brian Stinson 43c2ed
                ],
Brian Stinson 43c2ed
                "target": "",
Brian Stinson 43c2ed
            },
680c4e
        ],
Brian Stinson 43c2ed
    }),
Brian Stinson 43c2ed
]
Brian Stinson 43c2ed
Brian Stinson b8d9e7
productimg = False
Brian Stinson b8d9e7
Brian Stinson b8d9e7
translate_paths = [
680c4e
        ("/mnt/koji", "https://koji.mbox.centos.org/pkgs"),
680c4e
        ("/compose", "http://172.22.0.123/compose"),
Brian Stinson b8d9e7
]