m/node/allocs: split new package off m/node
The metropolis/node package contains various unrelated things. One of
these things are node-wide allocations of identifiers.
These are moved here to the new metropolis/node/allocs package.
Additionally, the constants are renamed to move the type of identifier
in front.
Change-Id: Ibc841ca64d4450a7054463e6d2d44753a118e07a
Reviewed-on: https://review.monogon.dev/c/monogon/+/4566
Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
Tested-by: Jenkins CI
diff --git a/metropolis/node/core/time/time.go b/metropolis/node/core/time/time.go
index 23400ef..d7cd721 100644
--- a/metropolis/node/core/time/time.go
+++ b/metropolis/node/core/time/time.go
@@ -20,7 +20,7 @@
"strconv"
"strings"
- "source.monogon.dev/metropolis/node"
+ "source.monogon.dev/metropolis/node/allocs"
"source.monogon.dev/osbase/fileargs"
"source.monogon.dev/osbase/supervisor"
)
@@ -53,8 +53,8 @@
cmd := exec.CommandContext(ctx,
"/time/chrony",
"-d",
- "-i", strconv.Itoa(node.TimeUid),
- "-g", strconv.Itoa(node.TimeUid),
+ "-i", strconv.Itoa(allocs.UidTime),
+ "-g", strconv.Itoa(allocs.UidTime),
"-f", args.ArgPath("chrony.conf", []byte(config)),
)
cmd.Stdout = supervisor.RawLogger(ctx)