kojid.conf is standard .ini-like configuration file. Its main section is
[kojid] and contains following options. They are split by function
to section but can occur anywhere in
[kojid] section in config file.
The temporary directory in buildroot. It is advised to not use
/tmpas it is bound in mock and its content would change in random moments during the build process.
noop - it is still allowed in config file for backward compatibility.
Set logging level to one of the standard level names in Python’s logging module. Valid values are: CRITICAL, ERROR, WARNING, INFO, and DEBUG. The default log level is WARNING.
The maximum number of jobs that kojid will handle at a time. This serves as a backup to the capacity check and prevents a tremendous number of low weight jobs from piling up.
Time after which successfully finished task’s buildroot is deleted (2 minutes in seconds). Some logs and directories are left in place until buildroot_final_cleanup_delay
Time after which buildroot (pre-cleand after
buildroot_basic_cleanup_delay) is deleted completely. (1 day in seconds)
Set the maximum number of times that an individual hub call can be retried.
The minimum amount of free space (in MBs) required for each build root. If this amount of space is not available, no new jobs will be taken.
Turn off SSL verification for https calls. It is strongly advised to not turn off this verification.
The hub returns a special error code when it is placed in offline mode or when the database is unavailable. This setting controls whether calls should be retried in these cases.
Controls the wait time for retrying hub calls when the hub reports as offline. Such calls are only retried if the offline_retry setting is set to True. The value is in seconds.
Space-separated list of builder plugins which should be enabled. By default no plugins are used. For list of available plugins check this page. Both spellings plugin/plugins are allowed in config, but don’t mix them as order is not binding.
Colon-separated list of directories to check for builder plugins. They are not used by default, use
pluginsto enable them.
If there is an unsuccessful call to hub, this is how many seconds to wait before trying new call.
The URL for the koji xmlrpc server.
The number of seconds to sleep between checking for new tasks.
The URL where the main Koji volume can be accessed. The builder uses this url for most file access.
The location where the main Koji volume is mounted. This mount is mainly used during createrepo tasks, and should be read-only.
Enables faster uploading (bypassing XMLRPC overhead). Changing it makes sense only in weird combination of very old hub and newer builders.
The directory root for temporary storage on builder.
- allowed_scms=scm.example.com:/cvs/example git.example.org:/example svn.example.org:/users/*:no
Controls which source control systems the builder will accept. It is a space-separated list of entries in one of the following forms:
Incorrectly-formatted tuples will be ignored.
use_commonis not present, kojid will attempt to checkout a
common/directory from the repository. If
use_commonis set to
0, it will not attempt to checkout a
source_cmdis a shell command (args separated with commas instead of spaces) to run before building the srpm. It is generally used to retrieve source files from a remote location. If no
make sourcesis run by default.
The second form (
!hostname:path) is used to explicitly block a host:path pattern. In particular, it provides the option to block specific subtrees of a host, but allow from it otherwise. This explicit block syntax was added in version 1.13.0.
If set to
True, failing subtask will not automatically cancel other siblings.
If set to
--skip-statto all createrepo commands.
Recycle old repodata (if they exist) in createrepo.
Failed tasks leave buildroot content on disk for debugging purposes. They are removed after 4 hours by default. This value is specified in seconds.
Space-separated list of globs (
fnmatch) for architectures which will not be converted to canonical archs when choosing builder.
If set to
Trueadditional logs with timestamps will get created and uploaded to hub. It could be useful for debugging purposes, but creates twice as many log files.
- maven_repo_ignore=’*.md5 *.sha1 maven-metadata*.xml _maven.repositories resolver-status.properties *.lastUpdated’
Space-separated globs of repo files which should be ignored when gathering maven result artifacts.
Install timeout in seconds for image build. Default value is 0, which means using the number in
/etc/oz/oz.cfg. Supported since oz-0.16.0.
createrepocommand. There is generally no reason to not use createrepo_c in modern depolyments. It is disabled by default only to be backward-compatible. This default would change in future.
[Added in 1.17.0]
This delay works around a deficiency in task scheduling. The default delay is 300 seconds. It is unlikely that admins will need to adjust this setting.
Despite the name, this does not introduce any new delay compared to the old behavior. The setting controls how long a host will wait before taking a task in a given channel-arch “bin” when that host has an available capacity lower than the median for that bin. Previously, such hosts could wait forever.
This value is used for waiting on all xmlrpc calls to hub. By default there is no timeout set.
Image builds with
raw-xztype will use this setting when compressing the image. Default value is compromise between speed and resource usage. Only one option (not space-separated) is allowed here for now.
The distribution to use in rpm headers. Value is propagated via macros to rpmbuild.
The packager to use in rpm headers. Value is propagated via macros to rpmbuild.
Originally, when building an SRPM from source control, Koji expected the contents to be flattened (e.g. the spec and sources files directly in the checkout directory). When this option is enabled (the default), Koji will also accept these contents in separate
The vendor to use in rpm headers. Value is propagated via macros to rpmbuild.
The directory root for mock.
The _host string to use in mock.
The user to run as when performing builds. Note, that user must exist on the build host and must have permission to use mock.
Timeout for build duration (24 hours). Propagated to mock, not controlled by koji directly.
Address of proxy server which will be passed via mock to yum.
Space-separated list of addresses for sending logs.
- from_addr=Koji Build System <email@example.com>
The From address used when sending email notifications.
The mail host to use for sending email notifications.
Credentials cache used for krbV login.
The format of the principal used by the build hosts. The %s will be replaced by the FQDN of the host.
Location of the keytab.
noop, obsoleted, will be removed soon.
This specifies the CA (or CA bundle) that the builder should use to verify the ssl connection to the hub. If the default value of
/etc/kojid/serverca.crtexists, then that file is used. Otherwise the default system bundle is used.
Insecure Authentication Options¶
These options are only intended for simple development environments and should never be used in production. Please use Kerberos or SSL authentication instead.
Username for authentication
Clear-text password (I’ve told you.)