Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ db2::install { '11.1':
* `instance_user_uid`: UID of the instance user
* `instance_user_gid`: GID of the instance user
* `instance_user_home`: Home directory of the instance user
* `groups`: An array of supplementary groups for instance and fence users (optional, default: undef)
* `type`: Type of product this instance is for (default: ese)
* `auth`: Type of auth for this instance (default: server)
* `users_forcelocal`: Force the creation of instance and fence users to be local, true or false. (default: undef)
Expand Down
3 changes: 3 additions & 0 deletions manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
$instance_user_uid = undef,
$instance_user_gid = undef,
$instance_user_home = undef,
$groups = undef,
$users_forcelocal = undef,
$port = undef,
$type = 'ese',
Expand All @@ -32,6 +33,7 @@
home => $fence_user_home,
forcelocal => $users_forcelocal,
managehome => true,
groups => $groups,
}
}
}
Expand All @@ -43,6 +45,7 @@
home => $instance_user_home,
forcelocal => $users_forcelocal,
managehome => true,
groups => $groups,
}
}

Expand Down
5 changes: 4 additions & 1 deletion spec/defines/instance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,22 @@
:fence_user_uid => '1002',
:fence_user_gid => 'db2fencg',
:fence_user_home => '/db2/fence',
:groups => 'db2group',
}}
it do
is_expected.to contain_user('db2inst').with(
:uid => '1001',
:gid => 'db2instg',
:home => '/db2/inst'
:home => '/db2/inst',
:groups => 'db2group',
)
end
it do
is_expected.to contain_user('db2fence').with(
:uid => '1002',
:gid => 'db2fencg',
:home => '/db2/fence',
:groups => 'db2group',
)
end
end
Expand Down