From 4117f59f2cf708a2ab6b311b598102821adc9924 Mon Sep 17 00:00:00 2001 From: Joy A Date: Tue, 9 Jan 2024 18:14:02 +0530 Subject: [PATCH] avniproject/avni-product#1445 | RWB staging env --- configure/Makefile | 12 + .../rwb_staging-secret-vars.yml.enc | 245 ++++++++++++++++++ configure/group_vars/rwb_staging_vars.yml | 76 ++++++ configure/inventory/rwb_prod | 10 + configure/inventory/rwb_staging | 5 + configure/rwb_staging_avni_servers.yml | 20 ++ configure/rwb_staging_etl_servers.yml | 15 ++ configure/rwb_staging_rules_server.yml | 18 ++ 8 files changed, 401 insertions(+) create mode 100644 configure/group_vars/rwb_staging-secret-vars.yml.enc create mode 100644 configure/group_vars/rwb_staging_vars.yml create mode 100644 configure/inventory/rwb_prod create mode 100644 configure/inventory/rwb_staging create mode 100644 configure/rwb_staging_avni_servers.yml create mode 100644 configure/rwb_staging_etl_servers.yml create mode 100644 configure/rwb_staging_rules_server.yml diff --git a/configure/Makefile b/configure/Makefile index a035e70..a56f786 100644 --- a/configure/Makefile +++ b/configure/Makefile @@ -74,6 +74,10 @@ avni-prod: check-web-zip-path check-app-zip-path check-vault-pwd-file avni-onpremise: check-web-zip-path check-app-zip-path check-vault-pwd-file WEBAPP_ZIP_PATH=$(web_zip_path) WEBAPP_ZIP_FILE_NAME=avni-webapp.tgz APPLICATION_ZIP_PATH=$(app_zip_path) APPLICATION_ZIP_FILE_NAME=avni-server-0.0.1-SNAPSHOT.jar ansible-playbook onpremise_avni_servers.yml -i inventory/onpremise --vault-password-file ${VAULT_PASSWORD_FILE} +rwb-staging: check-web-zip-path check-app-zip-path check-vault-pwd-file + WEBAPP_ZIP_PATH=$(web_zip_path) WEBAPP_ZIP_FILE_NAME=avni-webapp.tgz APPLICATION_ZIP_PATH=$(app_zip_path) APPLICATION_ZIP_FILE_NAME=avni-server-0.0.1-SNAPSHOT.jar ansible-playbook rwb_staging_avni_servers.yml -i inventory/rwb_staging --vault-password-file ${VAULT_PASSWORD_FILE} \ + --extra-vars '{"application_user":"avni-server-user"}' + configure-reverse-proxy: ansible-playbook reverse_proxy_server.yml -i inventory/onpremise @@ -110,6 +114,10 @@ decrypt: check-vault-pwd-file ansible-vault decrypt group_vars/vagrant-secret-vars.yml --vault-password-file ${VAULT_PASSWORD_FILE} ansible-vault decrypt group_vars/onpremise-secret-vars.yml --vault-password-file ${VAULT_PASSWORD_FILE} +decrypt_env: check-vault-pwd-file + cp group_vars/$(env)-secret-vars.yml.enc group_vars/$(env)-secret-vars.yml + ansible-vault decrypt group_vars/$(env)-secret-vars.yml --vault-password-file ${VAULT_PASSWORD_FILE} + encrypt: check-vault-pwd-file ansible-vault encrypt group_vars/prod-secret-vars.yml --vault-password-file ${VAULT_PASSWORD_FILE} ansible-vault encrypt group_vars/staging-secret-vars.yml --vault-password-file ${VAULT_PASSWORD_FILE} @@ -122,6 +130,10 @@ encrypt: check-vault-pwd-file cp group_vars/vagrant-secret-vars.yml group_vars/vagrant-secret-vars.yml.enc cp group_vars/onpremise-secret-vars.yml group_vars/onpremise-secret-vars.yml.enc +encrypt_env: check-vault-pwd-file + ansible-vault encrypt group_vars/$(env)-secret-vars.yml --vault-password-file ${VAULT_PASSWORD_FILE} + cp group_vars/$(env)-secret-vars.yml group_vars/$(env)-secret-vars.yml.enc + etl-onpremise: check-app-zip-path check-vault-pwd-file APPLICATION_ZIP_PATH=$(app_zip_path) APPLICATION_ZIP_FILE_NAME=etl-1.0.0-SNAPSHOT.jar ansible-playbook onpremise_etl_servers.yml -i inventory/onpremise --vault-password-file ${VAULT_PASSWORD_FILE} diff --git a/configure/group_vars/rwb_staging-secret-vars.yml.enc b/configure/group_vars/rwb_staging-secret-vars.yml.enc new file mode 100644 index 0000000..b10d15f --- /dev/null +++ b/configure/group_vars/rwb_staging-secret-vars.yml.enc @@ -0,0 +1,245 @@ +$ANSIBLE_VAULT;1.1;AES256 +30396332626333313032666130353739643266396466376238393632336166393731636330313763 +6539643164616436666462366361636636323232376663340a313266653930626131373136633131 +30373764613238373738303533613437653961336237346262373438633033363735373764373332 +3931373465396535610a326461363931316331396465323161646366336637323735666439323838 +37666361616661333831363335626562306430666165313939376531653566363065643037366637 +36366534386161623039663936623435313264306335363331653337363861353435633431626563 +31663536326564663065356433323939396233313362613735353833346131663165616435646235 +31386338623665386564663531666366343835343130383932326264623231326561636137643334 +35646161333032623338663664323266633336626463623138663639353033613634613362626261 +36363834383538616330386533313562323561666132333136356666356130333033363566363332 +32613532653338393238373361633465373831386437383366383233616464333637663831646664 +35383063616163336532346533653138393131316363373230326564326334386231373831363363 +64636537666431613165653131383936353235373230313261383433316361316136323231393537 +36346638383764633236663239633236663136393930306337623639313630313164623332323430 +34373533626266653136353965316465616639393137356535386632663439343737623137383161 +30323835623139333137396664313230636433646163613865333932643030643633333039663332 +64656430656165613163323436616338616261303430623166633231326636376234386335386561 +32663338393231326336333038373966313438653762653236636433633736626536313661643630 +61623236646365653366616462633332343633376633613531363737373866303864633364663365 +36316465373132613330336639303030383765313638323563343262646533663330643765343934 +62343135616431343238663233393433646138363634336332623334306338626637386532353635 +62313764363736633630396164353033376334326134316336643763643336623362353463363263 +30616337366363323165353232363136643336636362383166303861623836643861396563393965 +64356531306437663434666633636162616166653239336432626630653031303639633761336361 +61653035643763316565313733343038366630653537656364326134333830303462313566323737 +30393438323736386339386335633063386531623464326232303630633036626565326330396266 +63376138353665346465386336326361303639643735386437663463306139636131366563663837 +31616134353731633633313238643336633330633938353234353066333564646130333761663532 +62653739666466663430326436333963663932316561303862636562653264336231373637626235 +66323636626638663837346135363232336437646663303761393237306538306235646531363431 +38623239323436386461306637306266343435373131333061646634313234633834663831316564 +36306439663731373637353737346262356162656462653061316436336665663436343539353732 +31656436323738366439616330326430346264363366313666653336653930333438656162383437 +36366366363964363563303863616132386537356332613366663533306338653836343230323463 +66303564336638373637343265376438643935373337666662396662323863323630356336366331 +33396430393735356339643065373132623131333134386466303863396166383033633431656135 +30383236626630613533666430343035323664316234663064613564373830396437656565326436 +31616630656433346433363539663566663663346433313934663365323131633231626665366661 +30386634623537333638653933343235393334623461343762393834633165306664353934366533 +33333837656662643861376264366337363863303066646661393836616666346432346661373563 +39663064356232303065653461376434666439326435356437623664396365643936636637626362 +39343462386337613635373630336133366463323337376435313231313237646634636663326566 +61666163373737326133366463613137303762383538303465336430623731393564303866353436 +37383563363931356438366333646438356537613034666332393939633332343933396263323930 +33326637326639383339376364343161303961666635626162346662393231346437623662396163 +31633230623664613363336631336437643966616330643765316230313130363362636534626635 +63303432623533633065653231393266353934663939663635626464646664636366316238316163 +63396263616166613666313637626637616664363166336361343863643335386662316631626537 +66623464316530623235393231393330323165326639393162353331366564653732383463666462 +37623363363937356233626163653639633366303730366435383263363637363335366464346562 +31303461396533343231303031383931376364386161306362653138303639393764303863386236 +61333431363930333562333036363034313933333232646663316235636664623539343837393237 +35333963346461323863623565383465303434353531646239343832613266623764663832323435 +65376265636639616361303237386230663133326263613838373231373163323630343636303565 +35363338396131643333623062626661393830386331656536376664643462393135616261633835 +37386139626438653032396134306132613861313461623666363165656239656237306637313432 +33353936333537333239333661363233313336376138613365626135356631636631613434626639 +37653761636236313062363230393732386135393830613134373039323338346535383033313937 +63396632346134333334653131633238383532303131626563316166623966333863383666616631 +31356165393237653865353738306131373532313337396532643931303565313365653435623932 +61316636333337303865643031613662316432303362356635393530383836626335343732613435 +32376231393365326664353639643563386261633436343962306137346235633363646433353438 +36376261653663343032323131373931336131363039613064386236616539613531616636376163 +36373961376238356563363361653463386633373761626434363536626366383436333363366134 +37666537326536306435333231616361663530376538376663646634376537343130313233303933 +31386466383264656133323065393030653539363164373866356134666139323230636261653462 +32353034363331623066643233313463316463366335336261366666363631303333633934366135 +36343863303031396334616637333362376362623365306234623231303237636135626636366339 +36326632613531626338626464306131626631353837666131633163653830356631613138353336 +37333437393635653836393832633034333066346336313735336634373563336638386161306463 +37616561656265356330366239623531666365643862393064313934623834313861663232323962 +38393035633361373339353038613937336432316235643635613333373838323563303838616563 +39656162653736363938386361363438313037663261303330663064616364653633313932333064 +32316131323164643765623531353638373939363566343061666639356137303036643635613063 +34343133326233363536346634663738666664356264353133356539633863653862353835313863 +39316339636439383430303462353837623138616430613832633637396133343238316236323434 +36316162653064313865636661333064373362643232353538303430343738643666386336623734 +31653130366666343130393438313530353035353064306365363166343064633538323665363135 +38613264363364663234336234616662313866303461666563376563346232636165356439613666 +37333263333862316566393364383337663131306237343738316264363035393234353632343531 +64653266653362643134373730616565373938393939626266333033333638386366646433653534 +31353838346437363837633834373661353461326465383435626334653331616664336633373935 +64663064393663633630626438663638333031326565393138616465346366306237356133363232 +37333832626531316133356262363735613765353037336262376233653432346663666332393665 +35626231323962386465393133373165626338313532343337316665633932626132313031323239 +34653363663563326133393561663761633139376435343039303366623233343061323863646665 +66356161656631636366356161303731313533306438353435663834366130353930393261333762 +33363064633265663664393937343835303939333261346435376337316637613439396231656231 +63303231356432343139623930623562653432343465386530353662636230386136313833623434 +34643264646235346636336432353031306234373364313566666433633331303761656530383939 +65623764336137623636333639383966323536303666666461383634646164666164386165383836 +62623463323137363732663839623961626161356233663433633130363835636365363364383931 +33303065343531333638373839376331396663633333643762656666373734616432353139616631 +39323164353335326363313464383930386563356133363764356466383530313830326435376438 +32356363323964326139366631643735386334333935366137333966313366633738613263336131 +30323938393961393131646538653937623634363861353532373631643136326466633265356162 +37383131316138336561346561393237326235643734373064626465356162303831383664646364 +64316634323237636238613565363063343831373038376433363035393438633038383266666135 +66393538616433343734633933613436346437383161303763383133653030633764346332316162 +62653566336235663563316131373339663263666339353661346665373865356132323536646432 +61306161316533346138396364643134386564653239336136613139623030393238643466656232 +63393438316337316363323033666463626335656634303661356439303034393666303937373439 +66653765313838346330313136303230353161396466653831663963353037366533626534653133 +66353534636338373832323130626662346139653137363736646433333138316335326135616164 +38363961376634663964643935313533356164623933376162346632643633656361333332626632 +61346165373863616461326432383432316431373039346162633063396264363863356637333264 +30663563316362363766616565376261633964353161333632373637353238616331653965333863 +63626630396137336465623032326130643634643033326535373130303335633266636565643332 +37313331386465376261613362393835346562326464383832366236633138653132383338303762 +38346530343262386661623762633235373563336237306232616135383062373035653564323863 +30663563353235373336666364313838613166373462366266323934333837356334333364643136 +30646633663830343434343239353437383830356532666330313435633561336266356139353031 +63653439373463646166313861306361353933326365346230396461313238333761313232356462 +34316238373966316366653835383332623661633332663434363864626231626639386530316530 +62346239343766376562643738393663353131316437376239636261366463363661366637346461 +63313130363439353963303934333934363239653233336165383833316334626135636264333535 +62363136356531366566626266353164343338356466616136656161313266316331376131346633 +36633839616638633166376265636634333036646363353539663765663837353935396336626335 +65353762336336376566346363396235636561316361616666323439363930613532633262366564 +64323632316562333230663332323638383736636561633233376235636263303035313331373034 +39336439653638373836636133393630323564333866343934663233616530666138663565303131 +32393364373564353461323030393333343164303838636462353830323235393430623933323233 +31373463393539306432376538613065353864383135353135353334303130373764336266393632 +39363439633738393766633238663633316436383437666361306562653966633263316134383164 +32336163363532396637626562323034333536343437306233636465316438666631666131363462 +30633035303137393565636638323966316666393464313161363063383062363631623162326136 +35353963636464343863313862366532643664616635636138376637626131623565663239636165 +36316633336164303537626537643334326363613931376263346461373233393464343636616237 +39383238616330373432323436383634376362346461336439373965623737386266623665363430 +61303933373132333566343335366334383139626137343034316336323762663132353165633462 +66323830636231383930313761333261373034613932303865343931366331656661313332306239 +30323635396639356166346638363036346432666166633665343931333863323833663565666634 +62616261623565343734363232333863333837316335626132616465353162333361626162623531 +34376262656430643561343263336233346131346239393564343239393964376464633263333734 +66396633613932363366636366623966643761343035646332613162366235313665646235323764 +64373461303066396239616339393463323531303532343166393833306438313133636133626665 +39353138303566303063356339626333336466346639376235323137653662363162363865653334 +63393532353864393839366630346437663835313234343038613562316431626130356331626461 +66343636656436623538623166346461353331373563386631393561333730666363626633306431 +32663037613263653961363035306564306234373064636364386130356130633933373163363233 +65366337353730303364383630336663363236353534303935636337363535353735316561613866 +32643335663663326138353661623866616635373639646465393039396661323666303339336230 +63363137313635353931656561343863393634353234623463313463623739303433366231363664 +66306262346236333561383466303539383130313737393764626639626630353435316430653538 +38643665616162333963373530623265613737613164393130613363616637633433313663386338 +63643330663835303464313032316633333761643835386461613366643638303834613665373038 +31653130376332356134396337626366616463623963323131343065643433613335613766323435 +32363139363231626532636365346333306463316661666635353535623136613834363265653833 +62646663313433336138633262306339336365646565383334643464303137333735396566356565 +66643761653136656634303837373439646636363938356261626430343133363835643632333232 +65393562623038386539626264343166633137366530653333343539656161396166353264623437 +64346666346264633535633764623135666231656434393730613137373765666466613565306463 +66303963353639336133623163366139383361313765663230356338383832313061393938313566 +30663366653762643233393438383432373330336363323434613561386534613266646439366463 +66636235623439373737636339336163663736656265306234386332333666373934636663623666 +66333066393433656135623234333765653931316438616332343734626463303234306536313465 +37653262343331616563643766336665346230316336323462356135336433373535373835363135 +30346438363032363930376163343361336339643434336236616661343763383637343461633432 +61353433636637376131336264616461396434613561376138626536383539636336343937666131 +38376432303664636365653835313330323731616135363166306363636364313931353839646431 +32326338363533653531316436363932663439356166343630333063366664383664343561343030 +39626430326165383832656262303335623534383734336432326662646464353336386537316662 +31373931653330633932306666383461653866663664383330663663646536623130613662383764 +31616263303762383439663764663235373166396639383935353865616566316639656137376262 +33353261316130613837626538303833393961613733303966633566613664653465306134363236 +34343336653437623935313233363335656563333963393136343261636664303735373038343636 +66356537626533343938353835336366666630386632316236303439666334393438633866363830 +35656634623062303263643630303338376161393464613362643737383065326235636164313430 +30326162386164656235366231373432646430356334636535653938346564633532303236316535 +32653861376531316461616234646164303038343761653137333533306631666137303764346364 +62393365633130353133323631643662386362306439393630343131363937353535396134666631 +32353332613739376630336637383462646365656239376631303832666536336432626237343932 +32373331623835656566333837353235346166613830306362343465646161623635356661613365 +34366236656561383265653932326335383937636132616138666466356539613035353236653437 +39376661383062366430643239633564333534316630633634336433373363343566366236653632 +38613731393137366365323138626130633138363766613566316539303833303737656332643539 +65643834343634343439393066333331653963643834316464336536646362396537333830393264 +39313065303335363038646233666463343937343532663439343564653261653831336633653836 +62346561396463386630306436376636346630616665383063653737313832616134643933323365 +31333939303333383963323733336635663738313833346462303134643733393639313436396436 +30366562636463303238383932313964393535396264663134643535363432376438333131393931 +33363535333763373964376665643330363562303933326166313832396530346431316265363733 +63303262363066656432393962613537613766646462303362653065666132373362356237326336 +64333839646664376535356161326661623838633633663632343163363963613938363038326334 +32343564616661653364323162386463316436383333633763633062646232646562363038303939 +65353831336230623062313234383631353634346637613131656465613438656563313038653564 +63616434363766343130396539653632313461306130306630376161613134666637333462313937 +65366139353862663865666166633031663733646230363262623635316561323962383739396430 +35373366636333323030303065633864383862393239353537343463663764333264643537623934 +36383064313966396639353061633735666437333466346366376339623730333930633365386464 +37643837653162643166636162383738653135613734376661393761656563376363633136353362 +36656235623263373666316666653634383535393332386531303866363838643032623461313535 +33316230626338333061373934626535333831643936353036393831356231616464623434643662 +65633262353861363639623266343561316366393938333531353637326365346632363139303463 +66316230663265363130336132303737623862663861353465346439383737323863363733626366 +66363537363632333939323965343436326338353961633464393930373237653038626161386238 +62393437316437383461666562313761656435656562326135396131663231623262383163363334 +65653539613836656465373964306566656431643930373438333732353837623264356162363030 +33323632303530363764643835616634656261333965353362653435313930396265393964343464 +32656131393432643962643236646331396231303934383631623563303433353734396262616634 +61663832656534333266646665356531363237353665336333363564636365346465636639343932 +33303764623930653766373132326334363961343232336638363639356461623337313835366638 +35386138383639333430643765613332396131356265373030373139663266356166653137623863 +39613162303735353339323363303330323664306434643462306336633564396233306533303039 +35666238666463393039643039626131386263376162303432393437613966393336356539356433 +63383634313030356665326637643638306133373932353561373831316164383032323166336664 +34316630666164323131303535386630353734366533383538323030386664633736613038316163 +39303363343265326131373533376563613539643235653663363332656561383464346636633566 +63626132656130313230376261363465363435336538333735313437666266653864316366306634 +33663439303761656331663162663361336634343838623637636639363861396134306636353633 +35363261313837326632303430666133633339666162373266616537636338613963346561396637 +39626266633634343237623739373162663561643462343736323561336636666236613366623831 +61373932643830343231613635643339316362353930383435616532376133303836363533303566 +61383837343865653731393661626336343439303532643835313735373034313436643862383962 +32353339666362663635626435353866363135353166633439396435646230616130343130626539 +32613036633433323737333164356666633338386437646239323766333564383564636435383162 +65343132386439336465313431353932623638636263396365346630313036346661613062633438 +32376564613661393133383130353065303731323433643736323233663665643461653364386132 +31326263316562333036343666373362663738636565643764663331353637323733653133663536 +31386335633165663962393261643732306563356464316533626530303639353030666364636532 +39373230303861316633636366663361353838373032323232626166383166313535346435616535 +61343634643638633939633364303636326432346462386330396163626263633136353431356364 +38323835316662326562333363313361373363653461643263653633343164326562383936656437 +32623037376431363561356532373037646537313639346531353435333933373338306436343162 +32663538663466653334333033316430306532653866613333376535313037666433633866376334 +35306166306132393035663436336230383337363563643861656265643139663132373133636235 +30363166666561346162623033303038636136613831383961663733366131626638613732323731 +30366632313533353062666261343037313537313466316534383065383564623238363564376636 +39633037383137363235656138303161316236306362623431376264323330383236333136376633 +65333530366430613537636534346439663762333839633834663734373030383563333462363235 +65643630356534353538333330336431343565316162353861623639346538636562323136333737 +65323662663533383930393036643765626261643634396139323532323935613934343930656566 +38326331656638383737366634376263653338313534333534303965316131353465313964626136 +35343464396562343734353964336634303232613962343735366131383764653238313863396365 +61346637626437376363343337333863393861366564396539393837303030373636336535616536 +39663535643162316633396266633661633865376231376664356162323135663432623833346133 +31313337306561306432336564613033386162346666303236653736326632613562366263356232 +37333261613737623839386465643031333335393435646265313836333138613935373931363634 +64376131663535663137323432363637326366306562303237363366353231623536323139386262 +31393363376664666362646231343538633666636332303636373434623864333634306134663737 +64313536643233353738653530363331643862616164333835316261656431613865646335383132 +31663662613162643036346439633332623139393066386237383036333635626462343566393036 +31313736646466613639663433333563383466643134363263393737303864333965643834626238 +35316266353737363836 diff --git a/configure/group_vars/rwb_staging_vars.yml b/configure/group_vars/rwb_staging_vars.yml new file mode 100644 index 0000000..535a91d --- /dev/null +++ b/configure/group_vars/rwb_staging_vars.yml @@ -0,0 +1,76 @@ +--- + +env: staging +#Common variables +ufw_allowed_ports: + - "22" + - "80" + - "443" + - "3000" + - "8021" + +### Integration server variables +#int_appserver_app_url: "int-staging.avniproject.org" +#goonj_sf_app_url: "https://goonj--patialv1.sandbox.my.salesforce.com/services/apexrest/v1" +#goonj_sf_auth_url: "https://test.salesforce.com/services/oauth2/token" +#goonj_sf_media_url_prefix: "https://staging.avniproject.org/web/media?url=" +#amrit_server_url: "http://amritwprdev.piramalswasthya.org:8080" +#goonj_schedule_cron: "0 0/10 * * * ?" +#power_schedule_cron: "0 0 * * * ?" +#amrit_schedule_cron: "0 0/2 * * * ?" +#goonj_app_tasks: "all" +#amrit_app_tasks: "None" +#goonj_recreate_dispatch_receipt: "true" +#lahi_glific_gcp_project_id: "glific-lms-lahi" +#lahi_glific_gcp_dataset_name: "918956411022" +#lahi_glific_gcp_project_credentials_path: "/etc/lahi_glific_gcp_bigquery_conf.json" +#lahi_avni_api_url: "https://app.avniproject.org" +#lahi_schedule_cron: "0 0/5 * * * ?" + +## ETL server variables +etl_appserver_app_url: "etl-staging.rwb.avniproject.org" + +bugsnag_stage: "staging" + +etl_allowed_origins: "https://staging.rwb.avniproject.org,https://etl-staging.rwb.avniproject.org" +avni_idp_type: "both" +scheduled_job_trigger_misfire_threshold: "2700000" +scheduled_job_repeat_interval: "60" +avni_server_host: "localhost" +avni_server_port: "8021" +#avni_server_opts: " -Dnewrelic.environment={{ newrelic_environment }} -javaagent:/opt/newrelic/newrelic.jar -Dlogging.file={{avni_server_access_log_dir}}/chs.log -Dlogging.path={{avni_server_access_log_dir}} -Dlogging.file.max-size=5mb -Xmx1512m -XX:ErrorFile={{avni_server_access_log_dir}}/jvm.log -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -XX:-OmitStackTraceInFastThrow" +avni_server_opts: " -Dlogging.file={{avni_server_access_log_dir}}/chs.log -Dlogging.path={{avni_server_access_log_dir}} -Dlogging.file.max-size=5mb -Xmx1512m -XX:ErrorFile={{avni_server_access_log_dir}}/jvm.log -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -XX:-OmitStackTraceInFastThrow" +avni_server_db_host: "stagingdb.rwb.avniproject.org." +avni_server_db_port: "5432" +avni_server_db_schema: "public" +avni_server_mode: "staging" +avni_server_media_bucket_name: "rwb-staging-user-media" +avni_server_static_content_path: "/var/www/avni_server/" +avni_server_minio_enabled: "false" +avni_server_minio_url: "https://minio-staging.rwb.avniproject.org:442" +avni_server_bugsnag_release_stage: "staging" +avni_server_keycloak_url: "https://keycloak-staging.rwb.avniproject.org" +avni_server_keycloak_enabled: "false" +avni_server_access_log_dir: "/var/log/avni_server" +avni_server_cache_max_entries: "100" +avni_server_cache_ttl_seconds: "600" +avni_server_cache_max_weight: "1000" +avni_server_show_sql: "false" +avni_server_idp_type: "cognito" +avni_server_etl_service_origin: "https://etl-staging.avniproject.org/etl" +avni_csrf_enabled: "false" +avni_web_validhosts: "" +openchs_csp_enabled: "false" +openchs_csp_allowed_hosts: "" +avni_enhanced_validation: "false" +avni_blacklisted_urls: '["/profile/**", "/manifest.json"]' +avni_blacklisted_urls_file_path: "/etc/avni_blacklisted_urls.json" +avni_send_exception_in_response: "true" +avni_webapp_timeout: "21600" +avni_server_legacy_longitudinal_export_limit: "30000" + +#newrelic_app_name: "avni" +#newrelic_environment: "staging" +#newrelic_agent_enabled: "false" +#newrelic_application_logging_enabled: "false" +#newrelic_distributed_tracing_enabled: "false" \ No newline at end of file diff --git a/configure/inventory/rwb_prod b/configure/inventory/rwb_prod new file mode 100644 index 0000000..311832f --- /dev/null +++ b/configure/inventory/rwb_prod @@ -0,0 +1,10 @@ + + +[webservers] +int-prod.rwb.avniproject.org ansible_user=ubuntu ansible_port=22 ansible_ssh_private_key_file=~/.ssh/rwb-infra.pem + +[avniservers] +ssh.prod.rwb.avniproject.org ansible_user=ubuntu ansible_port=22 ansible_ssh_private_key_file=~/.ssh/rwb-infra.pem + +[etlservers] +int-prod.rwb.avniproject.org ansible_user=ubuntu ansible_port=22 ansible_ssh_private_key_file=~/.ssh/rwb-infra.pem \ No newline at end of file diff --git a/configure/inventory/rwb_staging b/configure/inventory/rwb_staging new file mode 100644 index 0000000..e00173d --- /dev/null +++ b/configure/inventory/rwb_staging @@ -0,0 +1,5 @@ +[avniservers] +ssh.staging.rwb.avniproject.org ansible_user=ubuntu ansible_port=22 ansible_ssh_private_key_file=~/.ssh/rwb-infra.pem + +[etlservers] +etl-staging.rwb.avniproject.org ansible_user=ubuntu ansible_port=22 ansible_ssh_private_key_file=~/.ssh/rwb-infra.pem diff --git a/configure/rwb_staging_avni_servers.yml b/configure/rwb_staging_avni_servers.yml new file mode 100644 index 0000000..a1ab212 --- /dev/null +++ b/configure/rwb_staging_avni_servers.yml @@ -0,0 +1,20 @@ +--- + +- name: Configure avni servers + hosts: avniservers + become: yes + become_user: root + remote_user: "{{ avni_appserver_user }}" + vars: + update_apt_cache: yes + vars_files: + - group_vars/basic_vars.yml + - group_vars/rwb_staging_vars.yml + - group_vars/rwb_staging-secret-vars.yml.enc + roles: +# - base +# - security +# - jdk +## - newrelic +# - avni_web + - avni_appserver \ No newline at end of file diff --git a/configure/rwb_staging_etl_servers.yml b/configure/rwb_staging_etl_servers.yml new file mode 100644 index 0000000..2bcd69d --- /dev/null +++ b/configure/rwb_staging_etl_servers.yml @@ -0,0 +1,15 @@ +--- + +- name: Configure etl servers + hosts: etlservers + become: yes + become_user: root + remote_user: "{{ etl_appserver_user }}" + vars: + update_apt_cache: yes + vars_files: + - group_vars/basic_vars.yml + - group_vars/rwb_staging_vars.yml + - group_vars/rwb-staging-secret-vars.yml.enc + roles: + - etl_appserver \ No newline at end of file diff --git a/configure/rwb_staging_rules_server.yml b/configure/rwb_staging_rules_server.yml new file mode 100644 index 0000000..fdb9647 --- /dev/null +++ b/configure/rwb_staging_rules_server.yml @@ -0,0 +1,18 @@ +--- + +- name: Configure rules server + hosts: avniservers + become: yes + become_user: root + remote_user: "{{ application_user }}" + tags: + - rules-server + vars: + update_apt_cache: yes + vars_files: + - group_vars/basic_vars.yml + - group_vars/rwb_staging_vars.yml + - group_vars/rwb-staging-secret-vars.yml.enc + roles: + - base + - rules_server \ No newline at end of file