paramtised user data into variables
This commit is contained in:
parent
0e53e2d15c
commit
dc383093e5
@ -1,33 +1,46 @@
|
||||
class profile::custom_windows::add_user {
|
||||
class profile::custom_windows::add_user (
|
||||
|
||||
$user_name = 'myuser',
|
||||
$user_group = 'mygroup',
|
||||
$user_groups = ['BUILTIN\Administrators', 'BUILTIN\Users'],
|
||||
$user_home = "C:\Users\myuser",
|
||||
$user_password = 'puppet',
|
||||
$ensure = 'present',
|
||||
$manage_home = true,
|
||||
$user_file = 'myfile',
|
||||
|
||||
) {
|
||||
|
||||
profile::custom_windows::define_user { 'myuser':
|
||||
|
||||
user_name => 'myuser',
|
||||
user_group => 'mygroup',
|
||||
user_groups => ['BUILTIN\\Administrators', 'BUILTIN\\Users'],
|
||||
user_home => "C:\\Users\\myuser",
|
||||
user_password => 'puppet',
|
||||
ensure => 'present',
|
||||
manage_home => true,
|
||||
user_file => 'myfile',
|
||||
user_name => $user_name,
|
||||
user_group => $user_group,
|
||||
user_groups => $user_groups,
|
||||
user_home => $user_home,
|
||||
user_password => $user_password,
|
||||
ensure => $ensure,
|
||||
manage_home => $manage_home,
|
||||
user_file => $user_file,
|
||||
}
|
||||
|
||||
acl { 'C:\\Users\\myuser\myfile':
|
||||
|
||||
permissions => [
|
||||
{ identity => myuser, rights => ['read','execute'] },
|
||||
{ identity => mygroup, rights => ['read'] }
|
||||
{ identity => $user_name, rights => ['read','execute'] },
|
||||
{ identity => $user_group, rights => ['read'] }
|
||||
],
|
||||
}
|
||||
|
||||
registry::value { 'Enable IE ESC':
|
||||
registry::value { 'Enable IEESC':
|
||||
|
||||
key => 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}',
|
||||
value => 'IsInstalled',
|
||||
data => '1',
|
||||
type => 'dword',
|
||||
}
|
||||
|
||||
|
||||
registry::value { 'Enable shutdown tracker':
|
||||
|
||||
key => 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability',
|
||||
value => 'ShutdownReasonOn',
|
||||
data => '1',
|
||||
@ -35,6 +48,7 @@ class profile::custom_windows::add_user {
|
||||
}
|
||||
|
||||
registry::value { 'Enable shutdown tracker UI':
|
||||
|
||||
key => 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability',
|
||||
value => 'ShutdownReasonUI',
|
||||
data => '1',
|
||||
|
Loading…
Reference in New Issue
Block a user