Guard manual schedule calls and document control-source layout
This commit is contained in:
parent
1bdfa279f5
commit
2966b53edc
2 changed files with 6 additions and 1 deletions
|
|
@ -10,7 +10,9 @@ Terra deployment: `192.168.88.104:8099`, `100.64.0.11:8099`, `127.0.0.1:8099`.
|
|||
Allowed peers: `192.168.88.0/24`, `100.64.0.0/10`, `127.0.0.0/8`.
|
||||
Config `/etc/archipelago/control.json` includes `listen`, `hosts` (with port),
|
||||
`allowed_networks`, `port`, `coordinator_root`, `worker_root`, `worker_source_root`.
|
||||
Unit: `deploy/archipelago-control.service`. Source: `/opt/archipelago/control-source`.
|
||||
Unit: `deploy/archipelago-control.service`. Source: `/opt/archipelago/control-source`,
|
||||
which must contain `control/` and the imported `pipeline/monitor.py` and
|
||||
`pipeline/release-schedule.py` (deploy the `pipeline/` directory with `control/`).
|
||||
LAN address changes require updating bind/Host config and restarting this service.
|
||||
|
||||
## Monitoring contract
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
"""D-098: anchored three-day OSTree cadence plus calendar-day-30 ISO."""
|
||||
import argparse
|
||||
from datetime import date, datetime, timedelta, timezone
|
||||
import subprocess
|
||||
|
||||
|
|
@ -22,6 +23,8 @@ def next_release(now):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# A typo in a manual call must not silently start a release cycle.
|
||||
argparse.ArgumentParser(description=__doc__).parse_args()
|
||||
today = datetime.now(timezone.utc).date()
|
||||
selected = mode(today)
|
||||
print(f'{today}: {selected or "not scheduled"}', flush=True)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue