setup.pp 942 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # fmw_wls::setup
  3. #
  4. # Copyright 2015 Oracle. All Rights Reserved
  5. #
  6. # Amended to add u01 location
  7. #
  8. class fmw_wls::setup()
  9. {
  10. require fmw_wls
  11. unless $::kernel in ['Linux', 'SunOS'] {
  12. fail('Unrecognized operating system, use this class on a Linux or Solaris host')
  13. }
  14. # group { $fmw_wls::os_group :
  15. # ensure => present,
  16. # }
  17. # user { $fmw_wls::os_user :
  18. # ensure => present,
  19. # uid => $fmw_wls::os_user_uid,
  20. # gid => $fmw_wls::os_group,
  21. # # groups => $fmw_wls::os_group,
  22. # shell => $fmw_wls::os_shell,
  23. # home => "${fmw_wls::user_home_dir}/${fmw_wls::os_user}",
  24. # comment => 'created by puppet for WebLogic installation',
  25. # require => Group[$fmw_wls::os_group],
  26. # managehome => true,
  27. # }
  28. file { [ '/u01', '/u01/ouaf', '/u01/ouaf/oracle' ]:
  29. ensure => 'directory',
  30. owner => $fmw_wls::os_user_uid,
  31. group => $fmw_wls::os_group,
  32. }
  33. }