From ad18c98e1ffbef6dad8abaae82dfd39800e8569b Mon Sep 17 00:00:00 2001 From: Joy A Date: Mon, 15 Jan 2024 15:42:14 +0530 Subject: [PATCH] avniproject/avni-product#1445 | RWB prod --- configure/Makefile | 11 + .../group_vars/rwb_prod-secret-vars.yml.enc | 242 ++++++++++++++++++ configure/group_vars/rwb_prod_vars.yml | 77 ++++++ configure/inventory/rwb_prod | 6 +- configure/rwb_prod_avni_servers.yml | 20 ++ configure/rwb_prod_etl_servers.yml | 21 ++ configure/rwb_prod_rules_server.yml | 18 ++ 7 files changed, 392 insertions(+), 3 deletions(-) create mode 100644 configure/group_vars/rwb_prod-secret-vars.yml.enc create mode 100644 configure/group_vars/rwb_prod_vars.yml create mode 100644 configure/rwb_prod_avni_servers.yml create mode 100644 configure/rwb_prod_etl_servers.yml create mode 100644 configure/rwb_prod_rules_server.yml diff --git a/configure/Makefile b/configure/Makefile index 6fe76fe..08895df 100644 --- a/configure/Makefile +++ b/configure/Makefile @@ -78,6 +78,10 @@ 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"}' +rwb-prod: 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_prod_avni_servers.yml -i inventory/rwb_prod --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 @@ -105,6 +109,9 @@ rules-server-prod: check-app-zip-path check-vault-pwd-file rules-server-rwb-staging: check-app-zip-path check-vault-pwd-file APPLICATION_ZIP_PATH=$(app_zip_path) APPLICATION_ZIP_FILE_NAME=rules-server.tgz ansible-playbook rwb_staging_rules_server.yml -i inventory/rwb_staging --vault-password-file ${VAULT_PASSWORD_FILE} +rules-server-rwb-prod: check-app-zip-path check-vault-pwd-file + APPLICATION_ZIP_PATH=$(app_zip_path) APPLICATION_ZIP_FILE_NAME=rules-server.tgz ansible-playbook rwb_prod_rules_server.yml -i inventory/rwb_prod --vault-password-file ${VAULT_PASSWORD_FILE} + decrypt: check-vault-pwd-file cp group_vars/prod-secret-vars.yml.enc group_vars/prod-secret-vars.yml cp group_vars/staging-secret-vars.yml.enc group_vars/staging-secret-vars.yml @@ -157,6 +164,10 @@ etl-rwb-staging: 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 rwb_staging_etl_servers.yml -i inventory/rwb_staging --vault-password-file ${VAULT_PASSWORD_FILE} \ --extra-vars '{"java_apt_package":"openjdk-17-jdk"}' +etl-rwb-prod: 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 rwb_prod_etl_servers.yml -i inventory/rwb_prod --vault-password-file ${VAULT_PASSWORD_FILE} \ + --extra-vars '{"java_apt_package":"openjdk-17-jdk"}' + metabase-onpremise: ansible-playbook onpremise_metabase_servers.yml -i inventory/onpremise --vault-password-file ${VAULT_PASSWORD_FILE} diff --git a/configure/group_vars/rwb_prod-secret-vars.yml.enc b/configure/group_vars/rwb_prod-secret-vars.yml.enc new file mode 100644 index 0000000..035dc5b --- /dev/null +++ b/configure/group_vars/rwb_prod-secret-vars.yml.enc @@ -0,0 +1,242 @@ +$ANSIBLE_VAULT;1.1;AES256 +33306566323763323036636366313163316437343836356464336137626433663465393435353536 +3435633734313834393937616466336465326134643437300a653161643861386638326233656530 +39383362333432653035323461636165633766313363313438653131343238643736353538333762 +3836613935663337310a623133633261306562343663633965643362393866306365666431363835 +32613934336434393965643463363131306337633465393739636534373731396137343763373531 +33613435653361393366666461633738396232343537393835666631663164363034346130303732 +66323265303438313231316235366337653662666461613934366433666537326164633436656238 +39343163633563636537323430666333376166396666656334303031653031333736666533663964 +63373637633666396163333132363063663938643137646631336362616664386438323063646663 +66626166333834326163633730346430323263326164626637666463333861616664316531623735 +63663731396138363631636363393335616339376135643366333937373466393766626565393538 +33336236653966303637386631333137393165396630333934653634353062323536393338613561 +64306562633163356163353136346134353565353630353238663433323133333839306664633238 +64373139643234343734373639326339303165613732396334626265366165396530666535353839 +63336236623137343333623365646531363465643837356263383862623239386363643035613036 +61336436306632643635313633303162666263643566623161336130356539366135326332366565 +62653735376433656362303938313431353538666432613063333031336465666535316564363361 +61373065383133613432313465303436663663653662303031393230383433323462666230366162 +38343135373437666134623939653934646462626132326537306338313534656535346532343438 +35613230333138333139323336323562356537376162323637353539633836343932343332366139 +38343231383030323066343363303865643463623665636636313235623338653530313761643032 +33633931383838353463373430353835616162383138383434306433353963643339613562666161 +63336363656137643834653033323238616432383565303930356363613530313933343061343138 +33313631643739636134383134376662373734656539666261363237363736373533336165636532 +32616561646538613765646361336535663938383833316635353538313036643037376634663234 +65666531656262306262643230616531353663653963363735653663653636643732653839363365 +36626265656466333765633632393865373936663362363539316431326333613335636439373662 +35383439356564303462613034303139396461306337323066303535636365636135336236326234 +65366536383063643438323865316335616666616362366163346138366139386166633631653563 +36343665356135303966613830616332643066623338613631383431643831656531326534333735 +63373233396363366232396139646563633065646463616532663561343636336637326566363935 +37306439643262336631333361623332633133376438633335373062643935323230656135353035 +66623966366134613134366431313966613166313033396439653463333765323931636538396538 +65376431623232633839333439623039393964616465306237396238386466356661383430373965 +64383262343764626262393265653235636236393732383635626530646237323134363239313833 +33356330633632343034393432366165373764353462333533613337333539663263646432313065 +65323566343664333465306262643062346435306630636131326361663061656536336633646436 +34663266306235366639343066626435363730326466626634326437323461396631306133343530 +33626532653834363863343463316163636266303638663961626362383863323361633039343362 +39646434383135353637616332306139663664373561333538366539343662663431313838376636 +38656461323939383831373064623438306437646162363234316263363465656235633265646632 +39313662303836636333336135326635643134383837396262383764333961356161376235373463 +31346335633964333666383435386536633232316331363530316661326163396134646436646137 +61383439326432646263653634346239386566656166363533366635303837323262663139343863 +61383161633762613438383639333031643663326533386431343135383335303336336539343436 +37303030333534343564326335396135653932653232393734623433643930616332376536303337 +37343430313864643432383235353134363737366438353736393362373536396465303633643835 +62643933633934333461343131623231303366316636323834656265633637626631643131316161 +32396536636436636130663463366234386238643234353062343361303839323732326365643832 +35633437316538316633663732663235366464333166306230343133363564313831373262343937 +36363930333863313633323964363533643931366233316236376262353633613661313331633339 +32633830633863613535393235353331626638303364366231663233653165656538376435383937 +35323932373839343334643965663266316334613834353061356562616434643866393565623633 +62353766663037636137386662316236323434306663643138616338613738393061623537666332 +65353065326135616235323637306137613433316661653735376663386166626131643963326138 +65376366633262373931376135383531656138373439663737316335333337333330326133393762 +63653338666539323436613234323532363864303033376164643861626361616535393662323161 +35643435393665393933656565616435623937346239363933383734363838303964326261633236 +34383363323564363335316432646364366664626464353133666662313063663038373237306535 +35346136363333393765653061356438346632333838373431646639386461313466343735396663 +31646238653039383932373237633931343263303637353166353164366266376364643366356132 +66333066373934326663643832616466653536303034643839383565393337306362356539303364 +65306165303461363935663665343131363236383430343937663766313539663236383663366231 +34376230663433356135626537303863623063333132313861323838373665626334663064663830 +34346132643236393330666261396533323130323336326366393564363365626262633366646664 +33373832666264343963306336313734613836623034656364633634303665326462636334336634 +37326261336562386637323238323164396138353837613436313766313939643132376534373439 +38613239653766393766376436376432316335393435646664343963646564623030303339386538 +34336262323161636632333061623939383638663833366535343662373264663061333337633837 +63393638386561383033366161343034643463316435353964626234373634373731653931663536 +39613266616162343264313961356234396662363564326138613131623730613531353164303432 +35316138396632623730393964323539306661356564343330633662643731643837333737376261 +34633635643064613930386663663635306234313062646239303634663230323832333336346632 +39626566663361636437396338383439306536646165303863663935323865333064363264363464 +38383335386362623335316231303862633461653734363362383937643736373637633166386437 +62346136313831656335393738623136646439643537626262326334333731343966633436373063 +63626436313736636335633465356361613666366565623531343234626463316365666631386639 +66373236373137326237663034653438323534623832343465306234383166613962336135633032 +32323638393261303663323837363265346332626266653630376233643135663134623963623961 +30383663643738636630356233386132386464353865623864646463353062663335313135613066 +32656432363631653233366337643730336232353135323666303130326537323638663563363765 +61626564396565303934393236623439623739353931373839393363303639343865376639653238 +35663039653564663837313362396164353938633830313933396361306361323237303035616463 +33316436383662333965383935323932643539383630326136626238643632306166383430633532 +32316461623834343261373066613361383965383135663664363464643365616235336637393632 +65353739326332663536326437623634363761323263346436353864643463376563626632313439 +35343733303535313539643733373234303735336631316639316562386463353265663066626435 +64353933653939323039316639643566663733343736393661323334363638333938333432633433 +65393030396436336661613432366666386437653464616163626232626530343965376162663839 +30366264303061613961326432636435646331653536363833663236393463666166663938343461 +37363733643539643163626265316338366337313533313831366436613432343463363931623265 +39653437636333633964313865313634396634316638393566353437343238366539616165623665 +31306335313036633631623232363338383862373333376236373839663634313537383964306561 +39313934663363323034373932316534646664303733316664336437316432323037633262616539 +64343632303363363632653730326539343331343232633766363339353238383337353166623665 +61346430663333396438656264363365343436393965366436646561656335303039373031653937 +32316538333965393065336638376161303464633232333735353630323734353231376361376431 +63313864373737333932623866633735306530373033663533326236656266396435643364626664 +62313237396666363263626238666264373165666338623361306339393131343637323163613133 +30363861316661646663306265613739613836666261666239626533633963393633326239313530 +34636233623332656666643965333432623762376530633161316363663965303036353332343761 +36663861643033356366653838353537313666303734396238383766653763323238643738373234 +63313264353033663634616332626236316263396565636466636330666537643834636337353861 +63653933366537663633363962663461346563343633633538366366623030333832366235326163 +61333736376436336238353361323064643438336266383332663335663361303465376565616137 +62613932356436336531323866623962383363663730383066323634383164633435336536383638 +31363133616532383339646330326364616331323133303436393732633761303663346431363731 +30653861306130613864623966623962353036313865656330653864393965613564346365313061 +62353461633263623135366234326535653637326138643637613833613164396531323437353930 +35623836653835383761383133333662346466616131643933336563393164303136333462303439 +38376635363337356634363539386565616566383363633161373531356532353266343633353933 +36333632353732303133363938353939393161303535353731386533383335663239373435626636 +38366463326463383737613032343935306564393363643934356166353661613834636631363438 +39343966306336306432613764646265363634326337363332363837333661643430363134313165 +32333434323330373438653930356339663538656130646437343737356635656131666362343064 +35353939613933356238333134326635623535623665306236643935633165383036643637363662 +31643763633266393837616661323465306638636235666234643336333063323930643037613836 +38343038663463353233303463363739326162343730393463656231396364613965323135393931 +39376539636662656638653063633063313938383266643662636563363866333763333764333035 +64353465353065336562366633363764343662336632373263383961313964633864613830333535 +35343262333732663330343765383934333134633837636132636434386637646564393863666461 +61613036323131303139656234616338363233333836313161626138636635383833393830333230 +37666631346333653733626664366437386163393531653965303864623334316332613864383530 +65346633323032373338616461363730323566373562376335343562373265616264653963393233 +39353763653034643638643337613135653634326362303561303738396539373637643033666137 +33623636373562333236336638616338393164366130613638373538616336666539363362343461 +39303939616436303664393138663137646464376164343932316333396430323739633039323834 +39626565643834353331326339316330666264663232333366636233383061356365633735326232 +38616463316637396336323338666330316432343734326235363466646637626432363162613734 +38643538616661613839613630386363343366306563663632613936646130356162313536326539 +31336161663231336238336232336465656565353135313836386233386538643933396337323537 +38626666646636366634363931323935356439306363336631383530653832316432396638633961 +64303737656362643838336661623564376332373062656431373062353535383963346464373033 +35383066663130616564373066386633333132643335636538623434303939646230666532323865 +31343239616463623362643336326438633238376532626133393832346431303263613366393133 +32663334646137383664663263663037646363356662373663646238336563353062643934333436 +62303966623637363963626265653365373536336663333831343133346638333366373066393463 +34393437373538633938663563363432333461663735386464373535653462376438613139353932 +63346565623966393662633938343331653036613339633233366632373761313331323463306239 +39353161346238616639653534393337393734663162386435646266396339653233633735663131 +34353362336331353635313236656236643035653861326461313562663766616131636366643734 +63323537633931313930313133666264353030616264396366313835326537383435383432626438 +66303131626639383562663939633334666332353866336334353935383665393166633931336236 +39663832663332643762623238643865343733363432663631306332653432623536303833643866 +63303061323761306664623436616536393332333565396565376433613063636530313966333937 +38303639356437646561323239323362333830393735663134636238646230373630393739626137 +39643035353234636137373861616164333734383461356533386636656430376261613635663363 +31306661623263373939326365663966396431353166623966656134303532666663336464363239 +39343031313230613666636636393738346633386562623062646437306239373961613439326261 +62353330336161636564303262313736616136616534353530653763356566666239343730626234 +34653264396431396466346135326438396364333761356137636265386639346664373031643561 +32376139306237623939633830396265366236643933313738613332666538323765653064303134 +39653066613832386230613266633535623137643535646437393539646235373262376362323435 +35646333336339303639306365666661383139313536346430313665393436623664646563383531 +65346335363034653331633166656136643339346330643561616339383431356134646137306363 +61373837363263303035326663313336303439386665656632613532363239313066366566333065 +30376536633964343665636637303839356664656464613633616330326239663963316362353161 +30376135653030623633613237373062323637373238626464386534353237386262653661376437 +30366139636430623661623762643230373566393166336661303861653036323038303564316334 +34623931613663646635353265353239306230376632316531653263393531303436306237333032 +61353035356231666437313365633434663336643037356438306465303963336631333263383664 +61323233323035343532623766336662386134633236663031346166333532663032623038383236 +61323732316264663034636165353961323365623233393634336631613132663365613766303461 +35643265373935396464626366316539646539393365373562646466336562333937663132346663 +61646463313030356462313464386136613364323639623165636633353766323161396232616563 +37373431643863363933636530306363333834323434636431653132346638613361383961373761 +32326137646335643663326432353564333937616632626364353638373162366431643766336162 +36306330353039656134343034313863663633353331396434323066323562653334303764643938 +33633364303739333763666533386536656530323236396534393365646136336636346464326662 +66363466653833313336353438616631656164326130663439393633363064616135356330333763 +63356430363363306635326665303566663830613363653438326562616363316439653361616664 +30346232316638623933623563333766366237313238393965613830613632363237626338386363 +34336539363139333861386561626631343766643034623035626664623837393538393731373538 +61336663343931653162303363313665373332353635353164313033373634333332313233643861 +39373330613034373262376238326331653062623237616337633736633862373737353463613464 +35656136636539373439373866636135363261326361666366646532643964613939356566616230 +30326330336537336530353935643435303836626263386234336130396335663563373461626534 +38643333353634326464303463353463633633326130656239656536623435643565373630306535 +61333034376138646537353661366662393434363161363936663335386462353632633263353861 +30633938613965386436363131363061616366303538616263653435393037323434643265383532 +35663433633436626266386363386364393638643663333234313030323565626433356233376335 +39313339373764373039336237323033343161656239346336613331356532643564663063393437 +63343762373433333932383533656535343537363433373036373738363164633232643338356236 +35643837653333656562613361373837333861613866623961343263623636393636383535613535 +39366263636539636339366231656638316265663163323936653462646232373161353538393666 +38326236643965613535373365613639306161336335323037313833666162633331356264636366 +35363162363661353164656539336561336530326336633237313131396433373131343762633333 +63303830623463383834633336313038353961663764373533626435656238633634393763666430 +38643635353864356363346539356536323436346136663335373833376435333233356236666261 +32636661386139616336353335366135353464343834343636336635386138376334316633356535 +38386161373035646534303466303238346239613036323261356437663230316263363766333230 +66333934613830363239326637313831383465333836356466376237376164383961616164333163 +35613662303735383761376332343962333663616361343061646233613834306165633666393430 +63623466623833383962623333623231346565653630363739353365383739623539306239316162 +35626238366130626336323336323865663931363632623062373836613539613634313432396264 +64366631306464666237326435613964656332663938393738323033316466346238666264316334 +37636431386531306265306262356338393861613534346638373739616561336564633531646231 +66323164393737336634373965656664396561376433333464353637366239376465316165313534 +32666336663536646164643530376134646630323562303637376562386532366363323361383538 +64313230393566316535663736343338666166633765633966623262303437623138336538623863 +31616638343865326565343935393662326463633636373464376639336538373033316635623134 +36643761646338346264316361343763383564636366346664323962303665626263626638393062 +63646266323633353965623163306333343439393635666338323931653736343638343535663536 +30353537393930623939313039633630376463383762383735323964313561316432393139636364 +31333738373865646266636664653237353430326535383035653938366237386539646339613331 +61333737613235623662353965653566613037343765663766626266356431376366313566373364 +66396133386334396564373462336233633337653230303234333963393961393835396334363435 +39336636356438656264386130383030616231656464613461306137643139653836353464663166 +61323833616631333635396630373337303536643531343430333466323934643562353334303938 +64343739626535383461353966393764373130303438383031386235656530346332316135336635 +31393831613530333930366664353335386361303337663432633534666539663933666262356636 +36666162633137626632383736636331666636303532616466383865396531303639316631633761 +66396466356336386164376461373162353164393166663834316230333331626135626530626164 +35623239656266666630356439366265636161303037363731613632363333316262306466613763 +64356237373861373733326633643639343865656634656231633334316337313965336530663439 +39326362363834643162646136303733333433646137376238363634653731663034643933386535 +33623031343565316636633739396265356534343536653836356263313866373539623233383865 +36623030323064363765366164303238366266376663356364336532396134376135366339316464 +64396339393339393864396364383064666434326334396332316561613063633961303239393430 +38383535346262346165303330343339353563313962373130643663613731373532333132666637 +65376534393032323838346362616465643464653264353931333965386166393936366330356438 +37393065353064376662303364373139666665346433623438386163643836383937643835353766 +35613231333538393336373335313264643436353565383332376136393434623662396335616363 +63633662626435373962303430616330376166303332663536323238393733346532383634656364 +32323262333666306435306437356264653665383863326366326462313762616137633934323235 +37303366343333343861363465663334663933623239393439353561373862303338356437356365 +64613661643031626239636237343738303034343265303562306462313034393435383536613734 +61386637643561666130363765653832633639323461623863366165663837333636636563396461 +66623335313630303265663139356633623738653638336564323766326162363961633839336437 +33616139323966346263376364393861373238663832633363303537393236396563383130306231 +63666339663136303032626263313831353961326333323061613439633838616432643735303230 +31383638333430653630363133623531346563386438343332636630373264363332336530656138 +38336639333739386334633465393130313061306161613936623538386661396133386238373265 +63643062373662316230326338633961323535336438623961646239346563326263616432363332 +63633862326630336534303564376161656533303537316666343932666462363433646237376365 +31376634353331383562636665353430316138313466326632613264613966306234343437666334 +62623666313730316534646134306539393161356631656631386637316335626139383936613137 +32303339633261663038333338613638396630366365653931616166653035306162623632383833 +37663238306237336335373164323932663037313939623735343462323435636238653261316236 +63666435373465626336313632303066643534666232613763303938663663643435653933393361 +3637 diff --git a/configure/group_vars/rwb_prod_vars.yml b/configure/group_vars/rwb_prod_vars.yml new file mode 100644 index 0000000..a1fba89 --- /dev/null +++ b/configure/group_vars/rwb_prod_vars.yml @@ -0,0 +1,77 @@ +--- + +env: prod +#Common variables +ufw_allowed_ports: + - "22" + - "80" + - "443" + - "3000" + - "8021" + +### Integration server variables +int_appserver_app_url: "etl.rwb.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.rwb.avniproject.org" + +bugsnag_stage: "prod" + +etl_allowed_origins: "https://app.rwb.avniproject.org,https://etl.rwb.avniproject.org" +avni_idp_type: "cognito" +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_db_host: "serverdb.rwb.avniproject.org." +avni_server_db_port: "5432" +avni_server_db_schema: "public" +avni_server_mode: "live" +avni_server_media_bucket_name: "rwb-prod-user-media" +avni_server_static_content_path: "/var/www/avni_server/" +avni_server_minio_enabled: "false" +avni_server_minio_url: "https://minio.rwb.avniproject.org:442" +avni_server_bugsnag_release_stage: "prod" +avni_server_keycloak_url: "https://keycloak.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.rwb.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: "production" +newrelic_agent_enabled: "true" +newrelic_application_logging_enabled: "false" +newrelic_distributed_tracing_enabled: "false" + +#java_apt_package: openjdk-17-jdk #for ETL. Comment for avni-server \ No newline at end of file diff --git a/configure/inventory/rwb_prod b/configure/inventory/rwb_prod index 311832f..7476023 100644 --- a/configure/inventory/rwb_prod +++ b/configure/inventory/rwb_prod @@ -1,10 +1,10 @@ [webservers] -int-prod.rwb.avniproject.org ansible_user=ubuntu ansible_port=22 ansible_ssh_private_key_file=~/.ssh/rwb-infra.pem +etl.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 +ssh.app.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 +etl.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/rwb_prod_avni_servers.yml b/configure/rwb_prod_avni_servers.yml new file mode 100644 index 0000000..09b23e9 --- /dev/null +++ b/configure/rwb_prod_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_prod_vars.yml + - group_vars/rwb_prod-secret-vars.yml.enc + roles: + - base + - security + - jdk + - newrelic + - avni_web + - avni_appserver \ No newline at end of file diff --git a/configure/rwb_prod_etl_servers.yml b/configure/rwb_prod_etl_servers.yml new file mode 100644 index 0000000..6071cdb --- /dev/null +++ b/configure/rwb_prod_etl_servers.yml @@ -0,0 +1,21 @@ +--- + +- 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_prod_vars.yml + - group_vars/rwb_prod-secret-vars.yml.enc + roles: + - base # Required if int server is not pre deployed. + - security # Required if int server is not pre deployed. + - jdk # Required if int server is not pre deployed. + - nginx # Required if int server is not pre deployed. + - certbot # Required if int server is not pre deployed. + - etl_appserver + - nginx_appserver \ No newline at end of file diff --git a/configure/rwb_prod_rules_server.yml b/configure/rwb_prod_rules_server.yml new file mode 100644 index 0000000..c6a8061 --- /dev/null +++ b/configure/rwb_prod_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_prod_vars.yml + - group_vars/rwb_prod-secret-vars.yml.enc + roles: + - base + - rules_server \ No newline at end of file