File tree Expand file tree Collapse file tree 5 files changed +19
-18
lines changed
etc/kayobe/environments/ci-aio
inventory/group_vars/controllers Expand file tree Collapse file tree 5 files changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -225,23 +225,14 @@ jobs:
225
225
- name : Write Terraform network config
226
226
run : |
227
227
cat << EOF > etc/kayobe/environments/$KAYOBE_ENVIRONMENT/tf-networks.yml
228
-
229
- admin_oc_net_name: admin
230
- admin_cidr: "{{ access_cidr.value }}"
231
- admin_allocation_pool_start: 0.0.0.0
232
- admin_allocation_pool_end: 0.0.0.0
233
- admin_gateway: "{{ access_gw.value }}"
234
- admin_bootproto: dhcp
235
- admin_ips:
228
+ admin_oc_net_name: ethernet
229
+ ethernet_cidr: "{{ access_cidr.value }}"
230
+ ethernet_allocation_pool_start: 0.0.0.0
231
+ ethernet_allocation_pool_end: 0.0.0.0
232
+ ethernet_ips:
236
233
controller0: "{{ access_ip_v4.value }}"
237
234
EOF
238
235
239
- - name : Write Terraform network interface config
240
- run : |
241
- cat << EOF > etc/kayobe/environments/$KAYOBE_ENVIRONMENT/inventory/group_vars/controllers/tf-network-interfaces
242
- admin_interface: "{{ access_interface.value }}"
243
- EOF
244
-
245
236
- name : Write all-in-one scenario config
246
237
run : |
247
238
cat << EOF > etc/kayobe/environments/$KAYOBE_ENVIRONMENT/zz-aio-scenario.yml
Original file line number Diff line number Diff line change 72
72
sudo ip l set dummy1 up
73
73
sudo ip l set dummy1 master breth1
74
74
75
- if type apt; then
76
- sudo cp /run/systemd/network/* /etc/systemd/network
77
- fi
78
-
79
75
export KAYOBE_VAULT_PASSWORD=$( cat $BASE_PATH /vault-pw)
80
76
pushd $BASE_PATH /src/kayobe-config
81
77
source kayobe-env --environment ci-aio
Original file line number Diff line number Diff line change 6
6
# to setup the Kayobe user account. Default is {{ os_distribution }}.
7
7
controller_bootstrap_user : " {{ os_distribution if os_distribution == 'ubuntu' else 'cloud-user' }}"
8
8
9
+ controller_extra_network_interfaces :
10
+ - ethernet
11
+
9
12
# Controller lvm configuration. See intentory/group_vars/controllers/lvm.yml
10
13
# for the exact configuration.
11
14
controller_lvm_groups :
Original file line number Diff line number Diff line change 2
2
###############################################################################
3
3
# Network interface definitions for the controller group.
4
4
5
+ # Ethernet interface is the `primary` or `physical` interface associated
6
+ # with the instance that the AIO deployment runs inside of. It is the interface used
7
+ # to reach the instance.
8
+ ethernet_interface: "{{ ansible_facts['default_ipv4']['interface'] }}"
9
+
5
10
# Controller interface on all-in-one network.
6
11
aio_interface: breth1
7
12
# Use dummy1 if it exists, otherwise the bridge will have no ports.
Original file line number Diff line number Diff line change @@ -80,6 +80,12 @@ cleaning_net_name: aio
80
80
# ##############################################################################
81
81
# Network definitions.
82
82
83
+ # This network is required to be defined within `ci-aio` environment to ensure that
84
+ # the network interface files are created appropriately and to provide easy inclusion
85
+ # within the firewall configuration.
86
+ ethernet_bootproto : dhcp
87
+ ethernet_zone : trusted
88
+
83
89
# All-in-one network.
84
90
aio_cidr : 192.168.33.0/24
85
91
aio_allocation_pool_start : 192.168.33.3
You can’t perform that action at this time.
0 commit comments