mirror of
https://scm.tikali.ai/tikali/applications/monky/monky-deployd.git
synced 2026-09-18 07:56:14 +00:00
1c42e913a8
Stdlib-only Python 3.12 agent for docker VMs and laptops: flock → checkin
(bearer = the agent's OpenBao token, bootstrapped from the install kit's
jwt-tenancy deploy grant) → action apply|none|down → bundle (sha256
verified) → refusal checks (unresolved ${VAR} names only, manifest paths
pinned to monky/data/<env>/see/, privileged/host-network, rollback, disk
need×1.5+headroom) → lease → POST /v1/auth/jwt-tenancy/login → KV reads →
.env 0600 → promote → compose pull/up → wait healthy → report; finally
renew-self / re-lease before max TTL, scrub. Exit 0/75/78/1. Redactor log
filter. Transports sdk (openziti) / proxy (ziti tunnel proxy 18443/18200) /
system. Laptop mode.
Packaging: hardened oneshot + 60 s timer + proxy unit, nfpm .deb with
/opt/monky-deployd/venv, install.sh for Ubuntu 26.04 (Gitea release
download, enrol, ACLs, bootstrap from stdin), ansible role skeleton for
osg1-07. CI: lint/test on every change; wheel (openziti on ubuntu:26.04) and
package (nfpm) allow_failure until runner egress is proven; GitLab release +
release:gitea on v* tags. Docs: README, PROTOCOL, OPERATIONS, CHANGELOG,
CLAUDE/AGENTS.
Divergence noted: monky-tenancy main (MR !15) still ships the AppRole lease
and kit; this agent implements the plan's Gate 1 RESULT (login_jwt, no
unwrap) and refuses an AppRole lease loudly (LEASE_SHAPE).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KLB7jieMNRkTsJ2epr4Ds1
36 lines
1.7 KiB
YAML
36 lines
1.7 KiB
YAML
---
|
|
# monky_deployd — install and configure the Monky backend pull agent (MONKY-ADR-0028 §D).
|
|
# Copy this role into osg1-07 (roles/monky_deployd) and roll to env-dev-06..09 after the pilot.
|
|
monky_deployd_version: "0.1.0"
|
|
monky_deployd_base_url: "https://gitea.cbs.tikali.net/mdella/monky-deployd"
|
|
monky_deployd_deb: "monky-deployd_{{ monky_deployd_version }}_amd64.deb"
|
|
monky_deployd_deb_url: "{{ monky_deployd_base_url }}/releases/download/v{{ monky_deployd_version }}/{{ monky_deployd_deb }}"
|
|
monky_deployd_deb_sha256_url: "{{ monky_deployd_deb_url }}.sha256"
|
|
|
|
# per host (inventory / host_vars)
|
|
monky_deployd_env_id: "{{ inventory_hostname }}" # env-dev-06 ...
|
|
monky_deployd_site: cbs
|
|
monky_deployd_transport: sdk # sdk | proxy | system
|
|
monky_deployd_identity: "/opt/openziti/etc/identities/monky-host.{{ monky_deployd_env_id }}.json"
|
|
monky_deployd_laptop_mode: false
|
|
monky_deployd_volumes_on_absent: keep
|
|
monky_deployd_interval_s: 60
|
|
monky_deployd_healthy_timeout_s: 300
|
|
monky_deployd_disk_factor: 1.5
|
|
monky_deployd_disk_headroom_bytes: 2147483648
|
|
|
|
monky_deployd_tenancy_service: monky.tenancy.deploy
|
|
monky_deployd_tenancy_port: 8081
|
|
monky_deployd_bao_addr: "https://bao.cbs.tikali.net:8200"
|
|
monky_deployd_bao_auth_mount: jwt-tenancy
|
|
monky_deployd_bao_role: see-env
|
|
monky_deployd_bao_kv_mount: monky
|
|
# the openbao-ca certificate (PEM text) — from the vault (ansible-vault / OpenBao lookup)
|
|
monky_deployd_bao_ca_pem: ""
|
|
|
|
# ONE-TIME bootstrap deploy grant, minted by tenancy at playbook time (1 h): the role stages it
|
|
# and runs the first tick inside the hour. Leave empty to keep an existing bao.token.
|
|
monky_deployd_bootstrap_grant: ""
|
|
monky_deployd_run_first_tick: true
|
|
monky_deployd_timer_enabled: true
|