feat: dont set gid/uid for sysadmin

- sysadmin doesnt need to be a specific uid/gid, the next available
  uid/gid is fine
This commit is contained in:
Ben Vincent 2025-04-26 19:57:08 +10:00
parent 496ed12a58
commit ccd048c729
2 changed files with 2 additions and 4 deletions

View File

@ -15,8 +15,6 @@ class profiles::accounts::sysadmin(
profiles::base::account {'sysadmin': profiles::base::account {'sysadmin':
username => 'sysadmin', username => 'sysadmin',
uid => 1000,
gid => 1000,
groups => $groups, groups => $groups,
sshkeys => $sshkeys, sshkeys => $sshkeys,
sudo_rules => ['sysadmin ALL=(ALL) NOPASSWD:ALL'], sudo_rules => ['sysadmin ALL=(ALL) NOPASSWD:ALL'],

View File

@ -1,8 +1,8 @@
# a wrapper for puppetlabs-account and saz-sudo # a wrapper for puppetlabs-account and saz-sudo
define profiles::base::account ( define profiles::base::account (
String $username, String $username,
Integer $uid, Optional[Integer] $uid = undef,
Integer $gid = undef, Optional[Integer] $gid = undef,
Boolean $manage_home = true, Boolean $manage_home = true,
Boolean $create_group = true, Boolean $create_group = true,
Boolean $purge_sshkeys = true, Boolean $purge_sshkeys = true,