feat: dont set gid/uid for sysadmin (#265)

- sysadmin doesnt need to be a specific uid/gid, the next available
  uid/gid is fine

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/265
This commit is contained in:
Ben Vincent 2025-04-26 20:02:57 +10:00
parent 496ed12a58
commit 1e3ce0ec1c
2 changed files with 2 additions and 4 deletions

View File

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

View File

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