add alertmanager and kassandra bot

monitoring
histausse 3 years ago
parent abe6a8d90a
commit e0feade59a
Signed by: histausse
GPG Key ID: 67486F107F62E9E9

@ -8,3 +8,8 @@ appointed_prometheus_server: hindley
grafana_admin_password: "{{ vault_grafana_admin_password }}" grafana_admin_password: "{{ vault_grafana_admin_password }}"
grafana_domain_name: monitoring.deso-palaiseau.fr grafana_domain_name: monitoring.deso-palaiseau.fr
kassandra_username: cassandre
kassandra_password: "{{ vault_kassandra_password }}"
alert_rooms:
- "#test-bot:pains-perdus.fr"

@ -1,266 +1,272 @@
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256
31396332353866353033636465633564303630366334326637343231623262613131356661643963 66653939356531646231633866643664343439626466393835366664643239356166353639656466
3764303530633039356633653162343531393235376164640a666136643062376561383034346539 3731653736323063643664616534393834666637623438610a653265313233663738326166366234
38393838313364633639656566336430333865333632356235396136373166643434306138316338 64393862363239636533343139663166643331363133343230633032656633663033313032353630
3364383138303538390a653439326538396463363938383639623733663265383038333037373734 3666666439346332350a323239376135383262376661366632363963303433666362316535323664
31363330643036346661343034373761356238353339343665633630396337623137646462353064 31336635356137646565396131396461653630363362356638346266316231383036323632653366
37323231643566313561343236666232646262373731636264376161386534376336323937313730 33323430663863346664653562326330376639623131323936386639303065313738356665613535
34636435366465653261316134336530346661333062356561616231346133313934633962646536 64633663393963666363336265383661366264643931313939666561646134303130353034376530
66613237656630396233343661633035393132623364326462323930636535323438396130343663 63383064373633326263383332303632316135353862333365326439636131366165663636626337
64346664323734373033643436386333323735313064313932326333323434646239366361326436 63383566653331346536626138653733613666356162336163643566623737653337396436313134
30336234346138636530623139326535643961393634653762323631633030663839323663313539 36343535363331366463306335386465643464336339663933323733396437663332303231363237
34316336383834616632336534663533336430373638663866303337366162303463333430343062 39313663656136336466393737323965336430306437336530306361343631396132653230353137
34356166383931663062323036396664636231633830653965393063303030313037363738343031 64316538373532333332643638613736393661336565346364313961613736383063316433623634
35383164636630666236646231353732383466336535323238303930666230393833373538613336 62373137326336663236323463313462313739666162386333653235373763356335393039356638
33326164383336376233303937353865303065333238316461313063623832623939353436643731 64646131313930313438613264303535633137663662613163653165393835303032366462326564
65373636363630343230613263633161666234666638663162356233383331323462316566353130 33386134636231353762363563313137626134393563383838313834396235346364303731653136
34656365636166616663363934323834393130646363306434366566376366313738343862306339 34363964386165323561633138306137613632616437643632656334653138373330346434386262
31663061326562626334346334636430323236353737363135386634623635633932653633386437 65383662366135613939393266633062663665303935663634313735663361333862356565393265
62323634373336326461353661353036633031333466313532636135373831653239663439643833 33373036623232663830623962363139626436616339393863326130333163353038373530643566
62323931353639303661626666636666396133326433386164663539623031373034306330656566 33393733623635333931363932376663613364393832646231616133366264646230633033643062
64313333613964613865616336363739666431353638313036393631343530633633306631326330 37336335383732613837303035376563653638306437393336383565623264316166653437386432
34663462626662333464393064623063666334623737626232383461306532646266333132663763 61336433316531346636356262313534653037336139633839613163356365643466636662616462
32663561653735376164303463653233353638616562333039373336343633623639323362353963 35323135636337353930636463613437326538303736643262663262633330396663303064313933
35656138653963356366363339356639306234366666646266306332363433396362393161373732 32346437643938303265353363353735373862383761326333306138386266363566386336366436
32663735376265353038643730303362333238643535623664363339613431396637363162313538 32386436323564323964346332313363373534626162613033363564646264376662323366353939
61666561666439333862303034636230386366363262626263643261313731653637383634363831 64303663383031613634333333353563333761363134393637633031306561373339663031366466
66386463393337623461333734323963373938353665316337333564623063363133653037306639 63396634396535366461396262663739383861656461383435323936636166623862663130356630
33376133636266623839363734643362366330633261346463373464633566303034633132616337 33646365343564633662663438613338356131383638363930626338393739326336396361356232
64313636366139343339663765343361363737613434383631653134626565313539326335336436 34366363646432316431656439656136633838663066626436383238323165393836386636373039
66346561393931353939633534376138626662363236656634303663373436333239303135326462 64653930666334326237363261666364663531623535373265623638396334636439346465313238
65333034336135626264383433303261323262303732323032393864363461323364383335636335 64356335313731353939313364363534393762616634326262653366303234633338626661663165
31643530663534366430653934633432656161663061386330323933376565333465633436333634 36346430326431656639346161363861396438626661663930396334646339663333366535303438
36333464383963346431616632383236333739663632616532313462643265326635616662396364 65346136396334376530366438613737386535353431396531316265393036623430383735623237
30393738633639303334626664643936356361626536373535363862333962376438316132303039 64663634666564656633643462653962386332623539623933653966323066376536386463336361
36643338333034663266663032626466336130646533346630363066613265376630303434616235 32353732663366643438343862613863373564383638336332353039643833653563396136626131
37313838636431666536646164376139346163646362666232396538636530666131343035383935 63306635386163313131623738363533313131613537363735333337323334353462383039336433
66363435383464343230366137346363366631626639653532303434666230373963323665663532 66636137356462383538303336363439313938666165366434333030396561613833613539383737
61346237383230323766663539666637633734336464343332656265356135376434303437353764 33613332633763343865363034653730336364653461666331353837653637663139306366313663
36613363343530643833396662626563343233646162646636633835393634323734343934666461 61633133633563353132643066366633626435303363616661353138343363363139386232386464
39613562613037323231363438346631383163316432396437663463396430356563646665616133 33636432306366313234373861633762646661333836386462383761643865383231656664646265
62653363323330393266333235616435386564363632363765646237646430376235656561393336 38653266613365366435643934623139336666343265363632386166336433626634656238366663
61613461633361376235326536326237323663646262346230613634336564323430623030356663 32663664336162386336326566396336653831373364383033643331623834643838336635656438
62613064643937353862616132313030363437326131333639346636613832343138363037373839 64393936366238616666333565353530643563656338323763336436636461353963343130666634
35626563666437623837353434646432353361633130643734383336633337643062396266306463 65386430313463623539616537333134323134373836663036663830353435393365653136363566
64326239653232356466383766623632633463623835663034646666323636623461613839303535 66356431663466666562653338623839363438396530653031373538663039353638623838633831
37656133313631353463346133313563393131613566303830636536646430643936363237333163 64636534343263356166373561373864643736653530323530323833356539316232363564616135
36366466323030316261663562623634663335363639343033623163343065356362386535303033 32643138313537356565306433326137623535373963353361393439383030646262393538626636
32646561663162373037326430373463363836313833623261623939313864363039626362363332 37373336313132396465343561363635643633363638356365363935653931316263323261356531
33373631656230643064653630383335613938366236356231613230623534386637323137303730 36636239323362663935356464663737386462306162373336333264333963653537353563383361
31643732653331353737343336613638656463303862333830323432396165333938663136393064 34663030386331643361353033613564363236303364646430313866323836383238366535376230
30366231663065363866376534663664326231333930383433313439356332616139396235643632 38616165626535343939323162303735656630666262336536626334313834333730626433643835
64313234646563383531376565313663623237306639313733616433326231326135656631396134 39353963323364386430366339393162303031643865333839326533333961393036636365353637
36656335306662656333323738313939323765623665356561663633366361633331386131376161 31353863633065306230353665623335353331366333323039646435613537336436373962626137
32396463373932636332336337636138666563636461323761356534376433363465356633343462 39393461373938613432303565323763653130313334313637306534666235643337383333333837
30396532383939633030356434396331396438353634623839303437353235346630303261346361 39353834373666646561626535386239303030633062633565356332653664343337636263363631
35303038333832336438643161303430373664393732656236373335633830336262393530313463 32636264353165343637633436373564313065643236396631366334633365386234636261383066
34663138623366396230333765323939656337366332613634333835636666326130613538346235 35373433353539626661336430663037303839353134613230633363373664363962316630386265
35646433303064313930356662636539653066383438323266383835376465383662323666386431 35663535353466613265616637646130316531643461393965643232366432313561303238393432
37633235336134373231666166333866626135313233376332626363356466646139636662663165 32353266336533633064363039343431333331646132363833303433363632613632646461666366
62623862336333353937343437656266386665333435373834663631613861393265306534353533 31613764313237636236303432613864336532323537333062363066633463393666366331653936
35303064633632326637383933363230366632666135363435376631346138623334386632366235 31653133313862356632383066353361636334303138666361333939646536333137343734343731
62323238396434666332353739356465363061373135326133636236333032326535396630636239 31636130623666386236393462646236393933383235313036383932336665616430333330316634
37323962616131313835346565386330666238653634363162313431316164326137633162663331 62623631373631383434333363376331643664336536636430393962626165646662636637313633
32383735386364386530666139656433343833326164323736333130613161373563343562326462 37316166343834373865353730343733613736643038366233623661636237633136356338356564
30626535666436643765613437396638366237626531353731646435663234313061656466653234 31363139666630656530616334386362393638343331396436633862393031343331613438373236
34386334393131303765363665613736333530643163623262323833313461626132623037663965 66336338623264306237333334623063626431326366643835373832383165663864613530386639
34623537653337313461383865366531613261393333663137353030663763336337636664316131 37303064643034376135303066396164623237623239663962636563353130626332316333396331
65626239656161356462373762336161613461333366383233626131313762393464306366623239 36646238386634623761643135353132326438303566316232653630353332363262643964666561
39613264633466326336613164316266316537643964663562383432393438663035636363376237 32363534653261396136643765613237633761353337376338666238663039656666386137633538
62396335373233623663613066646538373632303663323035356462316432356634616232653835 39373662336231613364393238663566303662643333633532613866643036356163313033313933
63366437633565353764646363636638323836633637306432633466323438376134363963396434 62346532393032323432316361633162373664393363306239366433333766396438633730353533
36336234633263376463383135663266643265323433666637613064633431333138333866386664 39306338303238356638336636306565366339336630643934323665363261303930313435633735
32313762333666626164363865626635666535333530613631303563613131666339373334313730 65363732623666306631613465633034393536326237346639356566643736303937333239626531
31646130316139346130656539636565346563353136626534633937313133356465303233353330 62313061383266316361326339623436373262633238366234353461306432396133383330616432
34663562636365383165633834376239653130356266646231373164626537323466376361656232 30666235646238663631326636396364313565393966373533323464356337326138363233346430
33356664653833383338313630383633383266343662393764376361313364343230333935313337 61393438383737393839653039633762613137353932323730613537653939613861346636653738
30613631623962623130386334373337313933326665323633623865346563643431646230613966 39336331333237613838656531363766343235383938353165653662653439643861323436393833
39313861353866333335626666303433336266656163313538343039656530633535633730646437 65303565356330633764663633613231336166323134653937636133343031343938366639656161
38303833626532336238303332656235313936386466366432383039383865613138323238336238 38666136633564646131333038326237393861326564623338333438313063303661303132323938
38313332333330346233663761323938343330376238623866666134623661356464376465313237 37303162316236666162396363626133306365666533306639383139336330616130313635353034
62666130373861656162353463653066393531613661346638626164626136646639653930363462 65623934323930383763383466323338373561643538343564303331653961653230643863323937
65343462366138386333653463323865333935633366643731663637393633656532626532656131 35306636376530356631303362396439643963363937633266313935343262396565383163353630
66636464333337613136663861363435633934613239386663636162353330323431383231303966 32396132316239366231303532306436623330643732393737343636646234656662646366376265
62653236336634313961373031653662363033336464343562373330646437663431616539303636 36343034396562633634633663623133396636643634663932393739306435653034333164656336
39643439653161323266643333623737646266313262653837376133333638393232636363643863 62373633333938356261663261356161663937366239356464383335613431396339333761323062
64323463363737646164363234313138333963366664636562303861346336303834656165306331 32616333656533653939336338393431366439346433396232373934353235653730616230633762
32303330373461393832306133343038363434646666646464366336303439623037633538313537 35656533326163316132373038306239663966366465393231646331646333383932336461306438
65633835323064303066393838333261353561333938343164383664616166303164386164323962 65636434333433366637663139656630363464663564303166393931363032323633336661326164
35363566363938373538353866343461613664366439346366646162313434623930383739333834 36633132363161616466333134343730636166653962623632366535663366653139343230363363
30383532383563633864633234343333643965636366313465616435363862396438633233633236 66373432343961393437663466363063333561353637316438653961383966623134336537376130
61646236333736363730643161376361326366376131386436343563363764643464613839623837 61353031386435336236346564643064613433666137633437376362626661653733343734346438
64646338396337346562346336333464346432376566353235646366313130663535306336303562 35646332643462643631323835376231656464626536393562616466636363386339336564613539
39366535346633313135326637376266386339323331626462323433636634343839663339353762 33316637313862356131633636626238633961363065323964353634633462663132653864373365
66376231303066376331323138383463333338653666376664643339343433336134626433653639 61306163396532656636346532326131633134346139323566326361323664376633636339643539
64303331646133646564353165343966326263663761323436316437396464626333316336356162 64323939336264346638653365663162356365653536333738383064326463313662356266373239
66363761326366343165343235613465623134346365633337663232656561313130363632313965 39613439313866333735366639306166336261643938313133633633303432396662373862653736
61646430323230353438623066356561643836643735313663623732356266653364343963353030 62313438633063343938313965616337363961303730386432333862383265653061333832306565
63356434303363613631626362396334313232653832643337376238336434616537333864663034 66373663643435613639623735373066616236353739333538616535616435643964653936356431
31303065306139643034323531656534396364346431623561336533363164323434653762333066 30363364323434376365393639643731663866396163636665626537343433663863363130303866
38376165316135643165653861326563613835383539376532303566653039633764383163303537 38356565613334613931343431663862346263643330646263613166636561303038376238656430
62396531343135653535633434356435633763393831386362663836653661653365636234653466 66316330326662616634396561366563316632663166383564343935633532633034333138653665
63643463626639326164613266386465383633626264613633396337633832393938376464393036 37613964616162373262383338613434663166613862653963636135616265613634323438613463
38663162643137336435663366366364366365336162316532646631646237306337643539383439 61393730396164643730393636646630386561303534363731623433363631666561313065373163
36346234313134646363633265393132373962636139636663356164313039616436343961343137 63663164383335613565666262383162363732616534363637323566353064343162383231303064
31366436636564373566306434373062613130616139313530316565646363366263613462353636 35373765376533383339353339636432633562333730386463633534353639656634636438303163
33613264653962303062636463353134303535323836646532386237393063646537623936383932 36653061303036653535643933663131616166666631393836383531643165363265626562623533
33323133343233643963316132653438356561633336336635383630633066396132636561366461 65363739663461356565313136663763333630643035383132323335333931333661376166326531
37663464313266333339303538336538356436383133326538626437386334613464663262366264 34316166623630386365386632373433383735313563643463333662366335616237303633653763
39303066376166663664636562666665666233353465363031623135376465373633626234303465 39633465353166313930353731376639336634633463346334643330646430313039613461333766
37346136393738383062346533306138386366383462386164323531386164313432356338663836 65633965613962376637353131373966383034333536616361326364633532353138326535663866
61323438363666393536356532353239336365366463383839353062306236373365626330643930 31336664333936393834346138653531313862323938373736383162386633383061373561306338
35383738626635616431663631326365663161386461613738306264636232323462363332393136 39626634653338356330373338376332623638336537373932653539353734636336616232306132
39653638613934383430393364666636333764373731616339646465656230646333323630333165 33323338653265666262383039393935616366623661653530623662373637356339653565323962
63613861616462316331316332316133383166323435343930656537613530376132616562663539 63626461396264356564363238663331653662613337343236333763363461623865636564373037
64323036336530656537616132313737666465303864646262303339343664626132343231353134 62376633616131313439343866336363653135363035386534386665323433653366653630646138
37363466353263663934666366336333326436623961636330663065313764663635306339626163 30666330363835303664336162343432653235386631616433613262646336626331336532393438
36313133366634633133366362343365666135653664353837376536646135343437666663616466 63313737353531316261353437663163383964663561313235393338306362376137383330656162
63353362383636383936623261363435373862656135323166643665616535396631653566323064 32373363643466336231633136323264383934666634363933393137323032366564313137356262
30386631303932633165306435323961613232393338346134653465643836636236643964356230 62333533363638616639633863663931376364373061323732343934643337383239303631626537
33626464353233306437393238376539366562643035663130313434376231363863333363366331 37393032656231303366396233396162626236663230383966306361633233633430623135376132
35613338663734366462333261646661303532383335613538353733333265616263613330343836 66393765363931386662326236393865353161633036666465653236393366363534343764316565
63633663393136346335343763623032653939636236646136313134326536353566623864343731 66646166656437373231623133303662393461323830363261373566646163626334306265356436
61353566336436663666313136393932356461626362333264303936633034363930636132313135 64353930303966303364396166663535336265383536373139396137396130333138393561616632
32616131643362633964623137666361363031373837383533653834386331313863323032383664 36393732326136396534366630353731653331636333663965323433643931653033383039363638
63306333613939376465386362363335303238626637653065356432303862633336653438393763 66373161326430363831343238656632626564306338636361363530663463363232373139366537
39373333646431326435633834643363336166323738663062613237656666613965303333623133 37393162666464353662383564383665343334363463626231316535353738373333313738316138
66326139343565646163626631313833633038623934326435363364316139373634353165343063 66383537663363633161346630323330653933356565616639353536386136666265383432646233
34313430373036313636386336643230366637396539393266643734303461313931316164313338 65303163393635616539323762633962633165323661663561313061616239373834633937623064
65386139313434623664313531316533303366626666626432333831653862653734333066356461 37373864303336323437303563656163303137656230336562336431623665323731326565626238
64316564613162386339333966333661656438356463363937656132346637653333323831643433 64656232663363663065636239313030656132396333623332333637303537653534356662353838
36633365653263336634373661646433346138623936376166636464366331353362663838316161 34303364636537623735656537613735393334616661373532363935363534356466663134613138
62393531353134326434613665646465353235636261616662656537666337353436336265306131 38373437646135356165333336636639313134636136313637333364396335636335313361353265
39653066356236333235306437383730666436613164396233336438383230633763653335366436 32396236643133396663383165653131316339616330373034393331373831626339313466363132
31663061346239346133616136306537643864393765636466343030396134666138383762653632 34386266363637363562663764393133653732623039663034393539363061633237363737613336
30613532306364633364343637613930636464316435396331356436363030633962666136363935 61323538633263666431346532346564353235643037383535373366613831373066636138626366
66613930353961623636666331323239663136613837393033353733656635623936386563663965 36356563663339646534353962376436613566666165346135333264373334626530616332333961
66626531666262666233353066626665313931633862343531633538323030363636313033303163 34386536666338306632306362343435346666303737613238373863366331646438386538373861
64343330346666336564333865383262346361366630366162303132633766313439333536356563 63626361623932326334626630663336323439643666623332613262346535663462643834353231
66336439343735643534663031306333306638313261326163633933613830633464613037356639 38303766366461323532356139306264326264343536386535303331376262376431666538626464
66376432336130393635613238353133356131623664343663313861383163613565653939313136 61666235643939643334646463623337316565346263613862616263333335613736303366613430
65313761663965313038616436613735346536636365353434633432633466373633653334623835 38303461366438363534633036373264303633613964363561346336653136353132666663376363
39613633363539303065306333366532623432343964333766666232643666653037636565643337 38633235316666356464636538636337323432643037613762303735333836643861363464366337
38353036393136323536646636353735353030356666626133643837373838326662326430613162 33366138396262623530663138353963306164306163303663623438353130646566656332373938
33376262646136306632383937633239366137626533393665346337323832646336313233346535 61336337316334303135646461373463643365623235343834636164396366636639633933366561
61336330396563323863303333383038326565396139343030343537366130373030623962656364 31386533336261326439386661326462353831393733643065316266376230383839333733396233
61333336623864643365323463306137346530613465393438656230313363383235303935316538 63393935306331376336393937616336326263643631353764386164363639626334663032613133
65313438393162313534326130386531666339323636626362356330353232316231353635303337 33633436376534373138316466353838663835336634306538313334643036333537653864323162
31663838386339623539376332373136653830336633363432653065333539643861393966313132 39663565376331346532656130306632393638663139626334323261643733376636623961323533
66313266363363376161333436643437356638343961396537396237343731373135386161366162 32653066326235346130333732396231346136336134383863383864613830313031646664386234
35356261333137386162383637613237393132353562383130643032326534653061336238353462 30656333303234663630633237633161393966623562633964393161336335616362323535656136
61303965363861653835633539393935313862346134376638646238626532646539393438313935 38666162306162366461303663346562306638353334383630306231346234396566343162323135
39633562356363326230653434646266636635373465303066343562363332333934363065633130 35376136346138626130323765626464613537623530616235353537373932626535316566363332
62336464333665656133663230616237643531616665623235633434353039326438356330323065 38336533333162643666376232646330613166633535383961666264373530313563386535353434
32653961373731343065396232386262653739646463343939303831383437353561646435373730 38333062376634323933336239656138393961633863633537396364333039333262616166613832
37366539353637346465396533653465616130396630653766633766636432393463616533633331 30373632333062663730343731663162376238313930376631643163353063663838326434633435
30666636646631363838663665363433393962643035303332363330396631663739363363376663 65323465343839616166386435636233306136306563666535633164633430386332323266323038
33666435343837623039326565323934306563613432623130313134616538386631353866333266 63653061396662336362646331353062326261376161363662346639373965356266333239613137
31653463623637356433623336353436653763643934313433343234373563666566363564623032 35393665636238663262646130356664343033633363303536663538306139336139383864636236
61666535666430666161653636333032356361333937323765326432623065656463363331346536 38313834393733316636313862383930343839653662623335393637396363333434646262383465
66356430306436356531323531303264616139633663376461633931663438326335323565643266 38313231353862373935316236383135396639643761623035313834353730396330613237316465
61333265643832396633633338613736663335383962386331656438386433653465353966663338 66646131326462383662303563646366333630343934376339323936363966393939623031343833
31656531643831646263313833373832343531333530336332366430393738303630646332363365 63366333623332623666643932343739363735326361636536656164303365363163633934633730
63386339393666306632363164353661333830376434373666336563613232336336373561626538 31306264656535396665386133353366653064363036656135663135373931636566646638356662
36613435643133396538613930336330383138643734393530323036623565356162643330393632 39393433363633613437346637383837663864643734643332393833363830616536623933623239
33386534636166613134643666616566346265656361643333313566663162306330363761663565 35366530636235643333336261633661636330633535393030313134633834633261363635376234
32333035613533636339613830396637393030633530643663396239396161336661376465646361 63643139306632613330346264656434326238383061633837653064663334323762613636353339
35656631323261366265666434313437363063316462373261613639313534336235343165376130 38363861356131376230613032353738356134316261613030353932303635383564333664386338
66393366636338653332356262613238663735313035623362623032663933626162323036316536 63363033613232386431633531356532653035343466616664626363643734306233393566356663
61333161306437623733663836656634366261353134336535663561666461666339366134356432 31643039336332636461366266343865383666356166333566386531626134373038663362306533
64356633666133613439663634363233306338653536346631643961636136343435333537303063 34306534623166393561633266333366653261653365326337613436633137373234366234326564
33633331313635623936326664343363313331653135366433393365336138306637366137643764 30316231636339366434396131623064353961336666626563613234303034376537646130323637
37386464343030376335646430396530363035333732303061646630626662343163616465346336 33386532393339646437366337626463393066653831646337346463356437386333656464393233
64656437393264373330353463646561633735653434383433643130646562643734383839613230 64333036663330373662646534653239303831323536346138393939383861303331336630353738
63383663333135646665623637636333383564623238316564646437363831363930633931623930 33383838663939393038386438636135396361316438363234313864343731616363336533393738
65636635656261386362626637383835376439646462306633663365663131313539343631346664 65343166343335623665653936396362363861636231643432313962333034383337656634666633
37643739623436653830313161396238306537616364333431386665313461326138346633643335 61333161643464323562343539633130373065666363393337636664376662313834656232616164
34326135316534383030306635636633323035396566386538633531613139633138633539386366 37613062346439326665633236323661646331336333313034306133353732336163656339373335
65356635663634343334633538663461636133326237646363393433623662316461613232303134 65303662633039316439343363306637303530323235663261386162363930623233616639333264
63373263653563313264636633663630613533623636643465313633333262616337363061376334 62303965636463303166323461376531393031343464663562353537613034613033346336393638
63626364356133373535306563623665656632363532643563313034353861363332623339643835 63373165663931346566626437393166626539393866646535393330323335333737353633633764
39346234643064663462663337633632343037663462346363633332306237643239303530633134 36643132336430303264633032316634663531666165613037313264303962663337653233346561
33363462373036623939623561626165653232643931393531373635303635663061666666613565 63646162343930356464623431333031613464323333323162323265633637313538363963633338
31613239633766633766383236383432343361353562663062313563623831333866646635646561 64393566643131666333333263626435613465303862663166303034313430616165656666646432
35353863303861633830326665623330393864336364646664656433663663353030613964646138 63363634366434666461613337353765663466396330613230663737613030323531663432363465
38336661633831663436336538333935366266306332353132623039356537323834396136653634 61623661666664366664303434373362303431623234393862633639336332316333303664323937
32616330646265633539363534616665633137303439616161616564363565646137616535323761 31653462326432633966353138626333306136623735633932323666656632383034633662333635
34353865366263636364633837653133623333636462623138616633353263316661366637313566 36303437343361343437643963663536646636626232633063636332353037396264366361336631
65366664663136646539363337376665616434326561366465663037383630343433383266613535 39353638643930326166393666663262336232663661383862363731393733336665326637653434
62396162386663623130373534323462316634653661326531646635343061643139343264306639 38343362386430363666666239623333623339623862613630663762353835303837663061303432
64333031363265353032313433353461643536376530326261663561653835326465633466313961 39366138383263653338393131393532663965666164353963373461373263616565373166303530
39643330653363316233643032663563643162376266316139306433346564373933613230356335 64306333343764363264363934393739316133313536353065326632316365396132326235626232
30373461653935393666393535303839336266633435313030666261316439353037653639613937 37353562363139386633656437623165623530636138313139643764613230633133386666366437
61303263633261656132623534653236393561336630636665386634393430623730653564386539 62333634356362343633643235643537383837343731303036396566396238623939643466373630
62666665346638373333373264333635636435376361313339393363393661356333373138626366 64633161636638393732656534346139343230313132613737313565393665613265353562313037
30336665633365346330346338343337613430666231313037313361363236363032383966633936 62313362363362623934663564626265363463396366336633313839643134653962656332653639
34653635623161313832643764663164616661313530323733353337386339306439313738646563 36353238353264326139386438363438363066396537633963343839616462373838393232333932
36623935353832616538663535626262363237613361303234343063356234373334643962373366 63353566663363373636336665393763323237383337343137623063653265393264396361383166
31303061393436333833393739653864343032613233663333323930636536333132633665666632 34666332616164633639626537393234316530626461653161393036386161396666386538316366
34303063636366383162306438353361326532303331353561326230613036333562396530373635 39393762626663373430646666653233376134343838313034313136303837333233353761353530
37373866623362336633616637386437313932393535366562323733613437313638303665646138 31623364333033643035363735396562623965636437613661663736376665393037363966633430
32643531633333333162353830643763613638363865353239646535383939383063356337393035 31376334333139613466613238303938663337313239643066353532383132336539353861396538
31656666343730373961336437653061396165376363383439343131306131313437616432383834 33333664393764666635326461383737653661643731323935353531653735613263383435366533
66343831383362346264613766613062373337306532313763336663353137666662353031366363 61333436386335383634376366666233633833643738646436373664306338643366643035613138
63323037383139313131373265633933666563393464336564313434353834373331643865316665 66643661336633666333366438303136316332616638336261353162383266623933316631396232
63626531316230326237643235323339653762386164336131396630363639303361613262623262 35306437643133346538323364616638636464613536323334646637333061343332376433346634
35656236323837393732376535353633313762306438363131376337313134326331383730643634 31356333633832636437316466343034633266613263336132383336326532363137303861656138
37366232616563356664613265656161643261663535346364636230393464626464376437306232 35356635343232313631613638366164303164623530663862653138633065306163343132626430
61366263333065393937633437326565306438613834623937623537363562653332323335303738 31633739653666646564323365663961396562333336366130636530393463383461623934343164
34633766396335646138636463316237306564323832613765353630613238303439626437656330 36316264363065343563636331373635343638373864646465306566646234643732306530353636
66613838313766306234613563323331653466653263646132393437363435633931616438363338 38316437393264643533623338656663343633646265613531623933666432663334646136356265
38363832616362323237383935633930376166663430303032303165303362646236326636653938 32326530343938653761333734323563643532363330326531313335323764653239626137613164
35623764613939313235313237633636643839343936313139373933383966306434623265646562 61306437663537303561393039623330626530393363653165366236343737653137616539646332
37656563376232666164653061303866373962343137373034356534663935336331646664323838 32656363383631393438336434323032343632393736376132656439663962323232336630623466
36323263623537653966646361613239323264643665396163303331386232333036646362633338 64373939323832373934373531363838333565396236383661633134303338373030313436303130
62353061343336316339626264616364393939666133313962666430343931633933343232353033 37663438336262346164633632653739613766343938303138653330656431396336376461633339
62383564353465306166303936363363343962316132613835306636636562393061336639326139 66396565646661346461643035646432643432343435333861366531316265306530653034386265
39643935663530303766363834656665313564366563313135613431633734303639626238653935 39303239366633613431333863663034633864373439646236633434333738383662643063373835
61396436326633383037386533326664363739626364656138393063373264386465313436323961 31626134323462353965653131656336316265376364636533333631373966306631613566663133
65353637323264633033623432373435333036626565346632393635336131353732323933613364 30616162636138303139306436653834366233616631303037393538633735323133346562383736
36363231313362356338373738386665353736643365343363663336656162303232646536383132 66306265346266393566613137326132366132366463353330306539653732393963366165353139
36353665326634363233646530383738306238653965343132333734363232343535396335323937 66643663643339666137343930633637396263346264643561383162666461346431346532353733
63613432356331306238643631393035653038626565656566333665303139626662333564303631 38303863303537646130363066303439623664316666373039613639653133666635356165303831
61613637306564616565383735376465356264343137623631363966393261623561333364323136 66653238643265386161393062393763383263656161666162633833336166333538386566323732
30666636346132363564363332646236333736643438666230636236333463373764656234333134 63303962313365363939323630386532373938313630633532613331306164356338633137346262
65386539663032613532363635653935616533313230643637366364313735616231333937346137 37376665373131316338383265363335646463663534623334303839383965376362643061376133
36663166386338383638303231323431316262343430343032613035663537386463393232376362 36323830323938636636356561616238636134616263323633626662396239373531646363336566
38356566303066326436663564396564306331393665386434366564386164336365376135346437 65383938656530396361663631613532316262396562323034663763653230646336633263336538
32323437313865396232623761323736666432336138326462326535643664373839633433633464 34333866306564313562303930616330653638313031656138343565653161323931356561633264
35373035616238613132393738656364626235646163656561643936626432366262393530373865 33313066643461343636623235376636646537663263313234356133376532663439386364326264
65383462623266663164383332636464343134383931636539636165623230356462323336313166 30356238613761363638376431623431366131373230373239643066343035356462326533613533
65396535376663636166353266393138326163306231393335626434333663363832613733306539 64623438363138636435333963376366656232313435373131313235636265323062333562323436
63643035356264333062613562643032383662633730643634376632363965323165396334326630 66313532616131623836373134363033646238313861616334313033326330616631633439613332
66363033313365363739646566323834333733383833633733363639646465326435313338346336 32393134643464363337653138336332353531316261316562393532346365666261346534653037
34623839326664326338653732623138653164303935306438653439616130376334616339616336 33363363393563636638343265393135663838393263623364366561623934316439306663396665
38336262623035636637623030313131393163346236656263366364396566336661616636313031 34323838366463653032303337323434643461323732623464373564613365663037383834353266
30663635386634393933616534656630353736366461396336323336323035626465366434313438 66376537623464653433393638623337353233363932656637363661323862663930633931626138
36306436336238663435653634633933313431356635353735323937363038636534383633663362 32613436303533353261666131636231353835666138663235386430323161623565333934383364
66363834626338373766613362356261656163616434383163353439396639316237633762623761 65393730636438306132663464313331663966346330346437383231646439366631323865376530
36663936303135656337663630393235383837396535333837383335656532386366316563623766 37343534616239373739353930313331303537303131653433393338396136313161306432303937
38616435613038633561356631366139396633313166636661323763653761333630316230643333 31333535623562656662613762626365306632626461333835346431343766393135653536356536
63653234333435623638346530623839363965326166333062353164653132643762656161366161 34653137303162656164373738373264613536663831363662373964306231343239656533353832
61633635356533623665653032316533303732353461376538626634373664396565626239633463 32643232333339316539323132663239613731393939316466653464373835303632313436323163
66363735306139383366373661663739643430636436356330646235653234306636333264303134 61383338333739363730633162373530626563393938323131323538326430323431623931393030
30386635653263336136316366623932633165666237356633663430396331313839356661323534 63353264626465323061663531656131633834353233643962666333383530376233636166636666
38333933633533386137656538623263303664376232373635633733666237613836336366393339 30393534613466623031346236643333316336333633646630643164653834353536333461353537
61363636326166303965663838616134656564336661663364313435303966636132613461383463 62613038323730363638616437393536636333323237626633343165386230393064666638396332
62373733633566366232656136336564313039616661303064643065343765323963376430313633 62653736353238653235356462656266616635613861623762336139656139363966386237393538
39646436646465333261633237666665666265636631333631626530353234386430396439316433 62616661613537633232636134373763376465386361313266663133643364356231636232386261
66363830656638363662653239316532306334346535353034613037383935336531333239303762 38653935663231323833626635663730623438306134636363633062373738396334393435373632
63393837353835663639623665313035643266393964643735663133613133383565613663643132 39343862646464633934643735363332353064396464663761393836353137313536383930653765
31633731363965346366623165356162373339646166626631323864353433303338643066393966 64643766616139306335313965376434643637613836373663663131663065663961376661363239
61643539643765656339613330653830306263316664633537336362323062366339303666616536 39373563313737396131323465333462346138316131303663336638303838346565633136343964
65373533616263303037333565633761626666383066353063393435306232353837636339346662 63633161326361303232613163316434343565623863363662623765376365663337653239376263
32643133333838373737663763333230336531663936376434333061316330613137343031326437 61336566336239643033666566316232623966643662386233396438343366303838363661653364
64346632396265303565646536303334373831386130653136343835313765313431383565633432 64323065396531363363393433316538386366623839626639373266393432313730646261333830
39313266343732306463623762666361386261306565323835656535616635646538656161663234 38383964633036333139383131326361353461346337353436333730656161326361306330373636
32663761353736616666303662346338613435343931373539613762396565333135303461626534 31303438356633363332633839616237383334396137623263363030373361623032663363656330
65646132343636663664363130383033343333643065343865323764653437353932336664383031 31653464353737336333356635326366316533663839366636393263343963356530663135366435
37633237303933376131343837303239356538343739383233383639383762343131326161326364 66656365396565306635656663666434646632353035653138616161383434316232386333623162
38396266383237613835393039633732366634313635373831373238313965623236376265653136 30363964666239373361656437363263646239366362316331313234623562363434613137326536
38373666623435613165326138396432666231383537626162393232386565633461636664373265 30356436356436333263656338303566356133383034353161383663356236353361623539653466
30366263653839616435663732643539323739306662376135326136356334336465663363646430 63663033393733366630356432613238633936306537333136366430303033336532306239336133
37643533303364393266306139393431623563326431626265356264336462313931616631303739 35343432633663396165663466626263316434646265363363316436636433656165333839356433
32353463323663333039363938326361326661623664383330343062653264353166633366636166 33313838313833333565653233623732316161316566343135323065313166376466613264616163
39656665366435376131343430303663633337656331316433373465383431343936666336353062 61383062346235643033363866643838626537363534383162353435343835643563316535663533
64336639353335303734656136363765643266346262393134373262383366616362 33623630383835353339656430633135393364346432663662663934393534366534326137666236
62356136346333653538626433333139353566313831643063626165343437333265633537313261
39613933653362353731353261373230313432303536316664636663396238643665633937623837
38373761663538653232646365333331396565343831343534383230323032373166663033333837
36353163353732313735663065663531646366326332663831623039366566386237333134616638
32323639326431303335396265333539643935613062326438343834376365313565666262623465
363230303264613965363966303463356363

