Advertisement
Guest User

Untitled

a guest
Nov 17th, 2015
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. # == Class: oradb
  2. #
  3. class oradb ($shout = false) {
  4.  
  5. if $::oradb::shout {
  6. notify {'oradb init.pp':}
  7. }
  8.  
  9.  
  10. # set the tmpfs
  11. mount { '/dev/shm':
  12. ensure => present,
  13. atboot => true,
  14. device => 'tmpfs',
  15. fstype => 'tmpfs',
  16. options => 'size=3500m',
  17. }
  18.  
  19. # Install DB software 12c
  20. $puppet_download_mnt_point = "puppet:///modules/oradb/"
  21.  
  22. oradb::installdb{ '12.1.0.2_Linux-x86-64':
  23. version => '12.1.0.1',
  24. file => 'linuxamd64_12102_database',
  25. database_type => 'EE',
  26. oracle_base => '/u01/app/oracle',
  27. oracle_home => '/u01/app/oracle/product/12.1/db',
  28. bash_profile => true,
  29. user => 'oracle',
  30. group => 'dba',
  31. group_install => 'oinstall',
  32. group_oper => 'oper',
  33. download_dir => '/install',
  34. zip_extract => true,
  35. puppet_download_mnt_point => $puppet_download_mnt_point,
  36. }
  37.  
  38. # DB Listener
  39. db_listener{ 'startlistener':
  40. ensure => 'running', # running|start|abort|stop
  41. oracle_base_dir => '/u01/app/oracle',
  42. oracle_home_dir => '/u01/app/oracle/product/12.1/db',
  43. os_user => 'oracle',
  44. listener_name => 'listener' # which is the default and optional
  45. }
  46.  
  47. oradb::database{ 'oraDb':
  48. oracle_base => '/u01/app/oracle',
  49. oracle_home => '/u01/app/oracle/product/12.1/db',
  50. version => '12.1',
  51. user => 'oracle',
  52. group => 'dba',
  53. template => 'dbtemplate_12.1',
  54. download_dir => '/install',
  55. action => 'create',
  56. db_name => 'orcl',
  57. db_domain => 'local',
  58. sys_password => 'oracle99',
  59. system_password => 'oracle99',
  60. character_set => 'AL32UTF8',
  61. nationalcharacter_set => 'UTF8',
  62. sample_schema => 'FALSE',
  63. memory_percentage => '40',
  64. memory_total => '800',
  65. database_type => 'MULTIPURPOSE',
  66. em_configuration => 'NONE',
  67. data_file_destination => '/u01/oradata',
  68. recovery_area_destination => '/u01/flash_recovery_area',
  69. init_params => {'open_cursors' => '1000',
  70. 'processes' => '600',
  71. 'job_queue_processes' => '4' },
  72. container_database => true,
  73. }
  74.  
  75. oradb::database_pluggable{'pdb1':
  76. ensure => 'present',
  77. version => '12.1',
  78. oracle_home_dir => '/u01/app/oracle/product/12.1/db',
  79. user => 'oracle',
  80. group => 'dba',
  81. source_db => 'orcl',
  82. pdb_name => 'pdb1',
  83. pdb_admin_username => 'pdb_adm',
  84. pdb_admin_password => 'oracle99',
  85. pdb_datafile_destination => "/u01/oradata/orcl/pdb1",
  86. create_user_tablespace => true,
  87. log_output => true,
  88. }
  89.  
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement