agent: order bao/github/forge-accounts logins after the isolated-DNS rewrite
This commit is contained in:
parent
252b893bbb
commit
52f589780f
1 changed files with 9 additions and 3 deletions
|
|
@ -44,8 +44,9 @@
|
||||||
# bridge dnsmasq (gateway IP) is. hive-priv drops the marker
|
# bridge dnsmasq (gateway IP) is. hive-priv drops the marker
|
||||||
# `/etc/hyperhive-bridge-dns` (containing the gateway IP) since
|
# `/etc/hyperhive-bridge-dns` (containing the gateway IP) since
|
||||||
# isolation is always on; the oneshot reads it and rewrites
|
# isolation is always on; the oneshot reads it and rewrites
|
||||||
# resolv.conf on every boot. Ordered before the first DNS consumer
|
# resolv.conf on every boot. Ordered before the first DNS consumers
|
||||||
# (the forge-token fetch) and the network targets so name resolution works for
|
# (the forge-token, bao-identity, github-token and forge-accounts
|
||||||
|
# oneshots) and the network targets so name resolution works for
|
||||||
# the very first turn.
|
# the very first turn.
|
||||||
systemd.services.hyperhive-isolated-dns = {
|
systemd.services.hyperhive-isolated-dns = {
|
||||||
description = "point resolv.conf at the hive bridge resolver (isolated containers)";
|
description = "point resolv.conf at the hive bridge resolver (isolated containers)";
|
||||||
|
|
@ -58,10 +59,15 @@
|
||||||
# edge the harness can start before we've fixed resolv.conf and the
|
# edge the harness can start before we've fixed resolv.conf and the
|
||||||
# first turn errors — self-heals next turn, but better not to flap).
|
# first turn errors — self-heals next turn, but better not to flap).
|
||||||
# `hive-matrix-daemon` likewise syncs over the network; the `before`
|
# `hive-matrix-daemon` likewise syncs over the network; the `before`
|
||||||
# is a harmless no-op when matrix is disabled (the unit is absent).
|
# is a harmless no-op when matrix is disabled (the unit is absent);
|
||||||
|
# so are the bao-identity / github-token / forge-accounts edges on
|
||||||
|
# agents that don't enable those oneshots.
|
||||||
before = [
|
before = [
|
||||||
"network-online.target"
|
"network-online.target"
|
||||||
"hive-agent-forge-token.service"
|
"hive-agent-forge-token.service"
|
||||||
|
"hive-agent-bao-identity.service"
|
||||||
|
"hive-agent-github-token.service"
|
||||||
|
"hive-agent-forge-accounts.service"
|
||||||
"hive-agent.service"
|
"hive-agent.service"
|
||||||
"hive-matrix-daemon.service"
|
"hive-matrix-daemon.service"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue