49. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/2/2017 1:40:04 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

49.1 Files compared

# Location File Last Modified
1 chef-repo.zip\chef-repo\project_cookbooks\ehmp_oracle\recipes gateway_config.rb Wed Jul 5 22:28:39 2017 UTC
2 chef-repo.zip\chef-repo\project_cookbooks\ehmp_oracle\recipes gateway_config.rb Mon Oct 2 15:11:38 2017 UTC

49.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 248
Changed 1 2
Inserted 0 0
Removed 0 0

49.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

49.4 Active regular expressions

No regular expressions were active.

49.5 Comparison detail

  1   #
  2   # Cookbook  Name:: or acle-xe_wr apper
  3   # Recipe::  gateway_c onfig
  4   #
  5  
  6   mssql = fi nd_optiona l_node_by_ role("pcmm db", node[ :stack]) | | data_bag _item('ser vers', 'pc mmdb').to_ hash
  7  
  8   execute 'c ycle_lsnrc tl' do
  9     command  "export OR ACLE_HOME= #{node[nod e['ehmp_or acle']['or acle_servi ce']]['hom e']}; sudo  -Eu oracl e #{node[n ode['ehmp_ oracle'][' oracle_ser vice']]['h ome']}/bin /lsnrctl s top; sudo  -Eu oracle  #{node[no de['ehmp_o racle']['o racle_serv ice']]['ho me']}/bin/ lsnrctl st art;"
  10     action : nothing
  11   end
  12  
  13   remote_fil e "#{Chef: :Config.fi le_cache_p ath}/gatew ays.zip" d o
  14     use_cond itional_ge t true
  15     source n ode[node[' ehmp_oracl e']['oracl e_service' ]]['oracle _gateway'] ['url']
  16     mode '75 5'
  17     notifies  :delete,  "directory [#{node[no de['ehmp_o racle']['o racle_serv ice']]['or acle_gatew ay']['conf ig_dir']}] ", :immedi ately
  18   end
  19  
  20   directory  node[node[ 'ehmp_orac le']['orac le_service ']]['oracl e_gateway' ]['config_ dir'] do
  21           ow ner 'oracl e'
  22           gr oup node[n ode['ehmp_ oracle'][' oracle_ser vice']]['g roup']
  23           mo de '755'
  24           re cursive tr ue
  25           ac tion :crea te
  26   end
  27  
  28   execute "e xtract_gat eways.zip"  do
  29     cwd node [node['ehm p_oracle'] ['oracle_s ervice']][ 'oracle_ga teway']['c onfig_dir' ]
  30     command  "sudo -Eu  oracle unz ip -o #{Ch ef::Config .file_cach e_path}/ga teways.zip "
  31     notifies  :create,  "template[ #{node[nod e['ehmp_or acle']['or acle_servi ce']]['ora cle_gatewa y']['confi g_dir']}/g ateways/re sponse/tg4 msql.rsp]" , :immedia tely
  32     notifies  :run, 'ex ecute[prov ision_gate way]', :im mediately
  33     notifies  :create,  "template[ #{node[nod e['ehmp_or acle']['or acle_servi ce']]['ora cle_gatewa y']['home' ]}/gateway s/dg4msql/ admin/init dg4ehmp.or a]", :imme diately
  34     notifies  :run, "ex ecute[inse rt_#{node[ 'ehmp_orac le']['orac le_service ']}_listen er]", :imm ediately
  35     notifies  :run, 'ex ecute[inse rt tnsname s]', :imme diately
  36     notifies  :run, 'ex ecute[cycl e_lsnrctl] ', :immedi ately
  37     only_if  { (Dir.ent ries(node[ node['ehmp _oracle'][ 'oracle_se rvice']][' oracle_gat eway']['co nfig_dir'] ) - %w{ .  .. }).empt y? }
  38   end
  39  
  40  
  41   template " #{node[nod e['ehmp_or acle']['or acle_servi ce']]['ora cle_gatewa y']['confi g_dir']}/g ateways/re sponse/tg4 msql.rsp"  do
  42           so urce "orac le-xe_tg4m sql.rsp.er b"
  43           ow ner 'oracl e'
  44           gr oup node[n ode['ehmp_ oracle'][' oracle_ser vice']]['g roup']
  45           va riables(
  46                    :ora cle_home = > "#{node[ node['ehmp _oracle'][ 'oracle_se rvice']][' oracle_gat eway']['ho me']}/gate ways",
  47                    :ora cle_base = > node["#{ node['ehmp _oracle'][ 'oracle_se rvice']}"] ['base'],
  48       :oracl e_group =>  node[node ['ehmp_ora cle']['ora cle_servic e']]['grou p'],
  49       :mssql  => mssql,
  50       :confi g_dir => n ode[node[' ehmp_oracl e']['oracl e_service' ]]['oracle _gateway'] ['config_d ir']
  51           )
  52           ac tion :noth ing
  53   end
  54  
  55   template " #{node[nod e['ehmp_or acle']['or acle_servi ce']]['ora cle_gatewa y']['home' ]}/gateway s/dg4msql/ admin/init dg4ehmp.or a" do
  56           so urce "orac le_initdg4 .ora.erb"
  57           ow ner 'oracl e'
  58           gr oup node[n ode['ehmp_ oracle'][' oracle_ser vice']]['g roup']
  59           va riables(
  60                    :mss ql => mssq l
  61           )
  62     notifies  :run, 'ex ecute[cycl e_lsnrctl] ', :immedi ately
  63   end 
  64  
  65   execute "p rovision_g ateway" do
  66           cw d "#{node[ node['ehmp _oracle'][ 'oracle_se rvice']][' oracle_gat eway']['co nfig_dir'] }/gateways "
  67           co mmand "sud o -Eu orac le #{node[ node['ehmp _oracle'][ 'oracle_se rvice']][' oracle_gat eway']['co nfig_dir'] }/gateways /runInstal ler -silen t -waitfor completion  -noconfig  -response File #{nod e[node['eh mp_oracle' ]['oracle_ service']] ['oracle_g ateway'][' config_dir ']}/gatewa ys/respons e/tg4msql. rsp -invPt rLoc #{nod e[node['eh mp_oracle' ]['oracle_ service']] ['base']}/ oraInst.lo c"
  68           ac tion :noth ing
  69     notifies  :run, "ex ecute[stop _oracle]",  :before
  70     notifies  :run, "ex ecute[star t_oracle]" , :immedia tely
  71   end
  72  
  73   SID_NAME =  "dg4ehmp"
  74  
  75   listener_o racle_xe =  "\\
  76         (SID _DESC=\\
  77            ( SID_NAME=# {SID_NAME} )\\
  78            ( ORACLE_HOM E=#{node[n ode['ehmp_ oracle'][' oracle_ser vice']]['o racle_gate way']['hom e']}/gatew ays)\\
  79            ( ENVS=LD_LI BRARY_PATH =#{node[no de['ehmp_o racle']['o racle_serv ice']]['or acle_gatew ay']['home ']}/gatewa ys/dg4msql /driver/li b:#{node[n ode['ehmp_ oracle'][' oracle_ser vice']]['o racle_gate way']['hom e']}/gatew ays/lib)\\
  80            ( PROGRAM=dg 4msql)\\
  81         )"
  82  
  83   listener_o racle = "S ID_LIST=(S ID_DESC=(S ID_NAME=#{ SID_NAME}) (ORACLE_HO ME=#{node[ node['ehmp _oracle'][ 'oracle_se rvice']][' oracle_gat eway']['ho me']}/gate ways)(ENVS =LD_LIBRAR Y_PATH=#{n ode[node[' ehmp_oracl e']['oracl e_service' ]]['oracle _gateway'] ['home']}/ gateways/d g4msql/dri ver/lib/:# {node[node ['ehmp_ora cle']['ora cle_servic e']]['orac le_gateway ']['home'] }/gateways /lib)(PROG RAM=dg4msq l))"
  84  
  85   tnsnames =  "\\
  86   #{SID_NAME }  =\\
  87     (DESCRIP TION=\\
  88         (ADDRESS=( PROTOCOL=t cp)(HOST=l ocalhost)( PORT= PORT      ))\\
  89       (CONNE CT_DATA=(S ID=#{SID_N AME}))\\
  90       (HS=OK )\\
  91     )"
  92  
  93  
  94   ruby_block  "insert_l isteners"  do
  95     notifies  :run, "ex ecute[inse rt_#{node[ 'ehmp_orac le']['orac le_service ']}_listen er]", :imm ediately
  96           ac tion :noth ing
  97   end
  98  
  99   execute 's tart_oracl e' do
  100     command  "sudo serv ice #{node ['ehmp_ora cle']['ora cle_servic e']} start "
  101     action : nothing
  102   end
  103  
  104   execute 's top_oracle ' do
  105     command  "sudo serv ice #{node ['ehmp_ora cle']['ora cle_servic e']} stop"
  106     action : nothing
  107   end
  108  
  109   execute "i nsert_orac le_listene r" do
  110     cwd "#{n ode[node[' ehmp_oracl e']['oracl e_service' ]]['home'] }/network/ admin"
  111     command  "sudo -Eu  oracle sed  -i.orig ' s|SID_LIST \=|#{liste ner_oracle }|' listen er.ora"
  112     action : nothing
  113   end
  114  
  115   execute "i nsert_orac le-xe_list ener" do
  116     cwd "#{n ode[node[' ehmp_oracl e']['oracl e_service' ]]['home'] }/network/ admin"
  117     command  "sudo -Eu  oracle sed  -i.orig ' /SID_LIST  \=/a #{lis tener_orac le_xe}' li stener.ora "
  118     action : nothing
  119   end
  120  
  121   execute "i nsert tnsn ames" do
  122           cw d "#{node[ node['ehmp _oracle'][ 'oracle_se rvice']][' home']}/ne twork/admi n"
  123           co mmand "sud o -Eu orac le sed -i. orig '$ a  #{tnsnames }' tnsname s.ora"
  124           ac tion :noth ing
  125   end