Alejandro Mery
948eff76d3
cluster: migrate to using pkg/rings for Addresses
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
6 months ago
Alejandro Mery
982e16581c
cluster: pre-compute Zone's primary region
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
6 months ago
Alejandro Mery
14e1c447c9
cluster: assign valid rings.RegionID to each primary region
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
6 months ago
Alejandro Mery
99dece1e43
cluster: use rings.ZoneID and rings.NodeID types
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
6 months ago
Alejandro Mery
fefbfa16a2
env: export ZONE{zoneID}_REGION
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
8 months ago
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
Alejandro Mery
24059dc9ee
cluster: rename Zones to Cluster
...
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
a655603343
env: export FSID
...
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
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
af2d836000
zones: Env: drop unused ZONE{zoneID}_IP
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
6ee848e6ca
jpictl: introduce `-e` for `jpictl env` to export variables
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
864eb02f9d
zones: turn Zones.WriteEnv() into Zones.Env().WriteTo()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
a5d9466fb8
zones: change WriteEnv() to not fake gateways
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
c81b782b26
zones: Machine.IsGateway()
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
0f62ee2e53
zones: rename Machine.RingAddresses to Machine.Rings
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
aca0a5e834
zones: calculate Machine.ID on init
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
2f51a463b2
zones: reduce writeEnvZone() complexity
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago
Alejandro Mery
75206e4fa5
zones: Zones.WriteEnv() writing env variables describing the cluster
...
Signed-off-by: Alejandro Mery <amery@jpi.io>
1 year ago