Configure Poudriere
The configuration of Poudriere is enabled by default
poudriere_conf: true
Read FreeBSD Porter’s Handbook 10.7.2. Setting Up Poudriere and see the sample
/usr/local/etc/poudriere.conf.sample. Customize the variables poudriere_conf_* and display
the current values
shell> ansible-playbook pb.yml -t poudriere_debug -e poudriere_debug=true
...
TASK [vbotka.freebsd_poudriere : Poudriere Debug] ************************************************
ok: [build.example.com] =>
msg:
...
poudriere_conf: True
...
poudriere_conf_file: /usr/local/etc/poudriere.conf
poudriere_conf_template: poudriere.conf2.j2
poudriere_conf_dir: /usr/local/etc/poudriere.d
poudriere_conf_dirs:
- dir: /usr/ports/distfiles
group: wheel
mode: '0755'
owner: root
poudriere_conf_zpool: zroot
poudriere_conf_no_zfs: no
poudriere_conf_zrootfs: /poudriere
poudriere_conf_freebsd_host: https://download.freebsd.org
poudriere_conf_resolv_conf: /etc/resolv.conf
poudriere_conf_basefs: /usr/local/poudriere
poudriere_conf_svn_host: svn.FreeBSD.org
poudriere_conf_poudriere_data: /usr/local/poudriere/data
poudriere_conf_use_portlint: no
poudriere_conf_use_tmpfs: no
poudriere_conf_distfiles_cache: /usr/ports/distfiles
poudriere_conf_url_base: http://build.example.com
poudriere_conf_check_changed_options: verbose
poudriere_conf_check_changed_deps: yes
poudriere_conf_data:
BASEFS: /usr/local/poudriere
BUILDER_HOSTNAME: build
CHECK_CHANGED_DEPS: 'yes'
CHECK_CHANGED_OPTIONS: verbose
DISTFILES_CACHE: /usr/ports/distfiles
FREEBSD_HOST: https://download.freebsd.org
NOLINUX: 'yes'
NO_ZFS: 'no'
PKG_REPO_SIGNING_KEY: /usr/local/etc/ssl/private/build.example.com-sk.key
POUDRIERE_DATA: /usr/local/poudriere/data
PRESERVE_TIMESTAMP: 'yes'
RESOLV_CONF: /etc/resolv.conf
SVN_HOST: svn.FreeBSD.org
URL_BASE: http://build.example.com
USE_COLORS: 'yes'
USE_PORTLINT: 'no'
USE_TMPFS: 'no'
ZPOOL: zroot
ZROOTFS: /poudriere
...
Configure Poudriere
shell> ansible-playbook pb.yml -t poudriere_conf -e poudriere_conf=true
and look at the configuration
/usr/local/etc/poudriere.conf
# Ansible managed
ZPOOL=zroot
NO_ZFS=no
ZROOTFS=/poudriere
FREEBSD_HOST=https://download.freebsd.org
RESOLV_CONF=/etc/resolv.conf
BASEFS=/usr/local/poudriere
SVN_HOST=svn.FreeBSD.org
POUDRIERE_DATA=/usr/local/poudriere/data
USE_PORTLINT=no
USE_TMPFS=no
DISTFILES_CACHE=/usr/ports/distfiles
PKG_REPO_SIGNING_KEY=/usr/local/etc/ssl/private/build.example.com-sk.key
URL_BASE=http://build.example.com/
CHECK_CHANGED_OPTIONS=verbose
CHECK_CHANGED_DEPS=yes
NOLINUX=yes
USE_COLORS=yes
PRESERVE_TIMESTAMP=yes
BUILDER_HOSTNAME=build
# EOF
See also
Source code conf.yml
Template poudriere.conf.j2
FreeBSD Porter’s Handbook 10.7.2. Setting Up Poudriere