From e4dc0f32653cd29b4eae21aadc710df2a7d689e6 Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 15 Nov 2025 12:59:08 +0100 Subject: [PATCH] =?UTF-8?q?style=20=F0=9F=92=8E:=20Update=20user=20group?= =?UTF-8?q?=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the user group settings to only include 'sudo' group, removing unnecessary groups. This change improves code readability and maintainability. --- templates/cloudinit_userdata.yaml.j2 | 2 +- templates/cloudinit_vendor.yaml.j2 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/cloudinit_userdata.yaml.j2 b/templates/cloudinit_userdata.yaml.j2 index 4950d3a..43bdb99 100644 --- a/templates/cloudinit_userdata.yaml.j2 +++ b/templates/cloudinit_userdata.yaml.j2 @@ -3,7 +3,7 @@ users: - name: {{ ci_user }} sudo: ALL=(ALL) NOPASSWD:ALL - groups: users, admin, sudo + groups: sudo shell: /bin/bash lock_passwd: false passwd: {{ ci_password | password_hash('sha512') }} diff --git a/templates/cloudinit_vendor.yaml.j2 b/templates/cloudinit_vendor.yaml.j2 index a4232c2..6ef1373 100644 --- a/templates/cloudinit_vendor.yaml.j2 +++ b/templates/cloudinit_vendor.yaml.j2 @@ -5,7 +5,8 @@ packages: {% endfor %} {% if dns %} -manage_resolve_conf: true +manage_resolv_conf: true + resolv_conf: nameservers: {% for ns in dns %}