@ -16,6 +16,7 @@
- unzip - unzip
- tcpdump - tcpdump
- net-tools - net-tools
- acl
state: latest state: latest
update_cache: true update_cache: true
register: apt_result register: apt_result

@ -3,3 +3,8 @@
systemd: systemd:
name: prometheus-alertmanager.service name: prometheus-alertmanager.service
state: restarted state: restarted
- name: Restart kassandra
systemd:
name: kassandra.service
state: restarted

@ -0,0 +1,68 @@
---
- name: Install dependencies
apt:
name:
- python3.9
- python3.9-venv
state: latest
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Create the kassandra user
user:
name: kassandra
home: /opt/kassandra
password_lock: yes
system: yes
- name: Install kassandra
become: yes
become_user: kassandra
pip:
name:
- wheel
- "kassandra @ git+https://gitea.auro.re/histausse/kassandra.git"
virtualenv: /opt/kassandra
virtualenv_command: "python3.9 -m venv"
- name: Configure kassandra
template:
src: kassandra-config.yaml
dest: /opt/kassandra/config.yaml
owner: kassandra
group: nogroup
mode: '0600'
notify: Restart kassandra
no_log: true
- name: Generate certificate
include_role:
name: generate-cert
vars:
directory: /opt/kassandra/
cname: "kassandra-{{ lan_address }}"
owner: kassandra
group: nogroup
key_mode: u=rw,g=,o=
subject_alt_name: "IP:{{ lan_address }}"
# Need an equivalent to notify here
- name: Copy the CA cert
copy:
content: "{{ ca_cert }}"
dest: /opt/kassandra/ca.crt
notify: Restart kassandra
- name: Copy the daemon configuration
template:
src: kassandra.service
dest: /etc/systemd/system/kassandra.service
notify: Restart kassandra
- name: Enable the daemon
systemd:
name: kassandra
state: started
enabled: yes

