Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (57 sloc) 2.13 KB
non_root_user: "{{ lookup('env', 'USER') }}"
# base domain to use
cluster_domain: "{{ lookup('env', 'CLUSTER_DOMAIN') | default('ostest.test.metalkube.org', true) }}"
# allow the nic model to be overridden
libvirt_nic_model: virtio
# These defaults are used if there are no flavor-specific
# overrides configured.
default_disk: 50
default_memory: 8192
default_vcpu: 4
num_nodes: 2
extradisks: false
virtualbmc_base_port: 6230
flavors:
node:
memory: '{{node_memory|default(default_memory)}}'
disk: '{{node_disk|default(default_disk)}}'
vcpu: '{{node_vcpu|default(default_vcpu)}}'
extradisks: '{{extradisks|bool}}'
# An optional prefix for node names
ironic_prefix: ""
baremetal_network_cidr: "{{ lookup('env', 'EXTERNAL_SUBNET') | default('192.168.111.0/24', true) }}"
# Set this to `false` if you don't want your vms
# to have a VNC console available.
enable_vnc_console: true
# Path for volume storage
libvirt_volume_path: "{{ working_dir }}/pool"
# These ensure we're using privileged virt, so VMs persist over reboot
libvirt_uri: qemu:///system
ssh_user: root
# Describe our virtual networks. These networks will be attached to
# the vm nodes in the order in which they are defined with the following caveats:
# * The first bridge network defined will be used for pxe booting
manage_baremetal: 'y'
networks:
- name: provisioning
bridge: provisioning
forward_mode: bridge
- name: baremetal
bridge: baremetal
forward_mode: "{% if manage_baremetal == 'y' %}nat{% else %}bridge{% endif %}"
address: "{{ baremetal_network_cidr|nthhost(1) }}"
netmask: "{{ baremetal_network_cidr|ipaddr('netmask') }}"
prefix: "{{ baremetal_network_cidr|ipaddr('prefix') }}"
dhcp_range:
- "{{ baremetal_network_cidr|nthhost(20) }}"
- "{{ baremetal_network_cidr|nthhost(60) }}"
nat_port_range:
- 1024
- 65535
domain: "{{ cluster_domain }}"
dns:
hosts: "{{dns_extrahosts | default([])}}"
forwarders:
- domain: "apps.{{ cluster_domain }}"
addr: "{% if baremetal_network_cidr|ipv6 != False %}::1{% else %}127.0.0.1{% endif %}"
srvs: "{{dns_externalsrvs | default([])}}"
You can’t perform that action at this time.