Starting a poudboot rc service for building when the poudriere vm launches.

This commit is contained in:
Tom Alexander
2022-12-10 18:42:02 -05:00
parent 60c4d66f1c
commit 9be646f943
4 changed files with 78 additions and 5 deletions

View File

@@ -66,17 +66,33 @@
# - src: poudriere.d
# dest: /usr/local/etc/
- name: Install scripts
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0755
owner: root
group: wheel
loop:
- src: poudboot.bash
dest: /usr/local/bin/poudboot
- name: Get ports tree list
command: poudriere ports -ln
register: ports_tree_list
changed_when: false
check_mode: no
# - name: Fetch a ports tree
# command: poudriere ports -c
# args:
# creates: /usr/local/poudriere/ports/default
- name: Configure the ports tree
command: poudriere ports -c -m null -M /usr/local/portshaker/trees/main -p default
when: '"default" not in ports_tree_list.stdout_lines'
- name: Install rc script
copy:
src: "files/{{ item.src }}"
dest: "/usr/local/etc/rc.d/{{ item.dest|default(item.src) }}"
owner: root
group: wheel
mode: 0755
loop:
- src: poudboot