@ -42,6 +42,15 @@
subject_alt_name: "IP:{{ lan_address }}" subject_alt_name: "IP:{{ lan_address }}"
# Need an equivalent to notify here # Need an equivalent to notify here
- name: Setup the alertmanager config
template:
src: alertmanager.yml
dest: /etc/prometheus/alertmanager.yml
owner: prometheus
group: prometheus
mode: '0640'
notify: Restart Alertmanager
# Here we go, using nginx to add mSSL to prometheus... because who need to authentication on the server with ALL the jucy data? # Here we go, using nginx to add mSSL to prometheus... because who need to authentication on the server with ALL the jucy data?
# Think prometheus, think! # Think prometheus, think!
- name: Copy the nginx config - name: Copy the nginx config
@ -56,3 +65,6 @@
dest: "/etc/nginx/sites-enabled/internal-alertmanager" dest: "/etc/nginx/sites-enabled/internal-alertmanager"
state: link state: link
force: yes force: yes
- name: Setup the matrix bot
import_tasks: kassandra.yml

@ -0,0 +1,32 @@
{{ ansible_managed | comment }}
# See https://prometheus.io/docs/alerting/configuration/ for documentation.
global:
# Config used by default by the receivers
http_config:
tls_config:
ca_file: "/etc/prometheus/ca.crt"
cert_file: "/etc/prometheus/alertmanager-{{ lan_address }}.crt"
key_file: "/etc/prometheus/alertmanager-{{ lan_address }}.key"
# The directory from which notification templates are read.
templates:
- "/etc/prometheus/alertmanager_templates/*.tmpl"
# The root route on which each incoming alert enters.
route:
repeat_interval: 6h
# A default receiver
receiver: kassandra
# Inhibition rules allow to mute a set of alerts given that another alert is
# firing.
# We use this to mute any warning-level notifications if the same alert is
# already critical.
inhibit_rules:
receivers:
- name: kassandra
webhook_configs:
- url: "https://{{ lan_address }}:8000/webhook"

@ -0,0 +1,16 @@
---
{{ ansible_managed | comment }}
username: {{ kassandra_username }}
homeserver: https://{{ matrix_server_name}}
password: {{ kassandra_password }}
tls: yes
tls_auth: yes
host: {{ lan_address }}
tls_crt: kassandra-{{ lan_address }}.crt
tls_key: kassandra-{{ lan_address }}.key
ca_crt: ca.crt
alert_rooms:
{% for room in alert_rooms %}
- "{{ room }}"
{% endfor %}
...

@ -0,0 +1,13 @@
{{ ansible_managed | comment }}
[Unit]
Description=Kassandra bot for alertmanager
[Service]
WorkingDirectory=/opt/kassandra
ExecStart=/opt/kassandra/bin/kassandra
User=kassandra
[Install]
WantedBy=multi-user.target
~
Loading…
Cancel
Save