added windows users
This commit is contained in:
parent
f69ffd8ce1
commit
a72905494f
1
site/windows/manifests/init.pp
Normal file
1
site/windows/manifests/init.pp
Normal file
@ -0,0 +1 @@
|
||||
class windows {}
|
32
site/windows/manifests/users.pp
Normal file
32
site/windows/manifests/users.pp
Normal file
@ -0,0 +1,32 @@
|
||||
# Create a local user
|
||||
# Create a local group
|
||||
# Add the user to the group
|
||||
# Grant your user the "Log on as a Service" right
|
||||
|
||||
# Explain what the "Log on as a Service" right does :
|
||||
# This policy setting determines which service accounts can register a process as a service.
|
||||
# Running a process under a service account circumvents the need for human intervention.
|
||||
|
||||
|
||||
|
||||
class windows::users {
|
||||
$users = ['service-01']
|
||||
$group = 'service-account'
|
||||
|
||||
user { $users:
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
group { $group:
|
||||
ensure => present,
|
||||
members => $users,
|
||||
}
|
||||
|
||||
# local_security_policy { 'Log on as a service':
|
||||
# ensure => present,
|
||||
# policy_value => '90',
|
||||
# }
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user