157. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/1/2018 12:13:19 PM Central Standard 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.

157.1 Files compared

# Location File Last Modified
1 ehealth_xchange_cif.zip\NHIN_adapter\vagrant-scripts provision.sh Thu Feb 22 14:19:30 2018 UTC
2 ehealth_xchange_cif.zip\NHIN_adapter\vagrant-scripts provision.sh Tue Feb 27 14:53:45 2018 UTC

157.2 Comparison summary

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

157.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

157.4 Active regular expressions

No regular expressions were active.

157.5 Comparison detail

  1   #!/bin/sh
  2  
  3   echo "Inst alling Des ktop"
  4   yum -y gro upinstall  "Desktop"  "Desktop P latform" " X Window S ystem" "Fo nts"
  5   yum -y ins tall xorg- x11-apps x term zip u nzip vim b c net-tool s httpd mo d_ssl
  6  
  7   echo "Addi ng oracle  user."
  8   groupadd d ba
  9   useradd or acle -g db a
  10   mkdir -p / u01/app
  11   chown -R o racle:dba  /u01/app
  12  
  13   echo "Addi ng vagrant  to dba gr oup."
  14   usermod -a  -G dba va grant
  15  
  16   echo "Down loading in stallers.. ."
  17   if [ ! -d  /ehx/.vagr ant/Softwa re/ehx ];  then
  18     mkdir -p  /ehx/.vag rant/Softw are/ehx
  19     curl htt ps://downl oads.vetse z.net/Down loads/jdk- 8u121-linu x-x64.tar. gz -o /ehx /.vagrant/ Software/e hx/jdk-8u1 21-linux-x 64.tar.gz
  20     curl htt ps://downl oads.vetse z.net/Down loads/fmw_ 12.2.1.2.0 _wls_Disk1 _1of1.zip  -o /ehx/.v agrant/Sof tware/ehx/ fmw_12.2.1 .2.0_wls_D isk1_1of1. zip
  21     curl htt ps://downl oads.vetse z.net/Down loads/orac le-xe-11.2 .0-1.0.x86 _64.rpm.zi p -o /ehx/ .vagrant/S oftware/eh x/oracle-x e-11.2.0-1 .0.x86_64. rpm.zip
  22   fi
  23  
  24   echo "Inst alling JDK ."
  25   runuser -l  oracle <<  STOP
  26   mkdir -p / u01/app/or acle/java
  27   tar -C /u0 1/app/orac le/java -x zf /ehx/.v agrant/Sof tware/ehx/ jdk-8u121- linux-x64. tar.gz
  28   pushd /u01 /app/oracl e/java
  29   ln -s jdk1 .8.0_121 l atest
  30   popd
  31   STOP
  32  
  33   echo "Inst aling webl ogic"
  34   runuser -l  oracle <<  STOP
  35   echo "  Cr eating ora Inst.loc."
  36   mkdir -p / u01/app/or acle/oraIn ventory
  37   cat << STO P2 >/u01/a pp/oracle/ oraInvento ry/oraInst .loc
  38   inventory_ loc=/u01/a pp/oracle/ oraInvento ry
  39   inst_group =dba
  40   STOP2
  41   echo "  Ru nning WebL ogic Insta ller."
  42   export JAV A_HOME=/u0 1/app/orac le/java/la test
  43   pushd /tmp
  44   unzip /ehx /.vagrant/ Software/e hx/fmw_12. 2.1.2.0_wl s_Disk1_1o f1.zip
  45   /u01/app/o racle/java /latest/bi n/java -Dj ava.securi ty.egd=fil e:/dev/./u random -ja r fmw_12.2 .1.2.0_wls .jar -sile nt -respon seFile /eh x/vagrant- scripts/wl s.rsp -inv PtrLoc /u0 1/app/orac le/oraInve ntory/oraI nst.loc
  46   popd
  47   echo "  Co nfigure We bLogic to  use /dev/u random."
  48   cat << STO P2 >>/u01/ app/oracle /weblogic/ oracle_com mon/common /bin/commB aseEnv.sh
  49   # use /dev /urandom t o generate  random nu mbers to s peed up we blogic.
  50   # change m ade here s o that eve rything we  use in WL  installat ion
  51   # can bene fit.
  52   export JAV A_OPTIONS= "\\\$JAVA_ OPTIONS -D java.secur ity.egd=fi le:/dev/./ urandom"
  53   export CON FIG_JVM_AR GS="\\\$CO NFIG_JVM_A RGS -Djava .security. egd=file:/ dev/./uran dom"
  54   STOP2
  55   STOP
  56  
  57   echo "Inst alling Ora cle XE"
  58   # trick XE  installer  into thin king we ha ve 2GB of  swap space .
  59   mv /usr/bi n/free /us r/bin/free .bak
  60   printf "#! /bin/sh\ne cho Swap -  - 2048" > /usr/bin/f ree
  61   chmod +x / usr/bin/fr ee
  62   # end tric k
  63   unzip /ehx /.vagrant/ Software/e hx/oracle- xe-11.2.0- 1.0.x86_64 .rpm.zip - d /tmp/XE
  64   pushd /tmp /XE/Disk1
  65   rpm -ivh o racle-xe-1 1.2.0-1.0. x86_64.rpm  >/tmp/XE/ install.lo g
  66   ORA_INSTAL L_STATUS=$ ?
  67   /etc/init. d/oracle-x e configur e response File=/ehx/ vagrant-sc ripts/xe.r sp >>/tmp/ XE/install .log
  68   popd
  69   if [ $ORA_ INSTALL_ST ATUS -ne 0  ]; 
  70   then
  71       echo - e "\nOracl e RDBMS 11 g was not  installed  successful ly. There  are some p roblems in stalling i t.\nLook i nto the lo g for more  details,  /tmp/XE/in stall.log.  \nExiting ...."
  72       exit $ ORA_INSTAL L_STATUS
  73   else 
  74       echo - e "Oracle  RDBMS 11g  was instal led succes sfully. OR A_INSTALL_ STATUS=$OR A_INSTALL_ STATUS. \n "
  75   fi
  76   # undo tri ck
  77   rm -f /usr /bin/free
  78   mv /usr/bi n/free.bak  /usr/bin/ free
  79   # end undo  trick
  80  
  81   echo "Add  Java, Orac le and Web Logic to p aths."
  82   tee -a ~va grant/.bas h_profile  ~oracle/.b ash_profil e << STOP
  83   export JAV A_HOME=/u0 1/app/orac le/java/la test
  84   export WL_ HOME=/u01/ app/oracle /weblogic
  85   export PAT H=\$WL_HOM E/oracle_c ommon/comm on/bin:\$J AVA_HOME/b in:\$PATH
  86   . /u01/app /oracle/pr oduct/11.2 .0/xe/bin/ oracle_env .sh
  87   STOP
  88   tee -a ~va grant/.bas hrc ~oracl e/.bashrc  << STOP
  89   alias debu gwl='cd /u 01/app/dom ains/ehx_d evl && ./s tartDomain Debug.sh & & tail -f  servers/ad min/logs/e hx_devl.ou t'
  90   alias debu gwlm='cd / u01/app/do mains/ehx_ devl && ./ startDomai nDebugWith Mocks.sh & & tail -f  servers/ad min/logs/e hx_devl.ou t'
  91   alias stop wl='cd /u0 1/app/doma ins/ehx_de vl && bin/ stopWebLog ic.sh'
  92   alias logw l='cd /u01 /app/domai ns/ehx_dev l && tail  -f servers /admin/log s/ehx_devl .out'
  93   STOP
  94  
  95   echo "Give  everyone  in dba gro up write p rivs on /u 01/app."
  96   chmod -R g +w /u01/ap p
  97  
  98   echo -e "\ nSet up th e ADAPTER  schema.  L ook in /tm p/BuildDB. log for lo g output."
  99   runuser -l  oracle <<  STOP
  100   pushd /ehx /DBScripts
  101   . ./BuildD B.sh &>/tm p/BuildDB. log
  102   popd
  103   STOP
  104  
  105   echo "Set  up ehx_dev l weblogic  domain."
  106   runuser -l  vagrant < < STOP
  107   wlst.sh /e hx/vagrant -scripts/e hx_devl.py
  108   cp /ehx/va grant-scri pts/weblog ic/* /u01/ app/domain s/ehx_devl
  109   STOP
  110  
  111   echo "Add  MOCK-HOST  to /etc/ho sts."
  112   echo -e " IP        \tMOCK-HOS T" >>/etc/ hosts
  113  
  114   echo "Set  up Apache. "
  115   echo "  Co py vhost a nd cert fi les."
  116   cp /ehx/we blogic/dom ains/ehx_d evl/config /httpd/* / etc/httpd/ conf.d
  117   mkdir -p / etc/pki/tl s/certs/eh x
  118   cp /ehx/ce rts/* /etc /pki/tls/c erts/ehx
  119   echo "  Al low httpd  to connect  to localh ost."
  120   setsebool  -P httpd_c an_network _connect 1
  121   echo "  En able and s tart httpd  service."
  122   systemctl  enable htt pd
  123   systemctl  start http d