Set up poudriere to build pkgbase.
This commit is contained in:
@@ -92,6 +92,16 @@
|
||||
mode: 0600
|
||||
loop: "{{ poudriere_builds }}"
|
||||
|
||||
- name: Install src.conf
|
||||
when: item.srcconf is defined
|
||||
copy:
|
||||
src: "files/{{ item.srcconf }}"
|
||||
dest: "/usr/local/etc/poudriere.d/{{ item.jail }}-src.conf"
|
||||
owner: root
|
||||
group: wheel
|
||||
mode: 0600
|
||||
loop: "{{ poudriere_builds }}"
|
||||
|
||||
- name: Install rc script
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
@@ -121,7 +131,7 @@
|
||||
- name: Create the jails
|
||||
when: item.version != "CURRENT"
|
||||
command: |-
|
||||
poudriere jail {{poudriere_perf_flags}} -c -j {{ item.jail }} -v {{ item.version }}
|
||||
poudriere jail {{poudriere_perf_flags}} -c -j {{ item.jail }} -v {{ item.version }} -B -b
|
||||
args:
|
||||
creates: "/usr/local/poudriere/jails/{{ item.jail }}"
|
||||
loop: "{{ poudriere_builds }}"
|
||||
@@ -129,8 +139,10 @@
|
||||
- name: Create the jails
|
||||
when: item.version == "CURRENT"
|
||||
# -D clones the entire history instead of just the most recent commit
|
||||
# -B to build the pkgbase packages
|
||||
# -b to build the jail OS from source
|
||||
command: |-
|
||||
poudriere jail {{poudriere_perf_flags}} -c -j {{ item.jail }} -v {{ item.branch|default("main") }} -a amd64 -m git -D -U https://git.FreeBSD.org/src.git -K {{ item.kernel|default("GENERIC") }}
|
||||
echo poudriere jail {{poudriere_perf_flags}} -c -j {{ item.jail }} -v {{ item.branch|default("main") }} -a amd64 -m git -D -U https://git.FreeBSD.org/src.git -K {{ item.kernel|default("GENERIC-NODEBUG") }} -B -b
|
||||
args:
|
||||
creates: "/usr/local/poudriere/jails/{{ item.jail }}"
|
||||
loop: "{{ poudriere_builds }}"
|
||||
|
||||
Reference in New Issue
Block a user