Alejandro Mery
7986e0fd3b
env: add REGIONS list to output
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
8 months ago
Alejandro Mery
3ba721bf7f
env: add []string writer
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
8 months ago
Alejandro Mery
e410797413
env: use foo= instead of foo="" for empty variables
...
to improve readability
Signed-off-by: Alejandro Mery <amery@jpi.io>
8 months ago
Nagy Károly Gábriel
3fdbb6f867
Merge pull request 'cluster: introduce RegionIterator, Zone.ForEachRegion and decouple getRegion from finishRegion' ( #43 ) from pr-amery-regioniter into main
...
Reviewed-on: #43
8 months ago
Alejandro Mery
0158dc3a3c
cluster: add recursive RegionIterator to Zone
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
8 months ago
Alejandro Mery
9226cf2dfd
cluster: introduce RegionIterator
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
8 months ago
Alejandro Mery
173dba0c3b
cluster: decouple getRegion() from finishRegion()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
8 months ago
Nagy Károly Gábriel
3a2a20a611
Merge pull request 'cluster: introduce Region.Cluser and m/{region}/k8s_token to store a cluster's token' ( #42 ) from pr-amery-k8s_token into main
...
Reviewed-on: #42
8 months ago
Alejandro Mery
019143820f
cluster: remove k8s_token files from zones on write if found
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
8 months ago
Alejandro Mery
d3bbe6d270
cluster: introduce Region.Cluster and m/{region}/k8s_token
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
8 months ago
Alejandro Mery
7125e28b74
cluster: extend usage of the ZoneRegionsFileName constant
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
8 months ago
Nagy Károly Gábriel
7f5ac151c8
Merge pull request 'wireguard: switch from gcfg to asciigoat.org/ini/basic' ( #8 ) from pr-amery-wireguard-ini into main
...
Reviewed-on: #8
8 months ago
Nagy Károly Gábriel
28bcaa2838
Merge pull request 'jpictl: add --version and version command' ( #44 ) from pr-amery-version into main
...
Reviewed-on: #44
8 months ago
Nagy Károly Gábriel
3cafb1a4e2
Merge pull request 'ceph: prevent osd label update on startup' ( #41 ) from pr-amery-ceph into main
...
Reviewed-on: #41
8 months ago
Alejandro Mery
09bec11506
jpictl: add --version and version command
...
from `git describe` using go:generate and embed
Signed-off-by: Alejandro Mery <amery@jpi.io>
9 months ago
Alejandro Mery
14686ff5a8
ceph: prevent osd label update on startup
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
9 months ago
Alejandro Mery
3c24e24d71
wireguard: switch from gcfg to asciigoat.org/ini/basic
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
9 months ago
Alejandro Mery
45dc2291bf
Merge pull request 'remove unused arguments and update dependencies' ( #40 ) from pr-amery-chores into main
...
Reviewed-on: #40
9 months ago
Alejandro Mery
b019d303d4
chore: update dependencies
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
9 months ago
Alejandro Mery
f64f4e08fe
cluster: remove unused variables on scan option factories
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
9 months ago
Alejandro Mery
cf09cfa743
Merge pull request 'cluster: handle regions on filesystem' ( #39 )
...
Reviewed-on: #39
1 year ago
Alejandro Mery
00cf3959a2
cluster: load regions when scanning a directory
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
0db3e18227
cluster: introduce SyncRegions() to write regions file
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
0094450ca8
cluster: fix regions/zones mapping when the region exists
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
a910bba406
Merge pull request 'cluster: introduce Machine.Inactive flag' ( #38 )
...
Reviewed-on: #38
1 year ago
Alejandro Mery
5ef6d45ef7
Merge pull request 'jpictl: fix cloud.yaml unmarshalling' ( #32 )
...
Reviewed-on: #32
1 year ago
Alejandro Mery
99998dc7e8
cluster: mark Machine as Inactive if the "region" file contains "none"
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
892d849740
cluster: introduce Machine.Inactive flag
...
if a Machine is Inactive, it won't be included on the DNS
aliases for the zone or it's regions.
v2:
- Machine.Active() renamed to Machine.IsActive()
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
125a4c0dbe
wireguard: implement EndpointAddress.UnmarshalText
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
7c811d7813
wireguard: implement UnmarshalText for PrivateKey and PublicKey
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
1580c09746
cluster: add Machine.ReadLines() shortcut
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
a928ab8880
Merge pull request 'jpictl: add flags to control the default scan' ( #34 )
...
Reviewed-on: #34
1 year ago
Alejandro Mery
66fc213f64
Merge pull request 'cluster: improve defaults to ease initialisation of new machines' ( #31 )
...
Reviewed-on: #31
1 year ago
Alejandro Mery
944400249f
Merge pull request 'jpictl: create machine directories on `jpictl write`' ( #33 )
...
Reviewed-on: #33
1 year ago
Alejandro Mery
1492061ab8
jpictl: create machine directories on `jpictl write`
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
57e1077a85
cluster: add MkdirAll() support
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
5a3d483f98
cluster: refactor Machine.ReadFile() and Machine.OpenFile()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
0ff17abd59
Merge pull request 'cluster: add top level ReadLines(), WriteStringFile() and RemoveFile() helpers' ( #36 )
...
Reviewed-on: #36
1 year ago
Alejandro Mery
a742bad084
Merge pull request 'dns: sort zones when writing data' ( #35 )
...
Reviewed-on: #35
1 year ago
Alejandro Mery
629b6ee74f
Merge pull request 'cluster: sort regions, for `jpictl dump` sake' ( #37 )
...
Reviewed-on: #37
1 year ago
Alejandro Mery
884b11d1f9
cluster: sort regions, for `jpictl dump`' sake
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
5bbe15ef24
cluster: move SortRegions() from dns to cluster
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
fd1c57d377
cluster: introduce Cluster.ReadLines()
...
reading a file, splitting and trimming lines, and
allowing # to comment a line out
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
2fd5947f1b
cluster: introduce Cluster.WriteStringFile()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
14b3d91191
cluster: introduce Cluster.RemoveFile()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
abe3005769
dns: sort zones when writing data
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
727fd67bc6
jpictl: add --domain/-D and --scan-dir/-d options
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
b8e1b321e5
jpictl: add `-S` flag to ignore the config file and always scan
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
0c5429a681
jpictl: move verbosity handling to the log module
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
e5639b2f4e
cluster: generate ring keys on scan if missing
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago