add user control

This commit is contained in:
Arne Teuke
2025-03-10 15:13:46 +01:00
parent b29f4e7db1
commit ad4b68911f
3 changed files with 35 additions and 0 deletions

24
manifests/main/user.pp Normal file
View File

@@ -0,0 +1,24 @@
## alloy_cd::main::user.pp
# Module name: alloy_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages the alloy user
###############################################################################
class alloy_cd::main::user (
) inherits alloy_cd::params {
if $ay_manage_user == true {
user { $ay_user:
ensure => present,
name => $ay_user,
allowdupe => false,
groups => $ay_groups,
managehome => false,
shell => $ay_user_shell,
}
group { $ay_user:
ensure => present,
allowdupe => false,
}
}
}