Ansible role that will set up CentOS 6 and 7 virtuals on top of FreeBSD bhyve with ZFS for zvols. Adding support for UEFI and *BSD
Tested on FreeBSD 11, bhyve. Requires grub-bhyve
Many..
See requirements. Still building those roles.
This is a big fat todo on my side, but this should work:
- hosts: all
remote_user: root
roles:
- role: bvansomeren.bhyve-guest
bhyve_vms: "{{ vms }}"
With the following variables:
default_nameservers:
- 8.8.8.8
- 8.8.4.4
default_support_user:
username: "blah blah"
crypted_password: $6$<stuff>
sshkeys:
- "ssh-rsa public key string here"
vms:
- name: vm1
vcpu: 4
memory: 2048
swap: 1024
root: 32768
kickstart_ip: 10.0.1.186
kickstart_gw: 10.0.1.1
kickstart_nm: 255.255.255.0
kickstart_dns: 8.8.8.8
tap: tap1
interfaces:
- device: eth0
ip: 10.1.1.1
netmask: 255.255.255.0
public_gateway: 10.1.1.254
nameservers: "{{ default_nameservers }}"
- device: eth1
ip: 172.16.1.1
netmask: 255.255.255.0
- device: eth2
ip: 172.17.1.1
netmask: 255.255.255.0
user: "{{ default_support_user }}"
crypted_rootpassword: $6$<stuff>
os: "{{ bhyve_guest_centos6 }}"
BSD
An optional section for the role authors to include contact information, or a website (HTML is not allowed).