[ADD] проект fleet: инвентарь, конфиг, генерация ключа

This commit is contained in:
arseny
2026-09-14 23:57:21 +03:00
commit aaa37d65d4
4 changed files with 56 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
keys/
specs/
*.retry
+9
View File
@@ -0,0 +1,9 @@
[defaults]
inventory = inventory/hosts.yml
remote_user = pi
host_key_checking = False
interpreter_python = auto_silent
stdout_callback = yaml
[ssh_connection]
pipelining = True
+32
View File
@@ -0,0 +1,32 @@
all:
vars:
scanner_repo: ssh://git@monitor.yss.su:2222/IU9/hackrf-scanner.git
scanner_branch: feature/scanner-v2
gitea_host: monitor.yss.su
gitea_port: 2222
hosts:
node102:
ansible_host: 192.168.1.45
static_ip: 11.0.0.102
sdr_serial: a32868dc35944247
x: -0.68
y: -1.28
node104:
ansible_host: 192.168.1.50
static_ip: 11.0.0.104
sdr_serial: 42a068dc377ab507
note: PortaPack
x: 2.28
y: 0.45
node105:
ansible_host: 192.168.1.87
static_ip: 11.0.0.105
sdr_serial: a32868dc33894f47
x: 2.60
y: 0.00
node106:
ansible_host: 192.168.1.42
static_ip: 11.0.0.106
sdr_serial: ""
x: 0.00
y: 0.50
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -e
cd "$(dirname "$0")/.."
mkdir -p keys
if [ -f keys/gitea_deploy ]; then
echo "[i] ключ уже есть: keys/gitea_deploy"
else
ssh-keygen -t ed25519 -N "" -C "fleet-deploy" -f keys/gitea_deploy >/dev/null
echo "[+] ключ создан: keys/gitea_deploy"
fi
echo "[i] публичный ключ -- добавить как deploy key (read-only) в Gitea, репозиторий IU9/hackrf-scanner:"
cat keys/gitea_deploy.pub