Puppet Class: wls_profile::weblogic::groups_and_users

Inherits:
wls_profile
Defined in:
manifests/weblogic/groups_and_users.pp

Summary

This class is the default implementation for creating the required OS users and groups for the installation of WebLogic.

Overview

+--+

wls_profile::groups_and_users

Using hiera, you can customize some of the aspects of this process.

When these customizations aren't enough, you can replace the class with your own class. See wls_profile::weblogic for an explanation on how to do this.

–++–

Parameters:

  • users (Hash)

    The OS users to create for WebLogic. The default value is: yaml wls_profile::weblogic::groups_and_users::users: oracle: uid: 54321 gid: dba groups: - dba shell: /bin/bash password: '$1$DSJ51vh6$4XzzwyIOk6Bi/54kglGk3.' home: /home/oracle comment: This user oracle was created by Puppet managehome: true

  • groups (Hash)

    The list of groups to create for WebLogic. The default value is: yaml wls_profile::weblogic::groups_and_users::groups: dba: gid: 54321,



37
38
39
40
41
42
43
44
45
46
47
# File 'manifests/weblogic/groups_and_users.pp', line 37

class wls_profile::weblogic::groups_and_users(
  Hash  $users,
  Hash  $groups,
) inherits wls_profile {
  echo {'Weblogic Groups and Users':
    withpath => false,
  }
  $defaults = { 'ensure' => 'present'}
  create_resources('user', $users, $defaults )
  create_resources('group', $groups, $defaults)
}