bvansomeren / bvansomeren.bhyve-guest

Creates bhyve guests and kickstarts them

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bvansomeren.bhyve-guest

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

Requirements

Tested on FreeBSD 11, bhyve. Requires grub-bhyve

Role Variables

Many..

Dependencies

See requirements. Still building those roles.

Example Playbook

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 }}"

License

BSD

Author Information

An optional section for the role authors to include contact information, or a website (HTML is not allowed).

About

Creates bhyve guests and kickstarts them


Languages

Language:Shell 100.0%