File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ db2::install { '11.1':
124
124
* ` instance_user_uid ` : UID of the instance user
125
125
* ` instance_user_gid ` : GID of the instance user
126
126
* ` instance_user_home ` : Home directory of the instance user
127
+ * ` additional_groups ` : An array of additional groups for instance and fence users (optional, default: undef)
127
128
* ` type ` : Type of product this instance is for (default: ese)
128
129
* ` auth ` : Type of auth for this instance (default: server)
129
130
* ` users_forcelocal ` : Force the creation of instance and fence users to be local, true or false. (default: undef)
Original file line number Diff line number Diff line change 14
14
$instance_user_uid = undef ,
15
15
$instance_user_gid = undef ,
16
16
$instance_user_home = undef ,
17
+ $additional_groups = undef ,
17
18
$users_forcelocal = undef ,
18
19
$port = undef ,
19
20
$type = ' ese' ,
32
33
home => $fence_user_home ,
33
34
forcelocal => $users_forcelocal ,
34
35
managehome => true ,
36
+ groups => $additional_groups ,
35
37
}
36
38
}
37
39
}
43
45
home => $instance_user_home ,
44
46
forcelocal => $users_forcelocal ,
45
47
managehome => true ,
48
+ groups => $additional_groups ,
46
49
}
47
50
}
48
51
Original file line number Diff line number Diff line change 69
69
:fence_user_uid => '1002' ,
70
70
:fence_user_gid => 'db2fencg' ,
71
71
:fence_user_home => '/db2/fence' ,
72
+ :additional_groups => 'db2group' ,
72
73
} }
73
74
it do
74
75
is_expected . to contain_user ( 'db2inst' ) . with (
75
76
:uid => '1001' ,
76
77
:gid => 'db2instg' ,
77
- :home => '/db2/inst'
78
+ :home => '/db2/inst' ,
79
+ :groups => 'db2group' ,
78
80
)
79
81
end
80
82
it do
81
83
is_expected . to contain_user ( 'db2fence' ) . with (
82
84
:uid => '1002' ,
83
85
:gid => 'db2fencg' ,
84
86
:home => '/db2/fence' ,
87
+ :groups => 'db2group' ,
85
88
)
86
89
end
87
90
end
You can’t perform that action at this time.
0 commit comments