339. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 2/4/2019 11:34:25 AM Eastern 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.

339.1 Files compared

# Location File Last Modified
1 MHPRO_v1.x.zip MHPRO-MentalHealthCheckupInstallationGuidev1.0.11-240119-1418-4876.docx Fri Feb 1 16:16:54 2019 UTC
2 MHPRO_v1.x.zip MHPRO-MentalHealthCheckupInstallationGuidev1.0.11-240119-1418-4876.docx Mon Feb 4 00:46:24 2019 UTC

339.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 8 524
Changed 7 18
Inserted 0 0
Removed 0 0

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

339.4 Active regular expressions

No regular expressions were active.

339.5 Comparison detail

  1   Mental Hea lth Checku p Installa tion Guide  v1.0.11
  2  
  3   Introducti on
  4   Service an d Data Dep endencies
  5   Infrastruc ture and S ervice Dep endencies  Data Depen dencies
  6   Property C onfigurati ons
  7   Global Env ironment V ariables i n Consul
  8   Staff and  Veteran En vironment  Variables  in Consul  Applicatio n Install  Instructio ns
  9   Core Insta llation In structions : Database  Pre-popul ation
  10   Additional  Installat ion Instru ctions Doc umentation  Launchpad  Script
  11   Validation
  12   Back-Out P rocedures
  13   Back-Out f or First T ime Deploy ment (No E xisting Co ntainer) B ack-Out De ployment w ith Existi ng Contain er
  14  
  15  
  16   Introducti on
  17   This docum ent provid es instruc tions to i nstall Men tal Health  Checkup/M HPRO MT an d UI Provi der and Ve teran comp onents in  NextGen en vironment.
  18  
  19   Service Na me
  20   mhpro-web- veteran, m hpro-web-p rovider, m hpro-resou rce-provid er, mhpro- resource-v eteran
  21   Version
  22   v1.0.11
  23   Enclave
  24   Staff and  Veteran
  25  
  26  
  27   Service an d Data Dep endencies
  28  
  29   Infrastruc ture and S ervice Dep endencies
  30   API Gatewa y.
  31   Consul Ser ver and Co nsul Agent . PPG comp onents.
  32   Shared Ser vices (Use r Service,  MVI).
  33   Containers  above mus t already  be up and  running in side your  Docker Swa rm.
  34   Jenkins in stance mus t be runni ng in your  swarm e.g .: for MAE  Dev-Int,  it should  be  DNS . URL : PORT ). Base im ages shoul d be exist ed in DTR  for applic ation usag e (centos7 , tomcat,  weblogic,  etc).
  35  
  36  
  37   Data Depen dencies
  38   Existing M ongo datab ase must b e availabl e with the  provided  credential s. MVI
  39   Existing d atabase mu st be avai lable and  credential s and IP a ddresses k nown for e ach databa se that th e shared s ervices re quired.
  40  
  41  
  42   Property C onfigurati ons
  43   The follow ing fields  need to b e replaced  with valu es from co nsul or MI S admin Co nsul Token  - $TOKEN
  44   $ENV= VAMF _ENVIRONME NT variabl e Mongo db  server in  devInt
  45   $CONSUL_SE RVER = con sul http a ddress Mon go db pass word in de vInt KEYST ORE_PASSWO RD KEY_PAS SWORD
  46  
  47   MVI_END_PO INT – Admi n needs to  provide T RUSTSTORE_ PASSWORD
  48   608 is the  Vista sta tion numbe r in MAE 0 07/Dev-Int . Need to  be configu red for di fferent en vironments .
  49  
  50  
  51   Global Env ironment V ariables i n Consul
  52   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d '<admin  provides> ' http://$ CONSUL_HOS T/v1/kv/ap pconfig
  53   /$VAMF_ENV IRONMENT/g lobal/JWT_ SECRET
  54  
  55   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d "value"  http://$C ONSUL_HOST /v1/kv/app config/$VA MF_ENVIRON MENT/map2
  56   /weblogic/ ADMIN_NAME
  57  
  58   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d "value"  http://$C ONSUL_HOST /v1/kv/app config/$VA MF_ENVIRON MENT/map2
  59   /weblogic/ ADMIN_PASS WORD
  60  
  61   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d "-DUseS unHttpHand ler=true - Djavax.net .ssl.trust Store=<pat h to trust store - us ually:   / usr/java/j dk1.8.0_13 1/jre/lib/ security/c acerts">    -Djavax.n et.ssl.key Store=/opt /map2/mhpr o/mvicert. jks   -Dja vax.net.ss l. keyStor ePassword= <keystore  password>  -Dweblogic .managemen t.configur ation.SSLM Bean.usese rvercerts= true -Dweb logic.secu rity.SSL.  ignoreHost nameVerify  -Djavax.n et.debug=h andshake - Xms1024m - Xmx1024m - XX:Compile Threshold= 8000" http ://$CONSUL _HOST/v1/k v
  62   /appconfig /$VAMF_ENV IRONMENT/m hpro/v1/va riables/re source/USE R_MEM_ARGS
  63  
  64   For each V ista:
  65  
  66   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d "value"  http://$C ONSUL_HOST /v1/kv/app config/$VA MF_ENVIRON MENT/mhpro /v1
  67   /variables /resource/ vistalink/ 608/HOSTNA ME
  68  
  69   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d "vistal ink/608" h ttp://$CON SUL_HOST/v 1/kv/appco nfig/$VAMF _ENVIRONME NT
  70   /mhpro/v1/ variables/ resource/v istalink/6 08/JNDI_NA ME
  71  
  72   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d "608" h ttp://$CON SUL_HOST/v 1/kv/appco nfig/$VAMF _ENVIRONME NT/mhpro/v 1
  73   /variables /resource/ vistalink/ 608/STATIO N_NUMBER
  74  
  75   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d "value"  http://$C ONSUL_HOST /v1/kv/app config/$VA MF_ENVIRON MENT/mhpro /v1
  76   /variables /resource/ vistalink/ 608/VISTA_ ACCESS_COD E
  77  
  78   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d "value"  http://$C ONSUL_HOST /v1/kv/app config/$VA MF_ENVIRON MENT/mhpro /v1
  79   /variables /resource/ vistalink/ 608/VISTA_ PORT
  80  
  81   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d "change it" http:/ /$CONSUL_H OST/v1/kv/ appconfig/ $VAMF_ENVI RONMENT/mh pro
  82   /v1/variab les/resour ce/vistali nk/608/VIS TA_VERIFY_ CODE
  83  
  84  
  85   Staff and  Veteran En vironment  Variables  in Consul
  86   Add for bo th $TYPE=s taff and $ TYPE=veter an
  87  
  88   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'admin  provides'  http://$CO NSUL_HOST/ v1/kv/appc onfig/$VAM F_ENVIRONM ENT
  89   /mhpro/v1/ variables/ resource/$ TYPE/MONGO _HOST
  90  
  91   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'mhprod b' http:// $CONSUL_HO ST/v1/kv/a ppconfig/$ VAMF_ENVIR ONMENT/mhp ro
  92   /v1/variab les/resour ce/$TYPE/M ONGO_DBNAM E
  93  
  94   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'admin  provides'  http://$CO NSUL_HOST/ v1/kv/appc onfig/$VAM F_ENVIRONM ENT
  95   /mhpro/v1/ variables/ resource/$ TYPE/MONGO _USERNAME
  96  
  97   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'admin  provides'  http://$CO NSUL_HOST/ v1/kv/appc onfig/$VAM F_ENVIRONM ENT
  98   /mhpro/v1/ variables/ resource/$ TYPE/MONGO _PWD
  99  
  100   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'admin  provides'  http://$CO NSUL_HOST/ v1/kv/appc onfig/$VAM F_ENVIRONM ENT
  101   /mhpro/v1/ variables/ resource/$ TYPE/MONGO _PORT
  102  
  103   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'admin  provides'  http://$CO NSUL_HOST/ v1/kv/appc onfig/$VAM F_ENVIRONM ENT
  104   /mhpro/v1/ variables/ resource/$ TYPE/MONGO _SPECIALCH AR
  105  
  106   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'admin  provides'  http://$CO NSUL_HOST/ v1/kv/appc onfig/$VAM F_ENVIRONM ENT
  107   /mhpro/v1/ variables/ resource/$ TYPE/MONGO _SSL
  108  
  109   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d '/*' ht tp://$CONS UL_HOST/v1 /kv/appcon fig/$VAMF_ ENVIRONMEN T/mhpro/v1
  110   /variables /resource/ $TYPE/SPRI NG_SECURIT Y_FILTER_C HAIN_URLS
  111  
  112   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d '*' htt p://$CONSU L_HOST/v1/ kv/appconf ig/$VAMF_E NVIRONMENT /mhpro/v1
  113   /variables /resource/ $TYPE/CORS _ALLOWED_U RL_VALUE
  114  
  115   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d '/opt/m ap2/mhpro/ mvilog.txt ' http://$ CONSUL_HOS T/v1/kv/ap pconfig
  116   /$VAMF_ENV IRONMENT/m hpro/v1/va riables/re source/$TY PE/LOG_MVI _FILE_PATH
  117  
  118   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'MVI en dpoint add ress' http ://$CONSUL _HOST/v1/k v/appconfi g
  119   /$VAMF_ENV IRONMENT/m hpro/v1/va riables/re source/$TY PE/MVI_END _POINT
  120  
  121   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'YES' h ttp://$CON SUL_HOST/v 1/kv/appco nfig/$VAMF _ENVIRONME NT/mhpro/v 1
  122   /variables /resource/ $TYPE/USE_ MVI
  123  
  124   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'mvi pr ovides' ht tp://$CONS UL_HOST/v1 /kv/appcon fig/$VAMF_ ENVIRONMEN T
  125   /mhpro/v1/ variables/ resource/$ TYPE/KEYST ORE_PASSWO RD
  126  
  127   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d '/opt/m ap2/mhpro/ cacerts.jk s' http:// $CONSUL_HO ST/v1/kv/a ppconfig
  128   /$VAMF_ENV IRONMENT/m hpro/v1/va riables/re source/$TY PE/KEYSTOR E_PATH
  129  
  130   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'mvi pr ovides' ht tp://$CONS UL_HOST/v1 /kv/appcon fig/$VAMF_ ENVIRONMEN T
  131   /mhpro/v1/ variables/ resource/$ TYPE/KEY_P ASSWORD
  132  
  133   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'mvi pr ovides' ht tp://$CONS UL_HOST/v1 /kv/appcon fig/$VAMF_ ENVIRONMEN T
  134   /mhpro/v1/ variables/ resource/$ TYPE/TRUST STORE_PASS WORD
  135  
  136   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'java t rust store  path' htt p://$CONSU L_HOST/v1/ kv/appconf ig
  137   /$VAMF_ENV IRONMENT/m hpro/v1/va riables/re source/$TY PE/TRUSTST ORE_PATH
  138  
  139   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'admin  provides'  http://$CO NSUL_HOST/ v1/kv/appc onfig/$VAM F_ENVIRONM ENT
  140   /mhpro/v1/ variables/ resource/$ TYPE/JWT_P UBLIC_KEY
  141  
  142   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d '0 0/20  * * * ?'  http://$CO NSUL_HOST/ v1/kv/appc onfig/$VAM F_ENVIRONM ENT
  143   /mhpro/v1/ variables/ resource/$ TYPE/CRON_ EXPRESSION
  144  
  145   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d '0 30 2 3 * * ?' h ttp://$CON SUL_HOST/v 1/kv/appco nfig/$VAMF _ENVIRONME NT
  146   /mhpro/v1/ variables/ resource/$ TYPE/PROVI DER_CRON_E XPRESSION
  147  
  148   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 't3://l ocalhost:8 080' http: //$CONSUL_ HOST/v1/kv /appconfig
  149   /$VAMF_ENV IRONMENT/m hpro/v1/va riables/re source/$TY PE/VISTA_J NDI_URL
  150  
  151   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'MBAD,A PPLICATION  PROXY' ht tp://$CONS UL_HOST/v1 /kv/appcon fig
  152   /$VAMF_ENV IRONMENT/m hpro/v1/va riables/re source/$TY PE/VISTA_P ROXY_ID
  153  
  154   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'INFO'  http://$CO NSUL_HOST/ v1/kv/appc onfig/$VAM F_ENVIRONM ENT/mhpro/ v1
  155   /variables /resource/ $TYPE/LOG4 J_LOG_LEVE L
  156  
  157   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d '200MBM H' http:// $CONSUL_HO ST/v1/kv/a ppconfig/$ VAMF_ENVIR ONMENT/mhp ro
  158   /v1/variab les/resour ce/$TYPE/S ENDERID
  159  
  160   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d 'D' htt p://$CONSU L_HOST/v1/ kv/appconf ig/$VAMF_E NVIRONMENT /mhpro/v1
  161   /variables /resource/ $TYPE/MVIP ROCESSINGC ODE
  162  
  163   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  --data-bin ary "p12mo ngocertifi cateinbase 64" http:/ /$CONSUL_H OST/v1/kv/ appconfig
  164   /$VAMF_ENV IRONMENT/m hpro/v1/va riables/re source/$TY PE/MONGO_C ERT
  165  
  166   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  --data-bin ary "p12mv icertifica teinbase64 " http://$ CONSUL_HOS T/v1/kv/ap pconfig
  167   /$VAMF_ENV IRONMENT/m hpro/v1/va riables/re source/$TY PE/TRUST_S TORE_CERT
  168  
  169   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  --data-bin ary " p12m vicertific ateinbase6 4" http:// $CONSUL_HO ST/v1/kv/a ppconfig
  170   /$VAMF_ENV IRONMENT/m hpro/v1/va riables/re source/$TY PE/MVI_CER T
  171  
  172   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d "value"  http://$C ONSUL_HOST /v1/kv/app config/$VA MF_ENVIRON MENT/mhpro /v1
  173   /variables /resource/ $TYPE/ADMI N_NAME
  174  
  175   curl -H "X -Consul-To ken: $CONS UL_TOKEN"  -s -X PUT  -d "value"  http://$C ONSUL_HOST /v1/kv/app config/$VA MF_ENVIRON MENT/mhpro /v1
  176   /variables /resource/ $TYPE/ADMI N_PASSWORD
  177  
  178  
  179   Applicatio n Install  Instructio ns
  180  
  181   Core Insta llation In structions :
  182   For the co de reposit ory above,  in order  to deploy  the Mhpro  applicatio n containe rs, you wi ll be doin g the foll owing step s over VPN  or on a j ump box wh ere you ac cess the a ffected se rvices:
  183  
  184   Clone the  Mhpro repo sitory on  the v1.0.1 1 tag
  185   git clone  https:// DNS . URL /scm/mhpro /mhpro-res ources.git
  186  
  187   (MHPRO Res ources)
  188  
  189   git clone  https:// DNS . URL /scm/mhpro /mhpro-web .git
  190   Clone the  Automation  Repositor y – Follow  the autom ation inst ructions
  191   https:// DNS . URL /projects/ DEV/repos/ automation /browse
  192   https:// DNS . URL /projects/ DEV/repos/ automation /browse/jo bs
  193   Follow the  automatio n instruct ions to cr eate Jenki ns jobs fr om step #2  above.
  194   Go to Jenk ins and ve rify that  the three  jobs have  been creat ed.
  195   Create Nex us reposit ory for th e applicat ion – “mhp ro”.
  196   (MHPRO UI)
  197  
  198   Create Doc ker reposi tory in DT R (mhpro-w eb-veteran , mhpro-we b-provider , mhpro-re source-sta ff, mhpro- resource-v eteran).
  199   Registerin g MHPRO se rvices in  Consul (mh pro-resour ce-staff,  mhpro-reso urce-veter an, mhpro- web-provid er, mhpro- web-vetera n).
  200   Execute th e –build-j ob in Jenk ins and th is will ki ck off the  build ima ge job.
  201   If there a re no erro r, kick of f –deploy- job and th is job wil l create a  container .
  202  
  203  
  204   Database P re-populat ion
  205   Scripts ha ve been de veloped th at will in itialize t he collect ions neede d by Menta l Health C heckup in  MongoDB. T he scripts  can be lo cated in t he Mental  Health Che ckup repos itories in  Stash at  https:// DNS . URL /projects/ MHPRO/repo s/mhpro-re sources/br owse /Dockerfil e?at=refs% 2Fheads%2F release%2F 1.0 . Once you  navigate  to this re pository,  the script s and data  files can  be found  in the “da ta” folder . To initi alize the  collection s:
  206  
  207   Transfer t he file na med loadMo ngoData.js  MongoDB L inux serve r.
  208   Change you r current  directory  to where t he file wa s transfer red.
  209   Mongo shel l along wi th a JavaS cript file  will be u sed to loa d the data  in to Mon goDB. Ther e are 5 pi eces of in formation  needed in  order to e xecute the  script:
  210   mongoHost  – the serv er name fo r MongoDB
  211   mongoPort  – the port  number th e Mongo da emon is li stening
  212   mongoDbNam e – the Me ntal Healt h checkup  database n ame ‘mhpro db’
  213   userId – t he user id  created i n the data base insta llation sc ript
  214   userPwd –  the passwo rd for the  user id c reated
  215   Execute th e script r eplacing t he appropr iate param eters in i talics bel ow with th e values c ollected a bove:
  216   mongodb_in itialize
  217  
  218  
  219   mongo --ss l --sslAll owInvalidC ertificate s -u userI d -p "user Pwd" mongo Host:mongo Port/ mong oDbName lo adMongoDat a.js
  220  
  221   Where load MongoData. js is here : https:// DNS . URL /projects/ MHPRO/repo s/mhpro-re sources/br owse/data/ loadMongoD ata.js? at =refs%2Fhe ads%2Frele ase%2F1.0
  222  
  223  
  224   Additional  Installat ion Instru ctions Doc umentation
  225   Overall de ployment p rocedure d ocument: h ttps:// DNS . URL /pages/vie wpage.acti on? title= NextGen+pi peline+dep loyment+of +a+micro-s ervice&spa ceKey=LP
  226   NextGen     Platform     SDD:     https:// DNS . URL pages/view page.actio n?title=Sy stem+Desig n+Document +%28SDD%29 +-
  227   +NextGen&s paceKey=WB M
  228  
  229  
  230   Launchpad  Script
  231   N/A. Curre ntly, ther e is no La unchpad in  NG $ENV o r NG Dev-I nt. IAM wo rk is in p rogress.
  232  
  233  
  234   Validation
  235  
  236   Validate M entalHealt hCheckup V eteran
  237   https://ap igatewayho st/mhc-vet /
  238   Select SSO e login
  239   Enter cred entials
  240   MHPRO appl ication sh ould be di splayed.
  241   Validate M entalHealt hCheckUp P rovider
  242   https://ap igatewayho st/mhc-pro vider/
  243   Select SSO i login
  244   Enter cred entials
  245   Select pro vider stat ion
  246   MHPRO appl ication sh ould be di splayed
  247   Delete the  container .
  248   Delete the  image.
  249   Delete the  container .
  250  
  251   Delete the  image.
  252   Back out t he configu rations.
  253   Back out t he data ba se changes .
  254   Run the Je nkins jobs  with prod uction cod e base.
  255  
  256  
  257   Back-Out P rocedures
  258  
  259   Back-Out f or First T ime Deploy ment (No E xisting Co ntainer)
  260  
  261   Delete the  container .
  262   Delete the  image.
  263  
  264  
  265   Back-Out D eployment  with Exist ing Contai ner
  266  
  267   Delete the  container .
  268   Delete the  image.
  269   Back out t he configu rations.
  270   Back out t he data ba se changes .
  271   Run the Je nkins jobs  with prod uction cod e base.