From 6f7c0ee078c8e1faf59f03c1901b45162759dba6 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Wed, 14 Feb 2024 18:29:11 +0000 Subject: [PATCH] =?UTF-8?q?feat(profiles):=20Mise=20=C3=A0=20jour=20des=20?= =?UTF-8?q?profiles=20pour=20les=20interfaces=20r=C3=A9seau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- profiles/networking/back.profile.yaml | 9 +++++++ profiles/networking/front.profile.yaml | 9 +++++++ profiles/networking/frontback.profile.yaml | 14 ++++++++++ profiles/networking/home.profile.yaml | 9 +++++++ .../networking/public-gateway.profile.yaml | 27 +++++++++++++++++++ profiles/networking/public.profile.yaml | 9 +++++++ 6 files changed, 77 insertions(+) create mode 100644 profiles/networking/public-gateway.profile.yaml diff --git a/profiles/networking/back.profile.yaml b/profiles/networking/back.profile.yaml index 8f42b16..52c242f 100644 --- a/profiles/networking/back.profile.yaml +++ b/profiles/networking/back.profile.yaml @@ -5,3 +5,12 @@ devices: nictype: bridged parent: back type: nic +config: + cloud-init.network-config: | + version: 1 + config: + - type: physical + name: eth0 + subnets: + - type: dhcp + ipv4: true diff --git a/profiles/networking/front.profile.yaml b/profiles/networking/front.profile.yaml index ab952cc..f17df4a 100644 --- a/profiles/networking/front.profile.yaml +++ b/profiles/networking/front.profile.yaml @@ -5,3 +5,12 @@ devices: nictype: bridged parent: front type: nic +config: + cloud-init.network-config: | + version: 1 + config: + - type: physical + name: eth0 + subnets: + - type: dhcp + ipv4: true diff --git a/profiles/networking/frontback.profile.yaml b/profiles/networking/frontback.profile.yaml index 18fc687..5bc7da7 100644 --- a/profiles/networking/frontback.profile.yaml +++ b/profiles/networking/frontback.profile.yaml @@ -10,3 +10,17 @@ devices: nictype: bridged parent: back type: nic +config: + cloud-init.network-config: | + version: 1 + config: + - type: physical + name: eth0 + subnets: + - type: dhcp + ipv4: true + - type: physical + name: eth1 + subnets: + - type: dhcp + ipv4: true diff --git a/profiles/networking/home.profile.yaml b/profiles/networking/home.profile.yaml index 1abc54e..c521053 100644 --- a/profiles/networking/home.profile.yaml +++ b/profiles/networking/home.profile.yaml @@ -5,3 +5,12 @@ devices: nictype: bridged parent: home type: nic +config: + cloud-init.network-config: | + version: 1 + config: + - type: physical + name: eth0 + subnets: + - type: dhcp + ipv4: true diff --git a/profiles/networking/public-gateway.profile.yaml b/profiles/networking/public-gateway.profile.yaml new file mode 100644 index 0000000..44dbbeb --- /dev/null +++ b/profiles/networking/public-gateway.profile.yaml @@ -0,0 +1,27 @@ +name: public-gateway +description: Network configuration for public gateway (attached to both public and front networks) +devices: + eth0: + name: eth0 + type: nic + nictype: bridged + parent: public + eth1: + name: eth1 + type: nic + nictype: bridged + parent: front +config: + cloud-init.network-config: | + version: 1 + config: + - type: physical + name: eth0 + subnets: + - type: dhcp + ipv4: true + - type: physical + name: eth1 + subnets: + - type: dhcp + ipv4: true diff --git a/profiles/networking/public.profile.yaml b/profiles/networking/public.profile.yaml index 6b3ed22..f1bee56 100644 --- a/profiles/networking/public.profile.yaml +++ b/profiles/networking/public.profile.yaml @@ -5,3 +5,12 @@ devices: nictype: bridged parent: public type: nic +config: + cloud-init.network-config: | + version: 1 + config: + - type: physical + name: eth0 + subnets: + - type: dhcp + ipv4: true