@@ -11,45 +11,49 @@ Pre-installed Libvirt software.
1111Role Variables
1212--------------
1313
14- | Name | Type | Default | Example | Description |
15- | --------------------------| -------| --------------------| ---------------------| -------------------------------------------------------------------|
16- | ` frontend_group ` | ` str ` | ` frontend ` | | Custom name of the Frontend group in the inventory. |
17- | ` infra_group ` | ` str ` | ` infra ` | | Custom name of the Infra group in the inventory. |
18- | | | | | |
19- | ` runtime_dir ` | ` str ` | ` /var/one-deploy/ ` | | Directory used to store QCOW2 and ISO images. |
20- | ` os_image_url ` | ` str ` | (check below) | | HTTP(S) link to Debian/RedHat-like image running ` one-contextd ` . |
21- | ` os_image_size ` | ` str ` | ` 20G ` | | The size to which one-deploy will ** try** to adjust the OS image. |
22- | ` memory_KiB ` | ` str ` | ` 2097152 ` | | Memory amount to be set in XML in Libvirt. |
23- | ` vcpu_static ` | ` str ` | ` 1 ` | | VCPU amount to be set in XML in Libvirt. |
24- | ` vnc_max_port ` | ` str ` | ` 65535 ` | | Upper limit for VNC ports to start counting-down from. |
25- | ` infra_bridge ` | ` str ` | ` br0 ` | | Pre-defined bridge interface to insert VM NICs to. |
26- | | | | | |
27- | ` infra_hostname ` | ` str ` | | ` n1a1 ` | Defines on which HV machine the Front-end VM should be deployed. |
28- | ` context.ETH0_DNS ` | ` str ` | | ` 1.1.1.1 ` | DNS server. |
29- | ` context.ETH0_GATEWAY ` | ` str ` | | ` 10.2.50.1 ` | Gateway. |
30- | ` context.ETH0_IP ` | ` str ` | | ` 10.2.50.100 ` | IPv4 address to be set on eth0. |
31- | ` context.ETH0_MAC ` | ` str ` | | ` 02:01:0a:02:32:64 ` | MAC address to be set on eth0 (** MUST** match MAC set in XML.) |
32- | ` context.ETH0_MASK ` | ` str ` | | ` 255.255.255.0 ` | Network mask. |
33- | ` context.ETH0_NETWORK ` | ` str ` | | ` 10.2.50.0 ` | Network address. |
34- | ` context.GROW_FS ` | ` str ` | ` / ` | | Filesystems to grow. |
35- | ` context.PASSWORD ` | ` str ` | ` opennebula ` | | Root's password. |
36- | ` context.SET_HOSTNAME ` | ` str ` | name of the FE VM | | Hostname. |
37- | ` context.SSH_PUBLIC_KEY ` | ` str ` | | (check below) | Root's extra authorized keys. |
14+ | Name | Type | Default | Example | Description |
15+ | --------------------------| --------| --------------------| ---------------------| -------------------------------------------------------------------|
16+ | ` frontend_group ` | ` str ` | ` frontend ` | | Custom name of the Frontend group in the inventory. |
17+ | ` infra_group ` | ` str ` | ` infra ` | | Custom name of the Infra group in the inventory. |
18+ | | | | | |
19+ | ` runtime_dir ` | ` str ` | ` /var/one-deploy/ ` | | Directory used to store QCOW2 and ISO images. |
20+ | ` os_image_url ` | ` str ` | (check below) | | HTTP(S) link to Debian/RedHat-like image running ` one-contextd ` . |
21+ | ` os_image_size ` | ` str ` | ` 20G ` | | The size to which one-deploy will ** try** to adjust the OS image. |
22+ | ` memory_KiB ` | ` str ` | ` 2097152 ` | | Memory amount to be set in XML in Libvirt. |
23+ | ` vcpu_static ` | ` str ` | ` 1 ` | | VCPU amount to be set in XML in Libvirt. |
24+ | ` vnc_max_port ` | ` str ` | ` 65535 ` | | Upper limit for VNC ports to start counting-down from. |
25+ | ` infra_bridge ` | ` str ` | ` br0 ` | | Pre-defined bridge interface to insert VM NICs to. |
26+ | ` passthrough_fs ` | ` list ` | ` [] ` | (check below) | Shared HV filesystems to attach to the Front-end VMs. |
27+ | | | | | |
28+ | ` infra_hostname ` | ` str ` | | ` n1a1 ` | Defines on which HV machine the Front-end VM should be deployed. |
29+ | ` context.ETH0_DNS ` | ` str ` | | ` 1.1.1.1 ` | DNS server. |
30+ | ` context.ETH0_GATEWAY ` | ` str ` | | ` 10.2.50.1 ` | Gateway. |
31+ | ` context.ETH0_IP ` | ` str ` | | ` 10.2.50.100 ` | IPv4 address to be set on eth0. |
32+ | ` context.ETH0_MAC ` | ` str ` | | ` 02:01:0a:02:32:64 ` | MAC address to be set on eth0 (** MUST** match MAC set in XML.) |
33+ | ` context.ETH0_MASK ` | ` str ` | | ` 255.255.255.0 ` | Network mask. |
34+ | ` context.ETH0_NETWORK ` | ` str ` | | ` 10.2.50.0 ` | Network address. |
35+ | ` context.GROW_FS ` | ` str ` | ` / ` | | Filesystems to grow. |
36+ | ` context.PASSWORD ` | ` str ` | ` opennebula ` | | Root's password. |
37+ | ` context.SET_HOSTNAME ` | ` str ` | name of the FE VM | | Hostname. |
38+ | ` context.SSH_PUBLIC_KEY ` | ` str ` | | (check below) | Root's extra authorized keys. |
3839
3940** NOTE** : The ` infra_hostname ` and ` context ` dictionary should be set for members of the ` frontend ` group (please check the ` inventory/infra.yml ` example).
4041
4142Dependencies
4243------------
4344
44- - ` community.general `
4545- ` community.libvirt `
4646
4747Example Playbook
4848----------------
4949
5050 - hosts: infra
5151 vars:
52- os_image_url: https://d24fmfybwxpuhu.cloudfront.net/ubuntu2204-6.8.1-1-20240131.qcow2
52+ os_image_url: https://d24fmfybwxpuhu.cloudfront.net/ubuntu2204-6.10.0-1-20240514.qcow2
53+ passthrough_fs:
54+ - driver_type: virtiofs
55+ source_dir: /var/lib/one/datastores
56+ target_dir: /var/lib/one/datastores
5357 roles:
5458 - role: opennebula.deploy.helper.facts
5559 - role: opennebula.deploy.infra
0 commit comments