@@ -6,36 +6,40 @@ A role that pre-deploys Front-end VMs directly in Libvirt.
66Requirements
77------------
88
9- Pre-installed Libvirt software.
9+ Pre-installed Libvirt software (in the case of ` infra ` and ` node ` groups share hosts, then ` opennebula-node-kvm ` is pre-installed automatically) .
1010
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- | ` 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. |
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 ` | | | 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+ | ` passthrough_fs ` | ` list ` | ` [] ` | (check below) | Shared HV filesystems to attach to the Front-end VMs. |
26+ | | | | | |
27+ | ` infra_bridge ` | ` str ` | ` br0 ` | | Pre-defined bridge interface to insert VM NICs to. |
28+ | ` infra_bridge_type ` | ` str ` | ` bridge ` | | Supported values: bridge, openvswitch, openvswitch_dpdk |
29+ | ` infra_dpdk_socket_path ` | ` str ` | | | Path for existing socket when using OVS with DPDK. |
30+ | ` infra_vlan_id ` | ` str ` | | | Optionally set the VLAN ID for the bridge. |
31+ | ` infra_hostname ` | ` str ` | | ` n1a1 ` | Defines on which HV machine the Front-end VM should be deployed. |
32+ | ` context.ETH0_DNS ` | ` str ` | | ` 1.1.1.1 ` | DNS server. |
33+ | ` context.ETH0_SEARCH_DOMAIN ` | ` str ` | | ` 1.1.1.1 ` | DNS search domain. |
34+ | ` context.ETH0_GATEWAY ` | ` str ` | | ` 10.2.50.1 ` | Gateway. |
35+ | ` context.ETH0_IP ` | ` str ` | | ` 10.2.50.100 ` | IPv4 address to be set on eth0. |
36+ | ` context.ETH0_MAC ` | ` str ` | | ` 02:01:0a:02:32:64 ` | MAC address to be set on eth0 (** MUST** match MAC set in XML.) |
37+ | ` context.ETH0_MASK ` | ` str ` | | ` 255.255.255.0 ` | Network mask. |
38+ | ` context.ETH0_NETWORK ` | ` str ` | | ` 10.2.50.0 ` | Network address. |
39+ | ` context.GROW_FS ` | ` str ` | ` / ` | | Filesystems to grow. |
40+ | ` context.PASSWORD ` | ` str ` | ` opennebula ` | | Root's password. |
41+ | ` context.SET_HOSTNAME ` | ` str ` | name of the FE VM | | Hostname. |
42+ | ` context.SSH_PUBLIC_KEY ` | ` str ` | | (check below) | Root's extra authorized keys. |
3943
4044** NOTE** : The ` infra_hostname ` and ` context ` dictionary should be set for members of the ` frontend ` group (please check the ` inventory/infra.yml ` example).
4145
0 commit comments