|
| 1 | +# local-config: referenced, but not emitted by kustomize |
| 2 | +apiVersion: v1 |
| 3 | +kind: DataPlaneConfig |
| 4 | +metadata: |
| 5 | + name: edpm-nmstate-baremetal-values |
| 6 | + annotations: |
| 7 | + config.kubernetes.io/local-config: "true" |
| 8 | +data: |
| 9 | + nodeset: |
| 10 | + nodetemplate: |
| 11 | + ansible: |
| 12 | + vars: |
| 13 | + edpm_network_config_hide_sensitive_logs: false |
| 14 | + edpm_network_config_template: | |
| 15 | + --- |
| 16 | + {% set mtu_list = [ctlplane_mtu] %} |
| 17 | + {% for network in nodeset_networks %} |
| 18 | + {% set _ = mtu_list.append(lookup('vars', networks_lower[network] ~ '_mtu')) %} |
| 19 | + {%- endfor %} |
| 20 | + {% set min_viable_mtu = mtu_list | max %} |
| 21 | + dns-resolver: |
| 22 | + config: |
| 23 | + search: {{ dns_search_domains }} |
| 24 | + server: {{ ctlplane_dns_nameservers }} |
| 25 | + interfaces: |
| 26 | + - name: nic1 |
| 27 | + type: ethernet |
| 28 | + state: up |
| 29 | + mtu: {{ min_viable_mtu }} |
| 30 | + - name: {{ neutron_physical_bridge_name }} |
| 31 | + type: ovs-interface |
| 32 | + state: up |
| 33 | + mtu: {{ min_viable_mtu }} |
| 34 | + ipv4: |
| 35 | + enabled: true |
| 36 | + address: |
| 37 | + - ip: {{ ctlplane_ip }} |
| 38 | + prefix-length: {{ ctlplane_cidr }} |
| 39 | + {% for network in nodeset_networks %} |
| 40 | + - name: {{ "vlan" ~ lookup('vars', networks_lower[network] ~ '_vlan_id') }} |
| 41 | + type: ovs-interface |
| 42 | + state: up |
| 43 | + mtu: {{ lookup('vars', networks_lower[network] ~ '_mtu') }} |
| 44 | + ipv4: |
| 45 | + enabled: true |
| 46 | + address: |
| 47 | + - ip: {{ lookup('vars', networks_lower[network] ~ '_ip') }} |
| 48 | + prefix-length: {{ lookup('vars', networks_lower[network] ~ '_cidr') }} |
| 49 | + {% endfor %} |
| 50 | + - name: {{ neutron_physical_bridge_name }} |
| 51 | + type: ovs-bridge |
| 52 | + state: up |
| 53 | + bridge: |
| 54 | + options: |
| 55 | + fail-mode: standalone |
| 56 | + port: |
| 57 | + - name: nic1 |
| 58 | + - name: {{ neutron_physical_bridge_name }} |
| 59 | + {% for network in nodeset_networks %} |
| 60 | + - name: {{ "vlan" ~ lookup('vars', networks_lower[network] ~ '_vlan_id') }} |
| 61 | + vlan: |
| 62 | + mode: access |
| 63 | + tag: {{ lookup('vars', networks_lower[network] ~ '_vlan_id') }} |
| 64 | + {% endfor %} |
| 65 | + {% set routes = [] %} |
| 66 | + {% for route in ctlplane_host_routes | default([], true) %} |
| 67 | + {% set _ = routes.append((route, neutron_physical_bridge_name)) %} |
| 68 | + {% endfor %} |
| 69 | + {% for network in nodeset_networks %} |
| 70 | + {% for route in lookup('vars', networks_lower[network] ~ '_host_routes') | default([], true) %} |
| 71 | + {% set _ = routes.append((route, "vlan" ~ lookup('vars', networks_lower[network] ~ '_vlan_id'))) %} |
| 72 | + {% endfor %} |
| 73 | + {% endfor %} |
| 74 | + {% if routes %} |
| 75 | + routes: |
| 76 | + config: |
| 77 | + {% for route, iface in routes %} |
| 78 | + - destination: {{ route.destination | default(route.ip_netmask, true) }} |
| 79 | + next-hop-address: {{ route.nexthop | default(route.next_hop, true) }} |
| 80 | + next-hop-interface: {{ iface }} |
| 81 | + {% endfor %} |
| 82 | + {% endif %} |
| 83 | + # edpm_network_config - nmstate |
| 84 | + edpm_network_config_tool: 'nmstate' |
| 85 | + # These vars are for the network config templates themselves and are |
| 86 | + # considered EDPM network defaults. |
| 87 | + neutron_physical_bridge_name: br-ex |
| 88 | + # edpm_nodes_validation |
| 89 | + edpm_nodes_validation_validate_controllers_icmp: false |
| 90 | + edpm_nodes_validation_validate_gateway_icmp: false |
| 91 | + ctlplane_dns_nameservers: |
| 92 | + - 192.168.122.1 |
| 93 | + dns_search_domains: [] |
| 94 | + gather_facts: false |
| 95 | + enable_debug: false |
| 96 | + # edpm firewall, change the allowed CIDR if needed |
| 97 | + edpm_sshd_configure_firewall: true |
| 98 | + edpm_sshd_allowed_ranges: ['192.168.111.0/24'] |
| 99 | + # SELinux module |
| 100 | + edpm_selinux_mode: enforcing |
0 commit comments