277bfde097
Motivation: Provide possibility to get public and neutron net up and running Change-Id: I015111fa7430fe99e53fb7bb097166527baaa019
123 lines
3.5 KiB
YAML
123 lines
3.5 KiB
YAML
---
|
|
aliases:
|
|
dynamic_addresses_pool:
|
|
- &pool_default !os_env POOL_DEFAULT, 10.100.0.0/16:24
|
|
|
|
default_interface_model:
|
|
- &interface_model !os_env INTERFACE_MODEL, e1000
|
|
|
|
template:
|
|
devops_settings:
|
|
env_name: !os_env ENV_NAME
|
|
|
|
address_pools:
|
|
public-pool01:
|
|
net: *pool_default
|
|
params:
|
|
vlan_start: 1210
|
|
ip_reserved:
|
|
gateway: +1
|
|
l2_network_device: +1
|
|
ip_ranges:
|
|
dhcp: [+128, -32]
|
|
rack-01: [+2, +127]
|
|
private-pool01:
|
|
net: *pool_default
|
|
params:
|
|
ip_reserved:
|
|
l2_network_device: +1
|
|
ip_ranges:
|
|
dhcp: [+128, -32]
|
|
neutron-pool01:
|
|
net: *pool_default
|
|
|
|
groups:
|
|
- name: default
|
|
driver:
|
|
name: devops.driver.libvirt
|
|
params:
|
|
connection_string: !os_env CONNECTION_STRING, qemu:///system
|
|
storage_pool_name: !os_env STORAGE_POOL_NAME, default
|
|
stp: False
|
|
hpet: False
|
|
use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
|
|
enable_acpi: True
|
|
|
|
network_pools:
|
|
public: public-pool01
|
|
private: private-pool01
|
|
neutron: neutron-pool01
|
|
|
|
l2_network_devices:
|
|
public:
|
|
address_pool: public-pool01
|
|
dhcp: true
|
|
forward:
|
|
mode: nat
|
|
|
|
private:
|
|
address_pool: private-pool01
|
|
dhcp: true
|
|
|
|
neutron:
|
|
address_pool: neutron-pool01
|
|
dhcp: false
|
|
|
|
group_volumes:
|
|
- name: cloudimage
|
|
source_image: !os_env IMAGE_PATH
|
|
format: qcow2
|
|
|
|
nodes:
|
|
- name: master
|
|
role: k8s
|
|
params: &rack-01-node-params
|
|
vcpu: !os_env SLAVE_NODE_CPU, 2
|
|
memory: !os_env SLAVE_NODE_MEMORY, 8192
|
|
boot:
|
|
- hd
|
|
cloud_init_volume_name: iso
|
|
cloud_init_iface_up: ens3
|
|
volumes:
|
|
- name: system
|
|
capacity: !os_env NODE_VOLUME_SIZE, 150
|
|
backing_store: cloudimage
|
|
format: qcow2
|
|
- name: iso # Volume with name 'iso' will be used
|
|
# for store image with cloud-init metadata.
|
|
capacity: 1
|
|
format: raw
|
|
device: cdrom
|
|
bus: ide
|
|
cloudinit_meta_data: !include cloudinit-meta-data.yaml
|
|
cloudinit_user_data: !include cloudinit-user-default-data.yaml
|
|
|
|
interfaces:
|
|
- label: ens3
|
|
l2_network_device: public
|
|
interface_model: *interface_model
|
|
- label: ens4
|
|
l2_network_device: private
|
|
interface_model: *interface_model
|
|
- label: ens5
|
|
l2_network_device: neutron
|
|
interface_model: *interface_model
|
|
network_config:
|
|
ens3: # Will get an IP from DHCP public-pool01
|
|
networks:
|
|
- public
|
|
ens4: # Will get an IP from DHCP private-pool01
|
|
networks:
|
|
- private
|
|
ens5: # Won't get an IP, no DHCP in ovs-pool01
|
|
networks:
|
|
- neutron
|
|
|
|
- name: slave-0
|
|
role: k8s
|
|
params: *rack-01-node-params
|
|
|
|
- name: slave-1
|
|
role: k8s
|
|
params: *rack-01-node-params
|