[paths]
; comma-delimited list of default mountpoints
; They will be mounted during each run. It is suggested, that these
; paths have readonly options and are made writable via extra_mounts
; parameter for individual calls.
; default_mounts = /mnt/archive,/mnt/workdir
{% if env == 'production' %}
default_mounts = /mnt/koji
{% elif env == 'staging' %}
; In staging we also need the production split volume
default_mounts = /mnt/koji,/mnt/fedora_koji_prod/koji,/etc/kojid/secrets
{% endif %}

; comma-delimited list of safe roots.
; Each extra_mount needs to start with some of these prefixes. Other paths are
; not allowed for mounting. Only absolute paths are allowed here, no
; wildcards.
safe_roots = /mnt/koji/compose,/mnt/koji/atomic-cd,/srv/odcs/

; path substitutions is tuple per line, delimited by comma, order is
; important. 
; Path prefixes which can be substituted for other mountpoints.
; Usable for locations symlinked from other mounts.
; path_subs = /mnt/archive/prehistory/,/mnt/prehistoric_disk/archive/prehistory

; mount origins, order is important here, ordered by best catch
; [path0]
; mountpoint = /mnt/archive
; path = archive.org:/vol/archive
; fstype = nfs
; options = ro,hard,intr,nosuid,nodev,noatime,tcp

[path0]
mountpoint = /mnt/koji/compose
path = /mnt/koji/compose
fstype = bind
options = bind

[path1]
mountpoint = /mnt/koji
path = /mnt/koji
fstype = bind
options = bind

[path2]
mountpoint = /srv/odcs
path = /srv/odcs
fstype = bind
options = bind

{% if env == 'staging' %}
; we need to mount the production split volume here.
[path3]
mountpoint = /mnt/fedora_koji_prod/koji
path = /mnt/fedora_koji_prod/koji
fstype = bind
options = ro,bind

; Directory for secrets to be used by certain builds
[path4]
mountpoint = /etc/kojid/secrets
path = /etc/kojid/secrets
fstype = bind
options = ro,bind
{% endif %}
