orainst.pp 509 B

12345678910111213141516171819202122232425262728
  1. # == define: oradb::utils::orainst
  2. #
  3. # creates oraInst.loc for oracle products
  4. #
  5. #
  6. ##
  7. define oradb::utils::orainst
  8. (
  9. $ora_inventory_dir = undef,
  10. $os_group = undef,
  11. )
  12. {
  13. case $::kernel {
  14. Linux: {
  15. $oraInstPath = "/etc"
  16. }
  17. SunOS: {
  18. $oraInstPath = "/var/opt"
  19. }
  20. }
  21. if !defined(File["${oraInstPath}/oraInst.loc"]) {
  22. file { "${oraInstPath}/oraInst.loc":
  23. ensure => present,
  24. content => template("oradb/oraInst.loc.erb"),
  25. }
  26. }
  27. }