Move poudriere to inside a VM.

This commit is contained in:
Tom Alexander 2022-12-10 17:55:44 -05:00
parent 8e412456d2
commit 93dab70817
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
5 changed files with 18 additions and 7 deletions

View File

@ -53,7 +53,3 @@ sway_conf_files:
wireguard_directory: odo wireguard_directory: odo
enabled_wireguard: enabled_wireguard:
- wgh - wgh
poudriere_builds:
- jail: current
ports: default
set: framework

View File

@ -0,0 +1,5 @@
os_flavor: "freebsd"
poudriere_builds:
- jail: 13amd64
ports: default
set: framework

View File

@ -0,0 +1,2 @@
[vm]
poudriereodo ansible_user=builder ansible_host=10.213.177.11

View File

@ -1,4 +1,4 @@
- hosts: all:!jail - hosts: all:!jail:!vm
vars: vars:
ansible_become: True ansible_become: True
roles: roles:
@ -37,10 +37,17 @@
# - ansible # - ansible
# - wireguard # - wireguard
# - portshaker # - portshaker
- poudriere # - poudriere
- hosts: nat_dhcp:homeserver_nat_dhcp - hosts: nat_dhcp:homeserver_nat_dhcp
vars: vars:
ansible_become: True ansible_become: True
roles: roles:
- jail_nat_dhcp - jail_nat_dhcp
- hosts: poudriereodo
vars:
ansible_become: True
roles:
- portshaker
- poudriere

View File

@ -26,7 +26,8 @@ elif [ "$target" = "jail_nat_dhcp" ]; then
ansible-playbook -v -i environments/jail playbook.yaml --diff --limit nat_dhcp "${@}" ansible-playbook -v -i environments/jail playbook.yaml --diff --limit nat_dhcp "${@}"
elif [ "$target" = "jail_homeserver_nat_dhcp" ]; then elif [ "$target" = "jail_homeserver_nat_dhcp" ]; then
ansible-playbook -v -i environments/jail playbook.yaml --diff --limit homeserver_nat_dhcp "${@}" ansible-playbook -v -i environments/jail playbook.yaml --diff --limit homeserver_nat_dhcp "${@}"
# elif [ "$target" = "vm_poudriereodo" ]; then
ansible-playbook -v -i environments/vm playbook.yaml --diff --limit poudriereodo "${@}"
else else
die 1 "Unrecognized target" die 1 "Unrecognized target"
fi fi