diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2022-11-17 09:48:45 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2022-11-17 09:49:06 +0100 |
commit | 6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0 (patch) | |
tree | 2846954ec3725f33cdbc1c33722f8ef7c4d8ad13 /ansible/borg | |
parent | 70f235f0ec9937fa41b80fe2d8c5355649c24ea9 (diff) | |
download | infra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.tar.gz infra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.tar.bz2 infra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.tar.xz infra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.zip |
borg
Diffstat (limited to 'ansible/borg')
-rw-r--r-- | ansible/borg/README.md | 4 | ||||
-rw-r--r-- | ansible/borg/borg-clients.yml | 19 | ||||
-rw-r--r-- | ansible/borg/borg-rsyncnet.yml | 26 | ||||
-rw-r--r-- | ansible/borg/borg-target.yml | 3 | ||||
-rw-r--r-- | ansible/borg/group_vars/all.yml | 44 |
5 files changed, 68 insertions, 28 deletions
diff --git a/ansible/borg/README.md b/ansible/borg/README.md new file mode 100644 index 0000000..4a3ecd0 --- /dev/null +++ b/ansible/borg/README.md @@ -0,0 +1,4 @@ +# Generating a new key pair: + + host=akili + ssh-keygen -t ed25519 -N "" -f borg/files/borg/$host/ssh-key diff --git a/ansible/borg/borg-clients.yml b/ansible/borg/borg-clients.yml index a155bb7..ad8b1e5 100644 --- a/ansible/borg/borg-clients.yml +++ b/ansible/borg/borg-clients.yml @@ -1,25 +1,30 @@ - hosts: - - conflatorio - - birgitte + - akili - arius + - birgitte + - conflatorio roles: - role: borg-client - tags: borg-client,never + tags: borg-client become: yes + vars: + borg_client__target: zh2569.rsync.net - hosts: - - conflatorio - - birgitte + - akili - arius + - birgitte + - conflatorio roles: - role: borg-job tags: borg-job become: yes vars: - borg_job__target: malabaricus.vpn.trygvis.io - borg_job__username: borg + borg_job__target: zh2569.rsync.net + borg_job__username: zh2569 borg_job__name: home borg_job__on_calendar: daily + borg_job__borg_remote_path: /usr/local/bin/borg1/borg1 borg_job__settings: patterns: | P sh diff --git a/ansible/borg/borg-rsyncnet.yml b/ansible/borg/borg-rsyncnet.yml new file mode 100644 index 0000000..b365e5e --- /dev/null +++ b/ansible/borg/borg-rsyncnet.yml @@ -0,0 +1,26 @@ +- hosts: + - zh2569.rsync.net + gather_facts: no + roles: + - role: borg-rsyncnet + vars: + borg_rsyncnet___borg_remote_path: /usr/local/bin/borg1/borg1 + borg_rsyncnet__clients: + conflatorio: + state: present + repos: + home: + db: + foo: + state: absent + repos: + home: + db: + birgitte: + state: present + repos: + home: +# arius: +# state: present +# repos: +# home: diff --git a/ansible/borg/borg-target.yml b/ansible/borg/borg-target.yml index ac3c5a9..d359446 100644 --- a/ansible/borg/borg-target.yml +++ b/ansible/borg/borg-target.yml @@ -1,5 +1,6 @@ - hosts: - - malabaricus +# Not used anymore +# - malabaricus roles: - role: borg-target tags: borg-target diff --git a/ansible/borg/group_vars/all.yml b/ansible/borg/group_vars/all.yml index e95de0e..ba95af6 100644 --- a/ansible/borg/group_vars/all.yml +++ b/ansible/borg/group_vars/all.yml @@ -1,21 +1,25 @@ $ANSIBLE_VAULT;1.1;AES256 -39313266306464353731363233373264623362623139633634316166373635346331343030646533 -3037313262343961653434373030623635386135386632360a376133363832656466363738393730 -33386133666536383739646536393163323037313632653232343162313065613165666435623563 -3336383935663464340a303066313338663739373937633665363033386636633239336663396566 -61626562663461626531613137316165626166343462626264626437333935643633306431636531 -34613238623732323165616531343134623334653231383665303432323365643664326331393432 -38363435376438663230343362343032333465616238393264636664666133323164623132643137 -34303736373366386237326163626363306638613737383533633762343236313435653034366137 -34393466353638393664633238636134636236373338636436633861646330313237636164623361 -63346463336131373461643633323238663065626537346565326666643732396635373935326364 -61636664356663353961643961356566373235326365623533393663666331333231643565353538 -35326664363438643837643330316264353433356362643435336466316564653538633165633633 -31316139353566626335303934616631613663633361333835396633666462373536646537346335 -62383338326661343831326237343430313061623661373561343839323463623234393736303834 -38336533383233333164363033663263633931616161386332343062343263633765343561363363 -61623437363861306136383837306161643834666430303161623237666434316361643136646333 -34323430653736636433373735646530396233616434623661663961363538613430613863373962 -34656662626264353464633530636264306238383861653963653065663331376435323333623834 -62643563313861383136313231373164633339656335343161393230346165336265623130663366 -61623661643664656563 +61376265656230393066336630633231383930333663653230323261653932373561376166653064 +3032316332386463616132323131356131383533613438360a303537653562353561316164626363 +32633765646266636234353663636632656161643938656535613861376331336665346238633262 +3436653537653331320a613065643861336661613135666632383035666465613933393434383336 +39663538646135306138316436356431323065663633323362303035363331643634303139376331 +66346230646131643465383461626266613563363965396631613031653332303935613061396337 +33313438643264326239666134336266333332346234383063616665336530396533363330633539 +36396561616335653462353762363632613832653566333833313135653030653261323431313333 +34303830613438643335323136626265626161353735303165373562343037623061663465646232 +37646130356263666132653035626665653636366339646661353030323565333933326363353139 +61653236396338316539633339373534663465616533616431666330303139626539653562333238 +38336236356535373437633838636534383730313064303938663434643632653439616337653738 +66393133373864323066373432353131646163363033646634303361313935353463613962383237 +38616239613132366137333537353161646361623566653932376263343631353530343439373734 +35393236343332356661636131346466663463396665303134356539313562306263356135363764 +31316462656135393961626330643865623364653162303335656530656265316263393163343134 +32343766386138343139663563616462303031663332343963323131386661376537626338656265 +65393762626433636661623234626435313531363866393736643566646230663830333536336638 +30623437383237363664633764323139353065666331353263373935396436646237623761666662 +65633336353935353834613131336134383762373762653634353530666336666665333262326161 +39353239396236303332316333633935643630613432353239653837353038363164643561303637 +34333233623863653464333065396536666332656530376466343736393834633634656332343833 +33663666633061393831663664386564363338386166333339353135636265633363366433643032 +31363361613639636435 |