|
Karanbir Singh |
517908 |
# mock defaults
|
|
Karanbir Singh |
517908 |
# vim:tw=0:ts=4:sw=4:et:
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# This config file is for site-specific default values that apply across all
|
|
Karanbir Singh |
517908 |
# configurations. Options specified in this config file can be overridden in
|
|
Karanbir Singh |
517908 |
# the individual mock config files.
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# The site-defaults.cfg delivered by default has NO options set. Only set
|
|
Karanbir Singh |
517908 |
# options here if you want to override the defaults.
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# Entries in this file follow the same format as other mock config files.
|
|
Karanbir Singh |
517908 |
# config_opts['foo'] = bar
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
#############################################################################
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# Things that we recommend you set in site-defaults.cfg:
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# config_opts['basedir'] = '/var/lib/mock/'
|
|
Karanbir Singh |
517908 |
# config_opts['cache_topdir'] = '/var/cache/mock'
|
|
Karanbir Singh |
517908 |
# Note: the path pointed to by basedir and cache_topdir must be owned
|
|
Karanbir Singh |
517908 |
# by group 'mock' and must have mode: g+rws
|
|
Karanbir Singh |
517908 |
# config_opts['rpmbuild_timeout'] = 0
|
|
Karanbir Singh |
517908 |
# config_opts['use_host_resolv'] = True
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
# You can configure log format to pull from logging.ini formats of these names:
|
|
Karanbir Singh |
517908 |
# config_opts['build_log_fmt_name'] = "unadorned"
|
|
Karanbir Singh |
517908 |
# config_opts['root_log_fmt_name'] = "detailed"
|
|
Karanbir Singh |
517908 |
# config_opts['state_log_fmt_name'] = "state"
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# mock will normally set up a minimal chroot /dev.
|
|
Karanbir Singh |
517908 |
# If you want to use a pre-configured /dev, disable this and use the bind-mount
|
|
Karanbir Singh |
517908 |
# plugin to mount your special /dev
|
|
Karanbir Singh |
517908 |
# config_opts['internal_dev_setup'] = True
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# internal_setarch defaults to 'True' if the python 'ctypes' package is
|
|
Karanbir Singh |
517908 |
# available. It is in the python std lib on >= python 2.5. On older versions,
|
|
Karanbir Singh |
517908 |
# it is available as an addon. On systems w/o ctypes, it will default to 'False'
|
|
Karanbir Singh |
517908 |
# config_opts['internal_setarch'] = False
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# the cleanup_on_* options allow you to automatically clean and remove the
|
|
Karanbir Singh |
517908 |
# mock build directory, but only take effect if --resultdir is used.
|
|
Karanbir Singh |
517908 |
# config_opts provides fine-grained control. cmdline only has big hammer
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# config_opts['cleanup_on_success'] = 1
|
|
Karanbir Singh |
517908 |
# config_opts['cleanup_on_failure'] = 1
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
# if you want mock to automatically run createrepo on the rpms in your
|
|
Karanbir Singh |
517908 |
# resultdir.
|
|
Karanbir Singh |
517908 |
# config_opts['createrepo_on_rpms'] = False
|
|
Karanbir Singh |
517908 |
# config_opts['createrepo_command'] = '/usr/bin/createrepo -d -q -x *.src.rpm'
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
# if you want mock to backup the contents of a result dir before clean
|
|
Karanbir Singh |
517908 |
# config_opts['backup_on_clean'] = False
|
|
Karanbir Singh |
517908 |
# config_opts('backup_base_dir'] = config_opts['basedir'] + "backup"
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
#############################################################################
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# plugin related. Below are the defaults. Change to suit your site
|
|
Karanbir Singh |
517908 |
# policy. site-defaults.cfg is a good place to do this.
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# NOTE: Some of the caching options can theoretically affect build
|
|
Karanbir Singh |
517908 |
# reproducability. Change with care.
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['package_state_enable'] = True
|
|
Karanbir Singh |
517908 |
config_opts['plugin_conf']['ccache_enable'] = False
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '4G'
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['ccache_opts']['compress'] = None
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['ccache_opts']['dir'] = "%(cache_topdir)s/%(root)s/ccache/"
|
|
Karanbir Singh |
517908 |
config_opts['plugin_conf']['yum_cache_enable'] = False
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['yum_cache_opts']['max_age_days'] = 30
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['yum_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/yum_cache/"
|
|
Karanbir Singh |
517908 |
config_opts['plugin_conf']['root_cache_enable'] = False
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['root_cache_opts']['max_age_days'] = 15
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['root_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/root_cache/"
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "pigz"
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['root_cache_opts']['extension'] = ".gz"
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['root_cache_opts']['exclude_dirs'] = ["./proc", "./sys", "./dev",
|
|
Karanbir Singh |
517908 |
# "./tmp/ccache", "./var/cache/yum" ]
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# bind mount plugin is enabled by default but has no configured directories to
|
|
Karanbir Singh |
517908 |
# mount
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['bind_mount_enable'] = True
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/host/path', '/bind/mount/path/in/chroot/' ))
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['tmpfs_enable'] = False
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['tmpfs_opts']['required_ram_mb'] = 1024
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '512m'
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['chroot_scan_enable'] = False
|
|
Karanbir Singh |
517908 |
# config_opts['plugin_conf']['chroot_scan_opts'] = [ "core(\.\d+)?", "\.log$",]
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
#############################################################################
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# environment for chroot
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# config_opts['environment']['TERM'] = 'vt100'
|
|
Karanbir Singh |
517908 |
# config_opts['environment']['SHELL'] = '/bin/bash'
|
|
Karanbir Singh |
517908 |
# config_opts['environment']['HOME'] = '/builddir'
|
|
Karanbir Singh |
517908 |
# config_opts['environment']['HOSTNAME'] = 'mock'
|
|
Karanbir Singh |
517908 |
# config_opts['environment']['PATH'] = '/usr/bin:/bin:/usr/sbin:/sbin'
|
|
Karanbir Singh |
517908 |
# config_opts['environment']['PROMPT_COMMAND'] = 'echo -n "<mock-chroot>"'
|
|
Karanbir Singh |
517908 |
# config_opts['environment']['LANG'] = os.environ.setdefault('LANG', 'en_US.UTF-8')
|
|
Karanbir Singh |
517908 |
# config_opts['environment']['TZ'] = os.environ.setdefault('TZ', 'EST5EDT')
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
#############################################################################
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# Things that you can change, but we dont recommend it:
|
|
Karanbir Singh |
517908 |
# config_opts['chroothome'] = '/builddir'
|
|
Karanbir Singh |
517908 |
# config_opts['clean'] = True
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
#############################################################################
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# Things that must be adjusted if SCM integration is used:
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# config_opts['scm'] = True
|
|
Karanbir Singh |
517908 |
# config_opts['scm_opts']['method'] = 'git'
|
|
Karanbir Singh |
517908 |
# config_opts['scm_opts']['cvs_get'] = 'cvs -d /srv/cvs co SCM_BRN SCM_PKG'
|
|
Karanbir Singh |
517908 |
# config_opts['scm_opts']['git_get'] = 'git clone SCM_BRN git://localhost/SCM_PKG.git SCM_PKG'
|
|
Karanbir Singh |
517908 |
# config_opts['scm_opts']['svn_get'] = 'svn co file:///srv/svn/SCM_PKG/SCM_BRN SCM_PKG'
|
|
Karanbir Singh |
517908 |
# config_opts['scm_opts']['spec'] = 'SCM_PKG.spec'
|
|
Karanbir Singh |
517908 |
# config_opts['scm_opts']['ext_src_dir'] = '/dev/null'
|
|
Karanbir Singh |
517908 |
# config_opts['scm_opts']['write_tar'] = True
|
|
Karanbir Singh |
517908 |
# config_opts['scm_opts']['git_timestamps'] = True
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
# These options are also recognized but usually defined in cmd line
|
|
Karanbir Singh |
517908 |
# with --scm-option package=<pkg> --scm-option branch=<branch>
|
|
Karanbir Singh |
517908 |
# config_opts['scm_opts']['package'] = 'mypkg'
|
|
Karanbir Singh |
517908 |
# config_opts['scm_opts']['branch'] = 'master'
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
#############################################################################
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# Things that are best suited for individual chroot config files:
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# MUST SET (in individual chroot cfg file):
|
|
Karanbir Singh |
517908 |
# config_opts['root'] = 'name-of-yum-build-dir'
|
|
Karanbir Singh |
517908 |
# config_opts['target_arch'] = 'i386'
|
|
Karanbir Singh |
517908 |
# config_opts['yum.conf'] = ''
|
|
Karanbir Singh |
517908 |
# config_opts['yum_common_opts'] = []
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# CAN SET, defaults usually work ok:
|
|
Karanbir Singh |
517908 |
# config_opts['chroot_setup_cmd'] = 'install buildsys-build'
|
|
Karanbir Singh |
517908 |
# config_opts['log_config_file'] = 'logging.ini'
|
|
Karanbir Singh |
517908 |
# config_opts['more_buildreqs']['srpm_name-version-release'] = 'dependencies'
|
|
Karanbir Singh |
517908 |
# config_opts['macros']['%Add_your_macro_name_here'] = "add macro value here"
|
|
Karanbir Singh |
517908 |
# config_opts['files']['path/name/no/leading/slash'] = "put file contents here."
|
|
Karanbir Singh |
517908 |
# config_opts['chrootuid'] = os.getuid()
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
# If you change chrootgid, you must also change "mock" to the correct group
|
|
Karanbir Singh |
517908 |
# name in this line of the mock PAM config:
|
|
Karanbir Singh |
517908 |
# auth sufficient pam_succeed_if.so user ingroup mock use_uid quiet
|
|
Karanbir Singh |
517908 |
# config_opts['chrootgid'] = grp.getgrnam("mock")[2]
|
|
Karanbir Singh |
517908 |
|
|
Karanbir Singh |
517908 |
# config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s -d %(home)s -n %(user)s' # Fedora/RedHat
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# Security related
|
|
Karanbir Singh |
517908 |
# config_opts['no_root_shells'] = False
|
|
Karanbir Singh |
517908 |
#
|
|
Karanbir Singh |
517908 |
# Proxy settings (https_proxy, ftp_proxy, and no_proxy can also be set)
|
|
Karanbir Singh |
517908 |
# config_opts['http_proxy'] = 'http://localhost:3128'
|