This commit is contained in:
2026-04-05 16:13:37 -04:00
parent 87a14e9db1
commit 56e2a38f82
30 changed files with 7 additions and 511 deletions
+5
View File
@@ -0,0 +1,5 @@
[soupclown1]
root@187.77.193.76
[pt1]
dietpi@192.168.68.54
+8
View File
@@ -0,0 +1,8 @@
---
- hosts: pt1
become: yes
roles:
- dietpi
- oneenv
vars_files:
- secrets.yaml
+2
View File
@@ -0,0 +1,2 @@
- name: Install Reticulum Network Stack (RNS)
import_tasks: rns.yaml
+129
View File
@@ -0,0 +1,129 @@
---
- name: Create systemd service for rns
copy:
dest: /etc/systemd/system/rns.service
content: |
[Unit]
Description=Reticulum Network Stack Daemon
After=multi-user.target
[Service]
Type=simple
Restart=always
RestartSec=3
User=root
ExecStart=rnsd --service
[Install]
WantedBy=multi-user.target
- name: Reload systemd
systemd:
daemon_reload: yes
- name: Ensure rns service is enabled and started
systemd:
name: rns.service
enabled: yes
state: started
- name: Stop service for config file update
systemd:
name: rns.service
state: stopped
- name: Ensure Reticulum config directory exists
file:
path: /root/.reticulum
state: directory
mode: "0755"
- name: Deploy rns configuration file (using block for friendly file updates)
copy:
dest: /root/.reticulum/config
content: |
[reticulum]
enable_transport = True
share_instance = Yes
instance_name = B407
discover_interfaces = Yes
panic_on_interface_error = No
# If you're connecting to a large external network, you
# can use one or more external blackhole list to block
# spammy and excessive announces onto your network. This
# funtionality is especially useful if you're hosting public
# entrypoints or gateways. The list source below provides a
# functional example, but better, more timely maintained
# lists probably exist in the community.
# blackhole_sources = 521c87a83afb8f29e4455e77930b973b
[logging]
# Valid log levels are 0 through 7:
# 0: Log only critical information
# 1: Log errors and lower log levels
# 2: Log warnings and lower log levels
# 3: Log notices and lower log levels
# 4: Log info and lower (this is the default)
# 5: Verbose logging
# 6: Debug logging
# 7: Extreme logging
loglevel = 4
# The interfaces section defines the physical and virtual
# interfaces Reticulum will use to communicate on. This
# section will contain examples for a variety of interface
# types. You can modify these or use them as a basis for
# your own config, or simply remove the unused ones.
[interfaces]
[[Default Interface]]
type = AutoInterface
enabled = Yes
[[RNode LoRa Interface]]
type = RNodeInterface
enabled = yes
port = /dev/ttyACM0
# Set frequency to 915 MHz (US ISM Band)
frequency = 915000000
# Set LoRa bandwidth to 125 KHz
bandwidth = 125000
# Set TX power to 7 dBm (5 mW)
txpower = 7
# Select spreading factor 8. Valid
# range is 7 through 12, with 7
# being the fastest and 12 having
# the longest range.
spreadingfactor = 8
# Select coding rate 5. Valid range
# is 5 throough 8, with 5 being the
# fastest, and 8 the longest range.
codingrate = 5
# You can configure the RNode to send
# out identification on the channel with
# a set interval by configuring the
# following two parameters.
id_callsign = B407
id_interval = 600
# For certain homebrew RNode interfaces
# with low amounts of RAM, using packet
# flow control can be useful. By default
# it is disabled.
# flow_control = False
# It is possible to limit the airtime
# utilisation of an RNode by using the
# following two configuration options.
# The short-term limit is applied in a
# window of approximately 15 seconds,
# and the long-term limit is enforced
# over a rolling 60 minute window. Both
# options are specified in percent.
# airtime_limit_long = 1.5
# airtime_limit_short = 33
- name: Start rns service after config update
systemd:
name: rns.service
state: started
+38
View File
@@ -0,0 +1,38 @@
# A role that updates the root soupclown env for all hosts
# All values will be set in the secrets and then copied to an env file on each host that hosts services
- name: Update env file for soupclown services
copy:
content: |
#GLOBAL ENV VARS
TZ="America/New_York"
PIA_USERNAME: "{{ PIA_USERNAME }}"
PIA_PASSWORD: "{{ PIA_PASSWORD }}"
TMDB_API_KEY: "{{ TMDB_API_KEY }}"
# Downloadin
DOWNLOAD_ETC_PATH: "/etc/soupclown/downloadin"
DOWNLOAD_IN_PROGRESS_PATH: "/home/qmoran/Downloads/in-progress"
DOWNLOAD_DONE_PATH: "/mnt/mega/jellyfinMedia"
# Immich
IMMICH_UPLOAD_LOCATION="/mnt/mega/immich/uploads"
IMMICH_DB_DATA_LOCATION="/root/immich/postgres"
IMMICH_VERSION="v2"
IMMICH_DB_PASSWORD="{{ IMMICH_DB_PASSWORD }}"
IMMICH_DB_USERNAME="postgres"
IMMICH_DB_DATABASE_NAME="immich"
# Paperless
PAPERLESS_CONSUMPTION_DIR="/usr/src/paperless/consume"
PAPERLESS_URL="http://qmoran-desktop:8000"
PAPERLESS_SECRET_KEY="{{ PAPERLESS_SECRET_KEY }}"
PAPERLESS_TIME_ZONE="America/New_York"
PAPERLESS_OCR_LANGUAGE="eng"
# Matrix
MATRIX_ETC_PATH: "/var/lib/matrix"
CONTINUWUITY_REGISTRATION_TOKEN: "{{ CONTINUWUITY_REGISTRATION_TOKEN }}"
dest: /etc/.soupclown.env
owner: root
group: root
mode: '0600'
+56
View File
@@ -0,0 +1,56 @@
$ANSIBLE_VAULT;1.1;AES256
38633566623737636332636631313263653436356435633338623539306262376233316264633334
3439623864653232316335343839353437306635653164350a626662363861656164346132613037
65316238333635653864363833656465333464653534626365383632623334336637343537373335
6630363833626664300a633038633931366135653832393164396564336530373235663836623830
32306336613235363334643561336138663439323030633862366565353336326632393137383562
66356166316135376636393731663165353630396666306437393263643964303966313061346638
30373830356265633636626130346436653837663065346265626538363262653366313831396261
65343466363731633731623065306664646434333562356636376363333836333636303762333334
39313862313338633466353131383532643665303032366338313363386537333233306666663737
34313834343434336462313566396239323632306434336562356434396539343039653930373434
34373330613461373464366637613163363933346334316536666163626265663166386264313738
66626530323438663761333032633231636538636335623065373831326439326663363737386130
36336436373431303431356533616130326131663666643761323963353634656362396131363534
66363832313939383239376561346138373230303130303361343234313363373635666564323030
38353933333064396462373564613430666631316238613161333663663934363937633663663332
66326235373732323862616133373731626635316633613837373934663134383438323933393832
36393334313862353835663464366638373963383031633437663863386264656265626639303365
66313831313234333564343130386237323937373962313533626634303766313235363961336230
30346431316164313439663038353966373764336235623966386433366332366131663530343562
39623735636663626163616237653939323066323039373664366136386233646533313465356362
33323862633339316138383333333231346236303466383564633237356365633534666466313061
65653531326266626436356466313464343737306239333762303632316364646539346230663236
62393735633933303732313837303136373062373131366665333335613338633835613437633230
66333138346438626565323531396133323834306335346131613863646265353366613463623737
32643566636336306564313166666464616133653337313635326364616530323939396462316535
37646139343332376263663866383663343862656530373639353433396639306438636663343536
34333431636538373463363836333964656662396465323564396461336461636564643064336339
64373235363034663162343437373231616139633235383565346464613439363561396237613739
36346561613030643463646531663132343265383136353231386330313332363235656531313338
37373333336234663937653366353464313863313234623866383332343931383963333835316563
61353066623964313965663964393730666235353038393665616661363631306633353134616434
34396139333831653936373365316339383061663166613033396665383938303731643630336138
34636138363736356639323262373833363836373435373962633737383539306565613730626234
62646132313435383735313564396361373934313663313662646665393932653561613061376237
38626233353235393039366238313434393562393336623965333137643865386638663231346561
39376432666666343662626665623835643365613333326161623738323565636637666438653563
36373362356161343762343933393731666538626132363062313539373931653566646139363365
35353535663665373265323864366131326631613033646536333766343436316139363937383536
35363762653630346638376132306136336235333765336637613232323736386230313636316234
66343364316266663261333138363637313264393066616630326632366564656434623633313462
37343564373766666130353566393730356166346431613230623266393139613132373766366663
30656162383134356466303935343238656261616331333734626638346662393032633332396463
62356566656637363036666563616137306530313764336536393762343263653438623235613563
30636433623739366232313462316163313365333030623766356539663231626561666337376333
65356135346138313039663163653664316238303234663139306631653766613933396330663536
35646537363839616463306262323430653761356334646635353133353037626133633131393239
30356136336130313263363966653035653266336334313532303861633537663333313161346435
62313533313438663639626463323232663839316238663533303539623639653261636535373462
65336565313664336631343536366537373535363665616534633964653561643133653333303838
33646265376162363730373539616531616563396533386432303033376565646137353262323431
36303736663462636261346237663264343265333530623165306565303264323261356339653031
38316664616232643630376132623337653133393564656432633661333831316366653134396635
34626537373330363832303262316135656336373061646231333261663033376337343062613463
39626133323863383963653332376534666564366361313364613666343461373765363532323861
623131326234313330306339663434316330