Alejandro Mery
357c85dc1a
dns: SortRegions() by ISO3166
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
00aec477a4
dns: DefaultDNSProvider() using CLOUDFLARE_DNS_API_TOKEN
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
e0d8592dc1
dns: introduce AddrRecord{} to abstract A/AAAA entries
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
c397ca29ac
cluster: introduce Region interators
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
6e7f24f491
cluster: ensure ceph monitors are set when loading a config file
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
c702d649e0
cluster: introduce Regions to group zones
...
only available via config-file
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
1c199ed923
jpictl: update all hosts files on jpictl write
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
5dc5c95aa1
hosts: add generators for hosts files
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
70008e0ead
cluster: NewFromConfig() trying JSON and YAML
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
ec2b30c1e7
cluster: add DirFS() using hackpadfs/os
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
d0b0698c10
cluster: make domain, basedir and cluster name public fields
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
2a2e6c121e
cluster: group default option factories
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
24059dc9ee
cluster: rename Zones to Cluster
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
bedf62977f
cluster: move Machines to a dedicated file
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
5abb4c2f92
cluster: rename pkg/zones to pkg/cluster
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
204f3a49a1
drop toml support
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
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
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
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
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
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
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
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
94daf5ad59
zones: export Machine.LookupNetIP() and Machine.UpdatePublicAddresses()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
0989dec5e8
zones: add ResolvePublicAddresses() ScanOption to prevent early LookupIP calls
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
216bf5aa29
zones: WithLookuper()/WithResolver()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
9af88f6593
zones: introduce ScanOption/ScanOptions for New()/NewFS()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
af2d836000
zones: Env: drop unused ZONE{zoneID}_IP
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
f63ce6c4e7
zones: introduce Zone.GatewayIDs()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
1885c76198
zones: FilterMachines() creates a Machines subset
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago