From 975bff00255b2cfacedbd2670fc5fe217c73d22a Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Fri, 16 Feb 2024 16:21:45 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20Mise=20=C3=A0=20jour=20des=20profiles?= =?UTF-8?q?=20r=C3=A9seau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{back.profile.yaml => net-back.profile.yaml} | 15 ++++++--------- ...{front.profile.yaml => net-front.profile.yaml} | 15 ++++++--------- .../{home.profile.yaml => net-home.profile.yaml} | 15 ++++++--------- ...ublic.profile.yaml => net-public.profile.yaml} | 15 ++++++--------- 4 files changed, 24 insertions(+), 36 deletions(-) rename profiles/networking/{back.profile.yaml => net-back.profile.yaml} (57%) rename profiles/networking/{front.profile.yaml => net-front.profile.yaml} (57%) rename profiles/networking/{home.profile.yaml => net-home.profile.yaml} (57%) rename profiles/networking/{public.profile.yaml => net-public.profile.yaml} (57%) diff --git a/profiles/networking/back.profile.yaml b/profiles/networking/net-back.profile.yaml similarity index 57% rename from profiles/networking/back.profile.yaml rename to profiles/networking/net-back.profile.yaml index 52c242f..6bc9e3b 100644 --- a/profiles/networking/back.profile.yaml +++ b/profiles/networking/net-back.profile.yaml @@ -1,16 +1,13 @@ -name: back +name: net-back description: Profile that provide a network interface attached to the back bridge devices: eth0: + type: nic nictype: bridged parent: back - type: nic config: cloud-init.network-config: | - version: 1 - config: - - type: physical - name: eth0 - subnets: - - type: dhcp - ipv4: true + version: 2 + ethernets: + eth0: + dhcp4: true diff --git a/profiles/networking/front.profile.yaml b/profiles/networking/net-front.profile.yaml similarity index 57% rename from profiles/networking/front.profile.yaml rename to profiles/networking/net-front.profile.yaml index f17df4a..80267a7 100644 --- a/profiles/networking/front.profile.yaml +++ b/profiles/networking/net-front.profile.yaml @@ -1,16 +1,13 @@ -name: front +name: net-front description: Profile that provide a network interface attached to the front bridge devices: eth0: + type: nic nictype: bridged parent: front - type: nic config: cloud-init.network-config: | - version: 1 - config: - - type: physical - name: eth0 - subnets: - - type: dhcp - ipv4: true + version: 2 + ethernets: + eth0: + dhcp4: true diff --git a/profiles/networking/home.profile.yaml b/profiles/networking/net-home.profile.yaml similarity index 57% rename from profiles/networking/home.profile.yaml rename to profiles/networking/net-home.profile.yaml index c521053..dfe95ac 100644 --- a/profiles/networking/home.profile.yaml +++ b/profiles/networking/net-home.profile.yaml @@ -1,16 +1,13 @@ -name: home +name: net-home description: Profile that provide a network interface attached to the home bridge devices: eth0: + type: nic nictype: bridged parent: home - type: nic config: cloud-init.network-config: | - version: 1 - config: - - type: physical - name: eth0 - subnets: - - type: dhcp - ipv4: true + version: 2 + ethernets: + eth0: + dhcp4: true diff --git a/profiles/networking/public.profile.yaml b/profiles/networking/net-public.profile.yaml similarity index 57% rename from profiles/networking/public.profile.yaml rename to profiles/networking/net-public.profile.yaml index f1bee56..4647867 100644 --- a/profiles/networking/public.profile.yaml +++ b/profiles/networking/net-public.profile.yaml @@ -1,16 +1,13 @@ -name: public +name: net-public description: Profile that provide a network interface attached to the public bridge devices: eth0: + type: nic nictype: bridged parent: public - type: nic config: cloud-init.network-config: | - version: 1 - config: - - type: physical - name: eth0 - subnets: - - type: dhcp - ipv4: true + version: 2 + ethernets: + eth0: + dhcp4: true