From d0f6bcf6cff06d166d88e79982ada5ced4229c18 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Fri, 13 Nov 2026 03:47:17 +0400 Subject: [PATCH] ansible: run the another-im/interop runner on asxpio-services The interop project kept a cx23 (claude-test-interop-runner, about EUR 6/month with its IPv4) only to run its Forgejo runner. Run it here instead, with the same registration (UUID + token, token in the vault) and the same three labels, pinned. Its PR checks are untrusted, so unlike our own runner its jobs get neither the Docker socket nor host volumes. nix-host, which on the old host used the host's Nix store as a cache, is a throwaway container for now; a second, trusted-only registration can bring the cache back. Rollback: remove the role from site.yaml (or stop the container) and start the old runner VM again. Assisted-by: Claude:opus-5-5 --- ansible/inventory/group_vars/all/vault.yaml | 314 +++++++++--------- .../forgejo_runner_interop.yaml | 7 + .../forgejo_runner_interop/tasks/main.yaml | 13 + .../templates/config.yaml.j2 | 40 +++ .../templates/docker-compose.yml.j2 | 12 + ansible/site.yaml | 6 + 6 files changed, 239 insertions(+), 153 deletions(-) create mode 100644 ansible/inventory/group_vars/services_servers/forgejo_runner_interop.yaml create mode 100644 ansible/roles/forgejo_runner_interop/tasks/main.yaml create mode 100644 ansible/roles/forgejo_runner_interop/templates/config.yaml.j2 create mode 100644 ansible/roles/forgejo_runner_interop/templates/docker-compose.yml.j2 diff --git a/ansible/inventory/group_vars/all/vault.yaml b/ansible/inventory/group_vars/all/vault.yaml index e408ee2..56ccbff 100644 --- a/ansible/inventory/group_vars/all/vault.yaml +++ b/ansible/inventory/group_vars/all/vault.yaml @@ -1,154 +1,162 @@ $ANSIBLE_VAULT;1.1;AES256 -32356366663237323730376532393462356237346236616131303336623262653236356331333330 -3035633139313236643830343031323136363663383338350a613731626164323234656637653630 -61613839303334303866613762346363373731333962323066666132313664616438373365613635 -3139633033346437390a643430646134376364393737343234386661353938623531353937666430 -65366364613362393262313863346432306265353264353464313335646365326233376631373732 -63666661363462663633633461323635633065613633636664383233353661643638316662386633 -61626635386463323230366565386163393063383436636666643037353337343339373035366539 -31353561386565383232306263333231326261633132303036666562326635313365346633636634 -32353739633631666134373963383865363935326130336336333739393130353831646632623562 -61373038376462363864333061626564623239396135626537366439373063313039313966363439 -39363837356434356166353839363035373233656665663838346563623433346333643038323130 -35333239313863303066366265373365636535313339616238343435613737356635643833633066 -39613835306532383930303130633535666238323864386466336131313637336361313137306161 -61653063663131666539363463326332383763643064653133343633633066366362373235663736 -65376239316364666161323661613661333265366432366137386538646333653166646538626364 -30636263336235336363646136663266376538646631323665636561313537393834336565313033 -65663339626638303365333438393261653432373438373065343862373339623361383530343232 -64333964643837333666663434356534653561313864383137303761346364633461653635656566 -32613434373365616132353061333864333063386335653638623165333765653230313939353037 -38633966323032623937376565383134383034376539383632393064666464313439633330666335 -34313038333366353433646236666265366235373439626162306435663364643333316562346439 -32653466613966303933633538366466636461373930353364323030646436316436383562646664 -62626230363830306366613530633363653265623531383936396539356132393634323434356437 -66636661626335323737643538343834303238346631666334393934343134366331346532396137 -39396662396437656138626230343438336637663163303735653335663134343862373862386465 -63643362643462663961663165306533623931313133636365616665333537643365623833303439 -30656338323062366263636666333636356565653338323366346431396434633261623833376635 -62346563373163663163643036383730663939613032663161396432653039373561663264646135 -36303836656563333431633565383130616335356539333934313065333638363739393930393232 -65366537623836356361393865396534376238663264643834333230636636666139643734336161 -63333164303132373136623834666566663864336331666533646130393465613039613166306135 -63373334346134396566656233393666333063313435626561356464363064643966373561346465 -30346334383766623539386338363363343938343166633834326261396637333963656437663137 -65633233383138666538663933303337623130613166373632623334386236313765633037613165 -65653565623264623965303133653938383261636163373238353632313365613264643834656330 -34383965666337663334333362623266356666643565626432383861366131336564353732356634 -62316164663463326539316264323433346430363431383131393832383530333634643065376536 -32616132626332623132333061353961396331366666326631303165303261326465303062323863 -34656164613132616138383537336466353461363233393161366566356664336331313661383835 -38393938633537313731626132376636343234336431393939643438363634326434333236333335 -36356538653465616663633337626439366132383434326539663434333133356364653133336639 -33313331373761643662313431386364303262383566333462323532343135376666333363333432 -61656234643666343531646665336534343533346530326265643335383962376662326631653638 -32626439303562623364353263316535646134363736323133393832653536353262306334393439 -32306531623134656438613738643562663339336438353537343837393164386338363263323762 -63333162316365323964313663383863363836643636326237626432623738323063303639373639 -65363330353736333831333431393332616264353263316338383165303237343037396362346265 -62663330643964663833346561363661613137646563396164383236633135343136653338353664 -35616164646332333338626336376138303133323335353031333566613732386335386365626635 -62353138343165346437666233633736646332313132396462633235323563636338333662636466 -37343364343533623034653165633263343238666265636365636162646262383834613238366635 -62656233653162346530393236343437623137313766306466646136643962343062643732306164 -38633432363365613864376436393566363239343761623838623232613033363438656136633231 -39303366623764616137646136353336343765353266363161343638303532356261666166616138 -64373865303035643866666335356639656134353339383666373332363631393030346433316466 -39663535393238613537343764316634633632616465343539643938313134653437386132336166 -32636365353161313030393830653565623933313165323661376635643638646237313661336566 -31323533353536306561663735383639353539663835366632333232343038646432666438326263 -35386162663264396562613338386336623536306530366266346336643763656532653733366534 -64393436313962356233323164383639363435656639303563393336623735613363373933313139 -37353930396531633531336333656339336264353864396461393162316365343261653939313039 -61653164646466613562386566663031356363383836633661373566386235626339646139393234 -61323237383131386531616463663465613731306636356230306530623261613838633562333031 -61326131393631633161386363386635633465613430616336356537616664383763333566363033 -35363634643537646337363639333039343761363032633934633339633765643330613035633939 -38353133646461653038383837656431306239306366323866623539383561316432626135386234 -63353533336330643263346338353538383663656161616162363538323061613237396332303866 -35326466663762616138373839383865316131346438353038626134313861613139336162616138 -33393665396439323738613030366439323136653164616163643433343438373131393666633638 -36333236323434376533626435353264663930663130343037616462306663616139363565313732 -32666166643830303536633439353130303235323166626634313139613565323235666131303432 -33316531623736333832356563383234346338663634366436306533366464366663646137396566 -31393034366439646161643361663436383437623839323366616537353436366366363036373565 -37396439633238313266383635623665396636333431313734303435323134356163656462323964 -39313335356133623234393536346539333231373035396233343832633566643337656237623465 -35623764343934646261333266613562363630396532653764303531383666363766383765363734 -37663537613633643830326237363335623566376639633065363330313462633566653832643866 -35633434303665656462653438313838636638333734376539383931396535333837393330333739 -34313434653366663737616331626136626634646333303637363563336466303938363630333334 -30656264633065333137643865633030643230636363396565383530653734653134303032376231 -30643834636361313131653266303633626565666234336638386538633739376238343831343035 -35373265343966666462633261323538633531653238346466616234313537323938316239383162 -35326438313065313534313534626535313738323035386163663666653339613166373837346532 -65623235353136323961623631636437656234633337653036353461313939373464383431343163 -39333836336462636562396161303636666238663432343838383833306130633639663262616361 -30323331386363373262356666303036343836343636353865613965643365396238313564333966 -36363031386637313230303536303232613331666334393535363365653733353965396436373561 -63636137313836346164383239363862353830333038363562396133343536633335633235333133 -32636263633635366664363235666330633364303531376166666530646336346664323338636262 -39643534353535323534366164633435343963333331353233633432623738313038326132363962 -63316563376163386139656566656661396664666231373433613337326238303362383563623661 -63353762336336303362383132643766663138313739366634666531616363616161613836666665 -31396265353033663166366137393030366265333232663161356636343863333633646166313466 -61636238613366623835383633346538306130626132346239346166653736343138613633373765 -39623437623531313138313731313934623837313039363233653930646336393934373361303834 -66373464323066303735663862383266346131323365313932356132633037366337373136313434 -39373832346264363633306535623733363666393032353031373336353239646461306162653534 -63323132626362316538323264316362656233346130326165333334333834643333636234626530 -35633531663034636637373762333632336262373066356530613631343664633764643765613131 -66353036356664646264336131323539633038373438623261313335663763386334336662376634 -35376661316333363539633239653337663064613033363931653362323633386664366138363137 -30336536343430333936656536663331656631613733396632343764363163313862373936323663 -36306432663539336531663738363365376431616262346664613134366664373536386433333566 -31346133643639613934383964656162623037373462633031353561623238636230633731323536 -31326562343339376664653065656635353662663634386263363330356566336661313536666265 -66666165356534306163326137336331306430336536663965323964656233396638636563356365 -31366161363366656463373063636433343039303037646533626633613362393639323736623437 -30386665326534623266633463643535356633303639346632666633363464306230653837333937 -32636538353431633963366132366331323838393639613535613237646466666532386535323966 -38323363353764313332336137653364343232323164353733646631343565316133356436343936 -35636132663964633135363335383062663464346330666164396330616435663663363664643064 -38306162616232633239313565383836356566376238303164393539666265313066346632303165 -62393866346363653831623063346631396631653863303038373239643964666238333461303734 -33343136333535616332633038646663623232663730376438386538633936323033356534356532 -30313638326633396261343937333464386135646231653262646162303739613232326139303034 -39326633383937313536636466373561393866303664653264353033363039613664656637656539 -32616230663138323964663236363763643833373161313066363434636334636337323035643131 -63636131663537313438316632376134313666393437303031356662626531653639303363346335 -36393862366433343365643738666132666130303331303837306432623731383863613230373130 -65623030366661653439303561356533336465656636356164646636373765336239353461636566 -35616335643430663666653363666431356436343439643464356635313764663335613335396161 -62393661353733336535633436626366653031323663383133383930383034313236353362376637 -35323438633761383366383066363663373563656465316134373162396130616463333634376431 -32323465356535653938303732663464653966613834313463616161343637306236393266656565 -64666465313665633064343639656532633331663362366434393566643630333732346465626237 -38373433623037396364663165623263326262323962616636613865393536626661356133613764 -66633036623335646166356537313337353634326239646262303964633836636463343735313966 -34386335393564613961623231336638313835613935316335306438343565333330303866646636 -31663731663762643136323062643433636666626330376364396230663765613466373336303730 -65326434393465336532353236366139633935666130653735346265643463366563306266666537 -34636662386238343032616263363736643435313839393038643934313263613635366537623666 -33623034386166663831616563343733653866326263396261636635363337663239366261623538 -31363132356166363664653466626238636565633265346631626632356337303631613432346435 -39666137653636393135306135313465313035656538336434393233663361326139643237626439 -39613461333766333939636461323430623137383434343563333734336236346336626337313736 -31396535633136623333336465366166376338376235623537366636636331653737346165656364 -62663831323530626133323138393231306534323166643430656237336537306231623131383839 -65306661326533326539646266363461373461646464366264393364333232653535333934623738 -66343266333530613032316633323662356339366635373166623833646130643337613436363537 -39353737303862666234323230303137623434633636303263653762393937613234383862313561 -39613138356237373639663565653664643265373133356436343332363961616438643937393735 -31653461353030626664393137343431663264636263326535646665373130313961316639636631 -33626533336362356631366133636666343236396263626133626132343762633163633339313663 -65643930383164353931646538653065616362636335333236353764643864613338623465633066 -31333135633963383361623533316636346434316137633235343134663266373234383664323539 -31306233303234336130346665356133326431306430366364636662663630663833303664356632 -36633263653435333261313065653634653736393837306633393936386561613838343736326331 -65613233343866313835313733613630363736613064366138326364636566343961663338376231 -30636538303030303038353637663732336136656263303737623664376165393861643831616464 -37643433316634336238333432643039643334366632326234646339356333663739633934323632 -36626230653437303762343039643235646432663831363338643466396439376537353964663464 -31353433363037363135316535643336653430383333633465376631653162373630323636636365 -35376531633239393636396363626432306565656432653938396535663739386239 +62383639653033613330393038663633626639623331333361623062323062646462353239616633 +3832353736626233646462323464613639636462373835300a663964363162326364653838613165 +31613033663365663434353564653764366436643861363464323537623464386334313831353435 +6639623166373233630a306431383263626264386663326163333031386235666263373631343965 +39653262303264333238323662313662626339393361346663353939323561353563623061643961 +61613066383930303834373066373862616362396134626638343133326230663039303435656261 +30336136343461613039663861633033626264633864383137613561376164353739336531643063 +63376462383665653339623865336665663131313733623736313233653166356262316330303336 +31376631376631383832306435343763653539643536326139396331393135666161623135383664 +38356438306263633835313932613537356262353434373761626365386638643365633530393266 +32643036323165623139633031333639333437383663653338643634333633643735313131646364 +34643061376364636231363131636531336161623039343839376439663131613866653064316231 +38666631663536636163316264383230613332663066373730643538613964393162313434353738 +39663133313433323033633161633336643033383330353933643133303064616562666134313464 +37386636386231303864303761383363616165343363326365616231353735613536623664316462 +30626663333564336535633430383136646437366362333936633566666462653431643631383136 +39393466363038643663633136643766356566323531623665666438646434353162343766653639 +35366432326434333333343136613239346337326334343765633865376135396630383238373661 +64386561366164333563363130646132393163356135626432356633646531656534343237666364 +35613234303663396239316238646633663731323566343434373666336436383633373262616332 +38396166373932643964383238376562666430633563623964376339636634373638646433303466 +65623636653963323463366339653533303532323562343039623562646339646431333662633237 +36656634373461393333353432306330623461333963303165373264313761633561323963396630 +63656461646563343930376537633439646139396663336265343333383464653763303239333037 +33313964326264313863356666626437363133646634616631623131363435316237646336323165 +64333236343265303535306664636662313864633735306663386335363731303464386632326438 +66663938393832613733626563623236613564643631626265643132316632376461613064323466 +66383739613633386264343661353539333561313065316134666432656264363830636164313230 +30323937313861396333623737643531306531376533303931363466393566666536386337396439 +36373863363361333036633338303233643039653465363531666566336237616465306361636335 +33323064623362653637353831373561653135323836356264666639393133633564366237356534 +61653137313834633964393063346661346363333362633436363165316562316366346262366464 +31656236333030373833386630356161383763623336633064633066326564316164666332366663 +37333130353465326633643533626366373036313565663136323337633765633565636137343365 +63333332366265376539653863633162316330393939333438653432393063346634373336306461 +38633938346235313934633431393638363535393464313362663836373039373663393939323939 +62653632313435643932336431623032663231313332623734396633383566653133656364313739 +34383333636535353864656335383436326262393261663264346139373534373861613666616461 +65626263363132313337666637626263313231633463383632363739316662666339363562383462 +32363538353266646533643539643964376263313531626635643135643339353530333366363636 +35663833376332306166613931353034373864396166323430383566633231346233373061343833 +30653438323438313531376437303738646436623638663963643134663562663537366630363663 +31383239643137363865633233343733643661356438366435363734643764613337323261353735 +33666530323937376634303032373464663433386331336635303331653034353933313363303665 +61363039643231623137366231623964623635396435313365393464343033313331333334303366 +66333838353534626263303861343733313531663831623038653961376333303734386366373030 +37346531623462363566376534313231386662356437643633383161373431396436626465366132 +63383363326665366261343638353137363731383539623438303365663131316130383139636363 +65616630303134666332666132303164383866303935316438383739363234306339323634666331 +66656564343661643033306166656431303333616633303832626237396538366133623239373835 +61383362646565346234333230396665393863376336646239343665353836336630626431356133 +38313831633666613135643564383631643032383637623438393031653630313462333232396466 +36353735306632363432343633313361633233663336623633633033323736386637326462343735 +62303435663030393738393035353036343530636661303733393437323562356431343438363666 +37623736363163663166336233353362306439346234656338313964623265323464633765303261 +33346532653435376263653635393965323036656339303262303261373938316631333439653831 +62366664303631356666386461653735386432363065633337626632303437373535656631356165 +33356236623563353132613037376435396331323632306238643733656665393764363137663131 +66313561333765613739343766646232353932623035333838336463393838643133313635353566 +61373938613632376134336364626332623930646438353630353266333035353764363734636539 +30376138663032356636353731383661623130393263643138373032343035623931316630383033 +34336238363866396662333034616234366238386566616266326536653063316331303166306338 +65303330623331383331393838613666393831303761393030653335663130316238633963366436 +61333931646437376165666537373533636166376235303763393963386234376663366565353533 +35303832383865623539616566373064626461633564613261643332663264396565623638386438 +63383636356339303764333336303566353838653137623535343533393466363037353138303434 +61646139373033333337396165353737313632316361323935316435616434313932616432383565 +65643839363162306432663765643564393865626134613133653639333839643566303536306361 +30373632363030636264326537623462313161373833633932333438383866353032383731363438 +33396565393166323233323266363065613461613735373763306238363934623636393466323965 +35396636666639336464353565623561643032326433313136633564313066346130353331303639 +63313431633431323162366438343237353434343338343735313662626234333262343461633833 +31663165643334396433626563633266633366383334313864663132323737333632383433333665 +36623738336431383738656261653064313237386362643566656639396234303964653433313231 +34656166383038653363353665333330613036663236373464346466636532643436623232326432 +64626662636261633361663338363365323632646330396235663863613164323563616439646365 +39373866633836653361343835663931386137383133323464333165396664313665333563343862 +36356337313336313239613037343338323333653333363562653432613665333731663766353533 +64323035386234323365633365336161366133613839373338636538623531633363383436323632 +61643137646365383535333762393537316335376330396430663134343338393762653065366562 +66333161376531386438396334333435303464313637643737343764346631333334363135376632 +37636236363661393135306339333135633464643164386366323765363935336562393037613464 +38326263663236373639653862356331323630396335656436323465303762666534373433303439 +62386138646265613435366565396462396461336331616666306539623639616531623637353939 +31346232306638373666303264363861353964366132356431313463653766363864396464343933 +34353239376233656565356633386663346634393730376666303762386430633534646533366364 +65656130383961613334666539313138386662303639376130343066633836663036623031306336 +64356337386161366266396436663364643538333439626330616636353031363262666563323839 +34336238303938343565646263623866663963323764363938333464313639323734356131633339 +34346239656532396635303665386630326663383039353862646333306331313632336362383839 +65626332393863386437376531396232353734353233356231666438373166353433396163383762 +39626236373937313438323861383536353663656562366338626562313464643935633939646236 +32323936636362333731666463306534383037323362656266366432333131646162313237336633 +33386664316263656632653234306531383162376239383132356437323139393666323565373062 +30346432343763646664313262636538633365316436663862646563393236353262613831366535 +30333030376330303237343537666265643930613364366361303062343930346432376231386536 +31346330383030376464623635343762316431356434663063323534643637646666626465616430 +64346634313361363563616565306562353831353062646363666163386438363836356164633039 +30626532376266376462666639303536353262666135613134616430393566373261613062386663 +38326533306539663763373230303536363064633364666363336432323139393233643736363239 +38643464643664626364666631363962323034623938303664623562396166323932303465623738 +36613330376266383637616437653533316461653866356235363839656662656630303231393337 +63343061376330376566313738366639646662336334323935666235363733653632323364646538 +64383461326630303230393364303066666265376137643538303866623237623737636335646632 +65353330386462353834346466643063653930386563636665626566623765613266316334633939 +31653033623564323030343562356531343261376566663536343831666266663334326336313462 +64663266633830373237323364366665373364383166343764306435636437653438366636313433 +30653331636661343066326139646333633137326164643966363835343735643634363938646138 +64313138633833353766393833386530353530633061343433323765666639656261643964636438 +34303936663664366539373737386233363963613865633264313138623537356561313065646335 +66376631353562376664613431383430626533323761643038363864613034393233383966623438 +31383363376232343435666636663433393939313366343562353766396137633935613662626165 +32663834663139663262663032663234616137353566643063636531613865313831363237323833 +36363937373934613939663735346539643561303066623965623233346639623230666664363862 +62323639636331656332333161363466666266303631613763653335383761643335373031663865 +35636662343834663136666563343366633662663133316431643331333731386436343139616366 +33656139626432303563393539363739313364373965653930616165643034313935646636323235 +64383866343431613161363766336330323331323932313835636535393766336138353536303064 +62663965376237623238656633313566363565353461613032373237356632663433393430366136 +61313831316638343164653935376637383763616663663964613134323931383339626666306332 +63613264323661356136613837333266396330366564633936323634626264306462393064623234 +64306663623832343166366264313036653635356331383439643963363934623631303535323331 +39613564336537363435386665393736653230333230353961363338363563383063376432396565 +32616631613735303265666334326333633064366438343639623230326532663639393036613935 +61653965323939343864623434383363363137333939323336306437356239343834366566343436 +32353365613461646531336437326164323266393666623062326465646563326137373663616137 +65356134323664323664356439306137373762373162643163633262663637303239366530636164 +30306331653030646538336433383661633135306263613238376636656163366239346232643961 +32653034376438306565363632613732316166316236383837646437636363333035356361646666 +35343662396633353539316665306461313032393262366564303762376566396137653562353135 +31633537343337643361613666623566643138373732363534613166356563356463616561326366 +32323430633361393865343832326338373636343433313332353839356137376265306232326430 +34616633303765613961646330653531306665333236383630643534386265663530363130366139 +66343532643631326238343631613037376231663235633032616635653333396134666539343862 +30383436326534373964656634326166356236323135333964366361646532383732373030643465 +37653232333964613230663833303733353930636365633733333332313962393136666461613763 +37366236326536313636303365383231653261666161313232353437623863333731373831373133 +37343963373735346232383332303530343437646337623964666563323838653838393732396638 +62383731333465633565356634643831323564346561613334303962663337633538613537633530 +65303934656437376536623535396537616564316234366534326166666265633138626532333434 +61316336383733616364653065326337663765383831663337623333336361346534343162616164 +31343862303865303635623138373738396366653562313838366335623436386464323864633233 +32663364303365613061343738623230313765393361653434373361306562333336346161643365 +33303530616663633435326139356561333965633838353663633930336535346132346266643735 +38303461363664366232356462313766313465333462653865633034636665396266643462333138 +36373732656239666435383235323061306464313233373430373333663363383530386537353461 +61396262633964616332343138343065356166633730363632326362656163363833643936633763 +31386136376232366431633564316266646565363235376137636564303631636536646332343032 +66616165353334333739336466646635383665383864373537643736653435373535386335326433 +38653730666337643439306635303439623864346232656138643737373437333364363863363039 +39333434306439343538646131636233316139306361613631366134636635623734333561336636 +62323539636231623265333163353432346264383063323736366431303930323432363066393365 +62623864376162316563613163356337643034323736663837643261636533303531623337663732 +62636666336430666130663535336533363765643866613162653535633365656439356533393036 +32383830663431356162356664376635663463333333313632343735613733333931333534316437 +32396539346337396131623939346239356130376633613838326161313536333230663337373931 +31353331366534363661626636663233376130383134626439623835653834303362326135313265 +35363864346332336433656131386666313564623830336635623465356665333565633165363164 +62303133663733363534336665323739656237623535386361373235653061663134363937333331 +39326361636134306133643363333135343666663762616437653830386235376136656231393964 +3561 diff --git a/ansible/inventory/group_vars/services_servers/forgejo_runner_interop.yaml b/ansible/inventory/group_vars/services_servers/forgejo_runner_interop.yaml new file mode 100644 index 0000000..3d01ae7 --- /dev/null +++ b/ansible/inventory/group_vars/services_servers/forgejo_runner_interop.yaml @@ -0,0 +1,7 @@ +--- +# Runner for another-im/interop on dev.another.im, moved here from its own +# cx23 (claude-test-interop-runner). Registered in Forgejo as a UUID + +# token pair; the UUID is not secret (interop's infra/runner.json). +interop_runner_uuid: "dc326085-8420-4c33-8b88-a9ef46b3359b" +interop_runner_token: "{{ vault_interop_runner_token }}" +interop_runner_capacity: 3 diff --git a/ansible/roles/forgejo_runner_interop/tasks/main.yaml b/ansible/roles/forgejo_runner_interop/tasks/main.yaml new file mode 100644 index 0000000..2682872 --- /dev/null +++ b/ansible/roles/forgejo_runner_interop/tasks/main.yaml @@ -0,0 +1,13 @@ +--- +- name: Deploy the another-im/interop runner + ansible.builtin.include_role: + name: docker_service + vars: + service_name: forgejo-runner-interop + service_base_path: "{{ services_base_path }}/forgejo-runner-interop" + service_directories: + - { path: data } + service_templates: + - { src: docker-compose.yml.j2, dest: docker-compose.yml } + - { src: config.yaml.j2, dest: config.yaml, mode: "0600" } + health_check_enabled: false diff --git a/ansible/roles/forgejo_runner_interop/templates/config.yaml.j2 b/ansible/roles/forgejo_runner_interop/templates/config.yaml.j2 new file mode 100644 index 0000000..2f057d8 --- /dev/null +++ b/ansible/roles/forgejo_runner_interop/templates/config.yaml.j2 @@ -0,0 +1,40 @@ +# Managed by Ansible (role forgejo_runner_interop). +log: + level: info + job_level: info + +runner: + capacity: {{ interop_runner_capacity }} + # Builds wait up to 4 h on their builder VM + timeout: 5h + shutdown_timeout: 5h + fetch_interval: 5s + envs: + # The old host had flakes on in nix.conf; jobs here get it this way + NIX_CONFIG: | + experimental-features = nix-command flakes + build-users-group = + sandbox = false + labels: + # PR checks: throwaway container + - "nix:docker://nixos/nix:{{ forgejo_runner_nix_version }}" + - "docker:docker://node:22.23.5-bookworm" + # Trusted workflows (servers, build-anotherim). On the old host this ran + # on the host with its Nix store as cache; here a throwaway container + # until a second, trusted-only registration gets a persistent store. + - "nix-host:docker://nixos/nix:{{ forgejo_runner_nix_version }}" + +container: + network: bridge + privileged: false + # PR checks run here: no Docker socket and no host volumes in jobs + docker_host: "-" + valid_volumes: [] + force_pull: false + +server: + connections: + interop: + url: https://dev.another.im/ + uuid: {{ interop_runner_uuid }} + token: {{ interop_runner_token }} diff --git a/ansible/roles/forgejo_runner_interop/templates/docker-compose.yml.j2 b/ansible/roles/forgejo_runner_interop/templates/docker-compose.yml.j2 new file mode 100644 index 0000000..7114fd2 --- /dev/null +++ b/ansible/roles/forgejo_runner_interop/templates/docker-compose.yml.j2 @@ -0,0 +1,12 @@ +# Managed by Ansible (role forgejo_runner_interop). +services: + forgejo-runner-interop: + container_name: forgejo-runner-interop + image: code.forgejo.org/forgejo/runner:{{ forgejo_runner_version }} + restart: unless-stopped + user: "0:0" # the runner itself talks to Docker; its jobs do not + command: forgejo-runner daemon --config /config.yaml + volumes: + - ./data:/data + - ./config.yaml:/config.yaml:ro + - /var/run/docker.sock:/var/run/docker.sock diff --git a/ansible/site.yaml b/ansible/site.yaml index 4981aa0..bb14ebb 100644 --- a/ansible/site.yaml +++ b/ansible/site.yaml @@ -43,6 +43,12 @@ roles: - { role: restic_backup, tags: [restic] } +- name: another-im/interop runner + hosts: services_servers + become: true + roles: + - { role: forgejo_runner_interop, tags: [forgejo_runner_interop] } + - name: Bucket replica hosts: services_servers become: true