fix(users): update cloud-init template and input validation for dict users

This commit is contained in:
2026-03-20 15:10:31 +01:00
committed by MORAWSKI Norbert
parent 6afe9dbd1c
commit 93aa27c1fd
2 changed files with 13 additions and 9 deletions

View File

@@ -8,11 +8,11 @@
that:
- system is mapping
- system.network is not defined or system.network is mapping
- system.users is not defined or (system.users is iterable and system.users is not string and system.users is not mapping)
- system.users is not defined or system.users is mapping
- system.root is not defined or system.root is mapping
- system.luks is not defined or system.luks is mapping
- system.features is not defined or system.features is mapping
fail_msg: "system and its nested keys (network, root, luks, features) must be dictionaries; system.users must be a list."
fail_msg: "system and its nested keys (network, root, luks, features, users) must be dictionaries."
quiet: true
- name: Validate DNS lists (not strings)