Alejandro Mery
6aec17d079
Merge pull request 'drop toml support' ( #16 )
...
Reviewed-on: #16
1 year ago
Alejandro Mery
ab8ffdd507
Merge pull request 'zones: warn but not fail when scanning finds unknown monitors' ( #13 )
...
Reviewed-on: #13
1 year ago
Alejandro Mery
422e119f88
Merge pull request 'zones: add structured logs to zone scanning' ( #14 )
...
Reviewed-on: #14
1 year ago
Alejandro Mery
204f3a49a1
drop toml support
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Nagy Károly Gábriel
d1198328f6
jpictl: introduce log verbosity flag
...
Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
1 year ago
Alejandro Mery
7795610caf
Merge pull request 'zones: fix `jpictl dump` by explicitly omitting Machine.logger and Zone.logger' ( #15 )
...
Reviewed-on: #15
1 year ago
Alejandro Mery
32046fc1ec
zones: fix `jpictl dump` by explicitly omitting Machine.logger and Zone.logger
...
if they were fields, as in Zones, they would be ignored automatically.
but they aren't
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
2016b27707
zones: add structured logs to zone scanning
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
c038ad4431
zones: warn but not fail when scanning finds unknown monitors
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
159ccf59ac
Merge pull request 'zones: improve scan validations' ( #11 )
...
Reviewed-on: #11
1 year ago
Alejandro Mery
6a071ba5f0
zones: ignore unknown wireguard endpoints
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
3e90e3ab1e
zones: ErrUnknownNode and ErrInvalidNode
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
90dd0c1239
zones: ignore machine-less zones
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
033ca2f20e
zones: validate Machine names
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
8c32b88e24
Merge pull request 'zones: pass logger from cmd to Zones, Zone, and Machine' ( #12 )
...
Reviewed-on: #12
1 year ago
Alejandro Mery
1bca1f7da1
zones: add logger to Zone and Machine
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
5e5958d22e
zones: introduce (private) logger interface
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
45447275a7
zones: introduce WithLogger() scan option
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
e03e5e0d05
Merge pull request 'ceph: generate fsid if needed, and export FSID on env' ( #10 )
...
Reviewed-on: #10
1 year ago
Alejandro Mery
a655603343
env: export FSID
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
c291b218a4
zones: improve GetCephFSID() to generate a new UUID if none was found
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
3911a51ccf
vscode: add gofrs to the dictionary
...
as we use "github.com/gofrs/uuid/v5"
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
1fe1cf940d
Merge pull request 'ceph: add initial ceph support. reading and writing m/ceph.conf' ( #9 )
...
Reviewed-on: #9
1 year ago
Alejandro Mery
f10ea1dc22
jpictl: write m/ceph.conf on sync
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
ac87757b06
ceph: zones.Zones.WriteCephConfig() and ceph.Config.WriteTo()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
fe081a4297
env: set ceph monitors variables
...
they indicate the ceph monitors on the specified zone
* MON{zoneID}_NAME
* MON{zoneID}_ID
* MON{zoneID}_IP
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
cea8362fe6
zones: extend scan to ensure every zone has a ceph monitor
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
b772ec0a3d
zones: store ceph FSID on scan
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
77ad016e99
zones: set Machine.CephMonitor if its referenced as monitor on ceph.conf
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
bf4bfeb3fc
zones: introduce GenCephConfig()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
e3ab931eb1
zones: introduce Zone.GetCephMonitors()
...
returning the local ceph monitors and setting one
if there is none. non-gateway nodes are preferred
when setting a monitor automatically
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
05e04c758b
zones: introduce Zones.GetCephConfig() accessor for m/ceph.conf
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
94011a3a03
ceph: add NewConfigFromReader() and initial ceph.conf parser
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
025b9072b4
zones: introduce Machine.CephMonitor field
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
0fb8c1d44b
zones: introduce Zones.CephFSID and Zones.GetCephFSID()
...
the accessor doesn't generate one if needed yet
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
a8849b747c
vscode: add ceph to the dictionary
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
879d2b4d1c
chore: update dependencies
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
ff4bb97599
vscode: add jpictl, zerolog and darvaza to the dictionary
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
c95bf06da2
chore: update dependencies
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
2e48f34f7f
chore: update revive to 1.3.3
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
8e5fc44e62
Merge pull request 'jpictl: introduce `gateway` command' ( #7 )
...
Reviewed-on: #7
1 year ago
Nagy Károly Gábriel
3d5a766161
jpictl: introduce `gateway` command
...
Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
1 year ago
Alejandro Mery
6f5ca3f235
Merge pull request 'zones: add methods to work with files at the root of `m/`' ( #6 )
...
Reviewed-on: #6
1 year ago
Alejandro Mery
296d4007ff
zones: add methods to work with files at the root of m/
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
1a03404a07
Merge pull request 'zone.ScanOptions, custom resolver and prevent unnecessary DNS calls' ( #5 )
...
Reviewed-on: #5
1 year ago
Alejandro Mery
d2f0a0744b
Merge pull request 'zones: Env: allow multiple gateways and drop unused `ZONE{zoneID}_IP`' ( #4 )
...
Reviewed-on: #4
1 year ago
Alejandro Mery
71a1d1a7c2
zones: Env: allow multiple gateways on a Zone
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
de45fa6c30
zones: Env: minor tidy up
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
6e46d23b45
jpictl: only load Machine.PublicAddresses for `jpictl dump`
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
94daf5ad59
zones: export Machine.LookupNetIP() and Machine.UpdatePublicAddresses()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago