fuel-plugin-midonet/environment_config.yaml

205 lines
7.6 KiB
YAML

attributes:
metadata:
restrictions:
- condition: cluster:net_provider != 'neutron'
action: hide
gateway_type:
type: "select"
weight: 5
value: "bgp"
label: "Gateway Type"
description: "Choose which technology MidoNet will use to encapsulate data between hosts"
values:
- data: "bgp"
label: "BGP gateway"
- data: "static"
label: "Static Gateway"
- data: "none"
label: "I want to configure gateway manually"
mem:
value: false
label: "Midokura Enterprise MidoNet (MEM)"
description: "If selected, Midokura Enterprise MidoNet (MEM) will be installed. If MEM is installed, you have to access Horizon at /horizon"
weight: 6
type: "checkbox"
mem_insights:
value: false
label: "Midokura Enterprise MidoNet Insights"
description: "If selected, Midokura Enterprise MidoNet Insights (MEM) will be installed."
weight: 7
type: "checkbox"
restrictions:
- condition: "settings:midonet.mem.value == false"
strict: false
message: "Midokura Enterprise MidoNet (MEM) must be enabled"
vm_install:
value: false
label: "Are you installing the Analytics nodes on VM's?"
description: "If selected, it will install haveged package for entropy. DONT CHECK IF USING BARE-METAL SERVERS"
weight: 8
type: "checkbox"
restrictions:
- condition: "settings:midonet.mem_insights.value == false or settings:midonet.midonet_version == '5.2'"
message: "Midokura Enterprise MidoNet (MEM) must be enabled"
action: hide
midonet_version:
value: "5.4"
label: "MidoNet release version"
description: "Choose the MidoNet release version"
type: "select"
weight: 9
values:
- data: "5.2"
label: "5.2"
- data: "5.4"
label: "5.4"
mem_repo_user:
value: ''
label: "MEM repository username"
description: "Username for Midokura Enterprise MidoNet (MEM) repository"
type: "text"
weight: 10
restrictions:
- condition: "settings:midonet.mem.value == false"
strict: false
message: "Midokura Enterprise MidoNet (MEM) must be enabled"
mem_repo_password:
value: ''
label: "MEM repository password"
description: "Password for Midokura Enterprise MidoNet (MEM) repository"
type: "password"
weight: 11
restrictions:
- condition: "settings:midonet.mem.value == false"
strict: false
message: "Midokura Enterprise MidoNet (MEM) must be enabled"
tunnel_type:
type: "select"
weight: 12
value: "gre"
label: "Tunnel Type"
description: "Choose which technology MidoNet will use to encapsulate data between hosts"
values:
- data: "gre"
label: "GRE tunnels"
- data: "vxlan"
label: "VXLAN tunnels"
restrictions:
- condition: "settings:public_network_assignment.assign_to_all_nodes == false"
action: "hide"
# Floating IP range #
floating_cidr:
value: '200.200.200.0/24'
label: 'Floating Network subnet'
description: 'CIDR of the Floating Network. Will override the default settings'
weight: 30
type: "text"
regex:
source: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])/(3[012]|[12]?[0-9])$'
error: 'Floating Network must be a CIDR'
gateway:
value: '200.200.200.1'
label: 'Floating Network Gateway IP'
description: 'Gateway of the Floating Network. Will override the default settings'
weight: 31
type: "text"
regex:
source: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'
error: 'Floating Network gateway must be an IP address'
floating_ip_range_start:
value: '200.200.200.100'
label: 'Floating Network range start'
description: 'First IP address of the Floating Network range. Will override the default settings'
weight: 32
type: "text"
regex:
source: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'
error: 'Floating Network range start value must be an IP address'
floating_ip_range_end:
value: '200.200.200.200'
label: 'Floating Network range end'
description: 'Last IP address of the Floating Network range. Will override the default settings'
weight: 33
type: "text"
regex:
source: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'
error: 'Floating Network range last value must be an IP address'
## BGP Options ###
bgp_local_as:
value: '12345'
label: 'BGP local AS'
description: 'BGP local autonomous system number'
weight: 34
type: "text"
regex:
source: '^([0-9]){5}$'
error: 'Local AS must be 5 digits.'
restrictions:
- condition: "settings:midonet.gateway_type.value != 'bgp'"
action: "hide"
bgp_neighbors:
value: '10.88.88.2/30-10.88.88.1-65535'
label: 'BGP Peers'
description: 'List of BGP peers. In the form of <ip>/<netlength>-<remote_ip>-<remote-as> . If more than one peer, comma separate them like 1.1.1.1/24-1.1.1.2-11111,2.2.2.2/24-2.2.2.3-11111'
weight: 35
type: "text"
regex:
source: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/(3[012]|[12]?[0-9])-(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])-([0-9]){5}(,(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/(3[012]|[12]?[0-9])-(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])-([0-9]){5})*$'
error: 'BGP peers must be in the form <ip>/<netlength>-<remote_ip>-<remote-as>,<ip>/<netlength>-<remote_ip>-<remote-as>'
restrictions:
- condition: "settings:midonet.gateway_type.value != 'bgp'"
action: "hide"
## Static GW options ##
static_linux_bridge_address:
value: '172.19.0.1/30'
label: 'Static LinuxBridge Address'
description: "IP address assigned to the virtual ethernet interface connected to the fake uplink linux bridge. It should be in 'IP/Prefix_Length' notation ('192.0.2.1/24')"
weight: 36
type: "text"
regex:
source: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])/(3[012]|[12]?[0-9])$'
error: 'Static LinuxBridge Address'
restrictions:
- condition: "settings:midonet.gateway_type.value != 'static'"
action: "hide"
static_fake_edge_router_address:
value: '172.19.0.2/30'
label: 'Static Edge Router Address'
description: "IP address assigned to the virtual ethernet interface connected to the MidoNet Edge Router. It should be in 'IP/Prefix_Length' notation ('192.0.2.1/24')"
weight: 37
type: "text"
regex:
source: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])/(3[012]|[12]?[0-9])$'
error: 'Static Edge Router Address'
restrictions:
- condition: "settings:midonet.gateway_type.value != 'static'"
action: "hide"
static_use_masquerade:
value: true
label: "Create Masquerading"
description: "Whether to enable masquerading or not. Enable when you don't have an upstream router routing floating IP network to the gateway node. Disable when you do have an upstream router routing floating IP network to the gateway node"
type: "checkbox"
weight: 38
restrictions:
- condition: "settings:midonet.gateway_type.value != 'static'"
action: "hide"