devzone 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/Dockerfile +4 -4
- package/.devcontainer/agent-errors.sh +154 -0
- package/.devcontainer/agent-local.sh +2 -2
- package/.devcontainer/{agent-modele.messages → agent-model.messages} +1 -1
- package/.devcontainer/{agent-modele.sh → agent-model.sh} +8 -8
- package/.devcontainer/{agent-droits.sh → agent-rights.sh} +2 -2
- package/.devcontainer/agent-session.sh +122 -125
- package/.devcontainer/agent-state-json.sh +117 -0
- package/.devcontainer/agent-workspace.sh +53 -53
- package/.devcontainer/agent.sh +113 -115
- package/.devcontainer/{ia/docker-garde.sh → ai/docker-guard.sh} +1 -1
- package/.devcontainer/{ia/plugins/devzone-garde-v2.js → ai/plugins/devzone-guard-v2.js} +4 -4
- package/.devcontainer/{ia/plugins/devzone-garde.js → ai/plugins/devzone-guard.js} +3 -3
- package/.devcontainer/argocd/argocd.sh +8 -8
- package/.devcontainer/argocd/{catalogue-argocd.sh → catalog-argocd.sh} +1 -1
- package/.devcontainer/argocd/services-hook.sh +5 -5
- package/.devcontainer/{catalogue → catalog}/app.sh +4 -4
- package/.devcontainer/{catalogue/catalogue-veilleur.sh → catalog/catalog-watcher.sh} +7 -7
- package/.devcontainer/{catalogue → catalog}/mysql/mysql.sh +7 -7
- package/.devcontainer/{catalogue.sh → catalog.sh} +13 -13
- package/.devcontainer/cluster.sh +8 -8
- package/.devcontainer/devcontainer.json +1 -1
- package/.devcontainer/devzone +55 -54
- package/.devcontainer/{docker-relais.sh → docker-relay.sh} +2 -2
- package/.devcontainer/gitlab/argocd.sh +2 -2
- package/.devcontainer/gitlab/gitlab.sh +4 -4
- package/.devcontainer/gitlab/installation.sh +5 -5
- package/.devcontainer/gitlab/secrets.sh +1 -1
- package/.devcontainer/help.sh +1 -0
- package/.devcontainer/{kind-enveloppe.sh → kind-wrapper.sh} +5 -5
- package/.devcontainer/{kube-compte.sh → kube-account.sh} +3 -3
- package/.devcontainer/{kube-joignable.sh → kube-reachable.sh} +1 -1
- package/.devcontainer/memory.sh +113 -0
- package/.devcontainer/metrics-server.sh +52 -51
- package/.devcontainer/{paquets.sh → packages.sh} +4 -4
- package/.devcontainer/password.sh +88 -87
- package/.devcontainer/ports-auto.sh +7 -7
- package/.devcontainer/ports.sh +4 -4
- package/.devcontainer/post-create.sh +2 -2
- package/.devcontainer/postgres/postgres.sh +3 -3
- package/.devcontainer/services-admin.sh +5 -5
- package/.devcontainer/skills/devzone/SKILL.md +1 -1
- package/.devcontainer/{demarrage.sh → startup.sh} +5 -5
- package/.devcontainer/state-json.sh +308 -0
- package/.devcontainer/state-lock.sh +53 -0
- package/.devcontainer/state.sh +219 -0
- package/.devcontainer/workspace-init.sh +1 -1
- package/Makefile +7 -7
- package/README.md +2 -2
- package/charts/devzone-workspace/templates/statefulset.yaml +3 -0
- package/manage/devzone +3 -3
- package/manage/scripts/check-go-layout.sh +40 -0
- package/manage/scripts/check-names.sh +60 -0
- package/manage/scripts/devzone-create.sh +2 -2
- package/manage/scripts/devzone-manifest.sh +2 -2
- package/manage/scripts/docker-workstation.sh +2 -2
- package/manage/scripts/docker.sh +2 -2
- package/manage/scripts/{lancer.sh → launch.sh} +3 -3
- package/manage/scripts/{migrer-retour.sh → migrate-revert.sh} +1 -1
- package/manage/scripts/{migrer.sh → migrate.sh} +1 -1
- package/manage/workspace.sh +4 -4
- package/package.json +1 -1
- package/.devcontainer/agent-erreurs.sh +0 -138
- package/.devcontainer/agent-etat-json.sh +0 -115
- package/.devcontainer/etat-json.sh +0 -308
- package/.devcontainer/etat-verrou.sh +0 -52
- package/.devcontainer/etat.sh +0 -220
- package/.devcontainer/memoire.sh +0 -113
- /package/.devcontainer/{ia/docker-garde.message → ai/docker-guard.message} +0 -0
- /package/.devcontainer/{ia → ai}/host-check.message +0 -0
- /package/.devcontainer/{ia → ai}/host-check.sh +0 -0
- /package/.devcontainer/{ia → ai}/host-models.sh +0 -0
- /package/.devcontainer/{catalogue → catalog}/mysql/app.conf +0 -0
- /package/.devcontainer/{catalogue/mysql/installer.sh → catalog/mysql/install.sh} +0 -0
- /package/.devcontainer/{catalogue → catalog}/mysql/volume.sh +0 -0
- /package/.devcontainer/{docker-sans-hote.sh → docker-without-host.sh} +0 -0
- /package/.devcontainer/{isolement.sh → isolation.sh} +0 -0
- /package/.devcontainer/{etat-gitops.sh → state-gitops.sh} +0 -0
- /package/manage/scripts/{desinstaller.sh → uninstall.sh} +0 -0
|
@@ -18,14 +18,14 @@ ETAT="${DEVZONE_ETAT:-$RACINE/.devzone.modules}"
|
|
|
18
18
|
# shellcheck disable=SC1091
|
|
19
19
|
. "$ICI/../password.sh"
|
|
20
20
|
# Isolation réseau : namespace_isoler, posée avec le namespace devzone-argocd
|
|
21
|
-
# shellcheck source=SCRIPTDIR/../
|
|
21
|
+
# shellcheck source=SCRIPTDIR/../isolation.sh
|
|
22
22
|
# shellcheck disable=SC1091
|
|
23
|
-
. "$ICI/../
|
|
24
|
-
# Shared memory check of the services cluster (#608):
|
|
25
|
-
#
|
|
26
|
-
# shellcheck source=SCRIPTDIR/../
|
|
23
|
+
. "$ICI/../isolation.sh"
|
|
24
|
+
# Shared memory check of the services cluster (#608): quantity_ki and
|
|
25
|
+
# memory_cluster_ki.
|
|
26
|
+
# shellcheck source=SCRIPTDIR/../memory.sh
|
|
27
27
|
# shellcheck disable=SC1091
|
|
28
|
-
. "$ICI/../
|
|
28
|
+
. "$ICI/../memory.sh"
|
|
29
29
|
|
|
30
30
|
NS=devzone-argocd
|
|
31
31
|
SECRETS="$RACINE/workspace/.argocd"
|
|
@@ -39,7 +39,7 @@ refuse() { echo "devzone : argocd : $*" >&2; exit 2; }
|
|
|
39
39
|
|
|
40
40
|
# Vue regroupée des identifiants : un échec n'empêche jamais l'opération
|
|
41
41
|
regenerer_identifiants() {
|
|
42
|
-
|
|
42
|
+
password_regenerate ||
|
|
43
43
|
echo "devzone : argocd : identifiants regroupés non mis à jour (devzone passwords)" >&2
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -47,7 +47,7 @@ regenerer_identifiants() {
|
|
|
47
47
|
# message indique où agrandir le cluster et la commande à relancer.
|
|
48
48
|
verifier_memoire() {
|
|
49
49
|
local memoire
|
|
50
|
-
if ! memoire="$(
|
|
50
|
+
if ! memoire="$(memory_cluster_ki)"; then
|
|
51
51
|
echo "devzone : argocd : cluster des services injoignable : devzone cluster" >&2
|
|
52
52
|
return 2
|
|
53
53
|
fi
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# mysql and the catalogue install their application as the Application
|
|
4
4
|
# devzone-<app> (services.sh) when the module argocd is active, instead of
|
|
5
5
|
# the manifest applied by hand. The namespace (compte_namespace of
|
|
6
|
-
# cluster.sh,
|
|
6
|
+
# cluster.sh, isolation.sh) and the secret <app>-admin (mirror
|
|
7
7
|
# workspace/.<app>/) stay created apart, out of Git; Argo CD holds the chart
|
|
8
8
|
# charts/devzone-<app> of the devzone repository at the revision.
|
|
9
9
|
# catalogue_argocd_active <app> on, installed, chart and revision
|
|
@@ -19,17 +19,17 @@ ICI="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
19
19
|
# (workspace/ secrets, .argocd.conf), the same folder unless DEVZONE_RACINE says so
|
|
20
20
|
RACINE="$(dirname "$(dirname "$ICI")")"
|
|
21
21
|
STATE_RACINE="${DEVZONE_RACINE:-$RACINE}"
|
|
22
|
-
# shellcheck disable=SC2034 # read by
|
|
22
|
+
# shellcheck disable=SC2034 # read by catalog-argocd.sh
|
|
23
23
|
ETAT="${DEVZONE_ETAT:-$STATE_RACINE/.devzone.modules}"
|
|
24
|
-
APP_CONF="$RACINE/.devcontainer/
|
|
24
|
+
APP_CONF="$RACINE/.devcontainer/catalog/mysql/app.conf"
|
|
25
25
|
HOOK_SERVICES="postgres mysql"
|
|
26
26
|
|
|
27
27
|
# shellcheck source=SCRIPTDIR/../cluster.sh
|
|
28
28
|
# shellcheck disable=SC1091
|
|
29
29
|
. "$ICI/../cluster.sh"
|
|
30
|
-
# shellcheck source=SCRIPTDIR/
|
|
30
|
+
# shellcheck source=SCRIPTDIR/catalog-argocd.sh
|
|
31
31
|
# shellcheck disable=SC1091
|
|
32
|
-
. "$ICI/
|
|
32
|
+
. "$ICI/catalog-argocd.sh"
|
|
33
33
|
|
|
34
34
|
# Loads the Argo CD pieces (conf, gitops, services with the context devzone)
|
|
35
35
|
# and the list of services reconciled here
|
|
@@ -45,7 +45,7 @@ hook_load() {
|
|
|
45
45
|
hook_script() {
|
|
46
46
|
case "$1" in
|
|
47
47
|
postgres) printf '%s' "$ICI/../postgres/postgres.sh" ;;
|
|
48
|
-
mysql) printf '%s' "$ICI/../
|
|
48
|
+
mysql) printf '%s' "$ICI/../catalog/mysql/mysql.sh" ;;
|
|
49
49
|
esac
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Opérations d'installation du catalogue (#414) : sourcé par
|
|
2
|
+
# Opérations d'installation du catalogue (#414) : sourcé par catalog.sh.
|
|
3
3
|
# Le module argocd actif : l'application installée est une Application Argo CD
|
|
4
4
|
# devzone-<app> (chart charts/devzone-<app> du dépôt devzone, #538) au lieu du
|
|
5
5
|
# manifeste de la voie helm direct.
|
|
6
6
|
|
|
7
7
|
ATTENTE="${DEVZONE_CATALOGUE_ATTENTE:-300}"
|
|
8
8
|
|
|
9
|
-
# shellcheck source=SCRIPTDIR/argocd/
|
|
9
|
+
# shellcheck source=SCRIPTDIR/argocd/catalog-argocd.sh
|
|
10
10
|
# shellcheck disable=SC1091
|
|
11
|
-
. "$ICI/argocd/
|
|
11
|
+
. "$ICI/argocd/catalog-argocd.sh"
|
|
12
12
|
# shellcheck source=SCRIPTDIR/chart-direct.sh
|
|
13
13
|
# shellcheck disable=SC1091
|
|
14
14
|
. "$ICI/chart-direct.sh"
|
|
@@ -60,7 +60,7 @@ app_secret() {
|
|
|
60
60
|
|
|
61
61
|
# Vue regroupée des identifiants : un échec n'empêche jamais l'opération
|
|
62
62
|
regenerer_identifiants() {
|
|
63
|
-
|
|
63
|
+
password_regenerate ||
|
|
64
64
|
echo "devzone : catalogue : identifiants regroupés non mis à jour (devzone passwords)" >&2
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# Détection à chaud du catalogue (#414) : quand .devzone.modules change,
|
|
3
|
-
#
|
|
4
|
-
#
|
|
3
|
+
# catalog.sh appliquer est lancé. Une seule instance (verrou, comme #394).
|
|
4
|
+
# catalog-watcher.sh demarrer | arreter | tour
|
|
5
5
|
set -euo pipefail
|
|
6
6
|
|
|
7
7
|
ICI="$(cd "$(dirname "$0")" && pwd)"
|
|
8
8
|
RACINE="${DEVZONE_RACINE:-$(cd "$ICI/../.." && pwd)}"
|
|
9
9
|
ETAT="${DEVZONE_ETAT:-$RACINE/.devzone.modules}"
|
|
10
|
-
# shellcheck source=SCRIPTDIR/
|
|
10
|
+
# shellcheck source=SCRIPTDIR/state.sh
|
|
11
11
|
# shellcheck disable=SC1091
|
|
12
|
-
. "$(dirname "$ICI")/
|
|
12
|
+
. "$(dirname "$ICI")/state.sh"
|
|
13
13
|
BASE="${DEVZONE_CATALOGUE_VEILLEUR_DIR:-$RACINE/.devzone.catalogue-veilleur}"
|
|
14
14
|
VERROU="$BASE/verrou"
|
|
15
15
|
DERNIER="$BASE/dernier"
|
|
@@ -54,8 +54,8 @@ tour() {
|
|
|
54
54
|
[ -f "$ETAT" ] || return 0
|
|
55
55
|
# État restauré ou reconstruit : le veilleur ne suit pas un état douteux,
|
|
56
56
|
# et ne désinstalle jamais tant que devzone apply ne l'a pas confirmé
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
state_recovery_wait && return 0
|
|
58
|
+
state_recovery_pending && return 0
|
|
59
59
|
mkdir -p "$BASE"
|
|
60
60
|
maintenant="$(stat -c %Y "$ETAT" 2>/dev/null || stat -f %m "$ETAT" 2>/dev/null || true)"
|
|
61
61
|
[ -n "$maintenant" ] || return 0
|
|
@@ -63,7 +63,7 @@ tour() {
|
|
|
63
63
|
if [ "$maintenant" != "$ancien" ]; then
|
|
64
64
|
echo "$maintenant" >"$DERNIER"
|
|
65
65
|
echo "devzone : catalogue-veilleur : .devzone.modules modifié, application" >&2
|
|
66
|
-
bash "$ICI/../
|
|
66
|
+
bash "$ICI/../catalog.sh" apply
|
|
67
67
|
fi
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -10,19 +10,19 @@ ETAT="${DEVZONE_ETAT:-$RACINE/.devzone.modules}"
|
|
|
10
10
|
# shellcheck source=SCRIPTDIR/../../password.sh
|
|
11
11
|
# shellcheck disable=SC1091
|
|
12
12
|
. "$ICI/../../password.sh"
|
|
13
|
-
# shellcheck source=SCRIPTDIR/../../
|
|
13
|
+
# shellcheck source=SCRIPTDIR/../../isolation.sh
|
|
14
14
|
# shellcheck disable=SC1091
|
|
15
|
-
. "$ICI/../../
|
|
15
|
+
. "$ICI/../../isolation.sh"
|
|
16
16
|
# shellcheck source=SCRIPTDIR/volume.sh
|
|
17
17
|
# shellcheck disable=SC1091
|
|
18
18
|
. "$ICI/volume.sh"
|
|
19
|
-
# shellcheck source=SCRIPTDIR/
|
|
19
|
+
# shellcheck source=SCRIPTDIR/install.sh
|
|
20
20
|
# shellcheck disable=SC1091
|
|
21
|
-
. "$ICI/
|
|
21
|
+
. "$ICI/install.sh"
|
|
22
22
|
# Le module argocd actif : MySQL installé par une Application (#538)
|
|
23
|
-
# shellcheck source=SCRIPTDIR/../../argocd/
|
|
23
|
+
# shellcheck source=SCRIPTDIR/../../argocd/catalog-argocd.sh
|
|
24
24
|
# shellcheck disable=SC1091
|
|
25
|
-
. "$ICI/../../argocd/
|
|
25
|
+
. "$ICI/../../argocd/catalog-argocd.sh"
|
|
26
26
|
NS=devzone-mysql
|
|
27
27
|
SECRETS="$RACINE/workspace/.mysql"
|
|
28
28
|
MYSQL_PORT="${MYSQL_PORT:-3306}"
|
|
@@ -36,7 +36,7 @@ refuse() { echo "devzone : catalogue mysql : $*" >&2; exit 2; }
|
|
|
36
36
|
services_secret_mysql() { mysql_secret; }
|
|
37
37
|
# Régénère la vue .password (échec non bloquant)
|
|
38
38
|
regenerer_identifiants() {
|
|
39
|
-
|
|
39
|
+
password_regenerate ||
|
|
40
40
|
echo "devzone : catalogue mysql : identifiants regroupés non mis à jour (devzone passwords)" >&2
|
|
41
41
|
}
|
|
42
42
|
# Raccourci kubectl dans le namespace devzone-mysql
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# Catalogue d'applications (#414) : une application préconfigurée par dossier
|
|
3
|
-
# .devcontainer/
|
|
3
|
+
# .devcontainer/catalog/<app>/ (app.conf ; le chart charts/devzone-<app>, #559), installée dans le
|
|
4
4
|
# cluster des services de devzone sous son namespace de app.conf ; l'état
|
|
5
5
|
# voulu est la ligne <app>=on|off de .devzone.modules.
|
|
6
|
-
#
|
|
6
|
+
# catalog.sh sync | apply | list | resume | json | remove <app>
|
|
7
7
|
set -euo pipefail
|
|
8
8
|
|
|
9
9
|
ICI="$(cd "$(dirname "$0")" && pwd)"
|
|
@@ -12,23 +12,23 @@ ETAT="${DEVZONE_ETAT:-$RACINE/.devzone.modules}"
|
|
|
12
12
|
# shellcheck source=SCRIPTDIR/cluster.sh
|
|
13
13
|
# shellcheck disable=SC1091
|
|
14
14
|
. "$ICI/cluster.sh"
|
|
15
|
-
# shellcheck source=SCRIPTDIR/
|
|
15
|
+
# shellcheck source=SCRIPTDIR/state.sh
|
|
16
16
|
# shellcheck disable=SC1091
|
|
17
|
-
. "$ICI/
|
|
17
|
+
. "$ICI/state.sh"
|
|
18
18
|
# shellcheck source=SCRIPTDIR/password.sh
|
|
19
19
|
# shellcheck disable=SC1091
|
|
20
20
|
. "$ICI/password.sh"
|
|
21
|
-
# shellcheck source=SCRIPTDIR/
|
|
21
|
+
# shellcheck source=SCRIPTDIR/isolation.sh
|
|
22
22
|
# shellcheck disable=SC1091
|
|
23
|
-
. "$ICI/
|
|
24
|
-
# shellcheck source=SCRIPTDIR/
|
|
23
|
+
. "$ICI/isolation.sh"
|
|
24
|
+
# shellcheck source=SCRIPTDIR/catalog/app.sh
|
|
25
25
|
# shellcheck disable=SC1091
|
|
26
|
-
. "$ICI/
|
|
26
|
+
. "$ICI/catalog/app.sh"
|
|
27
27
|
|
|
28
28
|
refuse() { echo "devzone : catalogue : $*" >&2; exit 2; }
|
|
29
29
|
|
|
30
30
|
# Dossier du catalogue (surchargeable par les tests)
|
|
31
|
-
dossier_catalogue() { echo "${DEVZONE_CATALOGUE:-$ICI/
|
|
31
|
+
dossier_catalogue() { echo "${DEVZONE_CATALOGUE:-$ICI/catalog}"; }
|
|
32
32
|
|
|
33
33
|
# Applications du catalogue : dossiers pourvus d'un app.conf, triés
|
|
34
34
|
catalogue_apps() {
|
|
@@ -99,9 +99,9 @@ catalogue_synchroniser() (
|
|
|
99
99
|
local app entete manque="" tmp
|
|
100
100
|
[ -f "$ETAT" ] || return 0
|
|
101
101
|
entete="# Applications du catalogue : passer à on pour installer (devzone catalog)"
|
|
102
|
-
|
|
102
|
+
state_lock_take || return 1
|
|
103
103
|
# Le verrou est rendu à la sortie, y compris sur une erreur sous set -e
|
|
104
|
-
trap '
|
|
104
|
+
trap 'state_lock_release' EXIT
|
|
105
105
|
while IFS= read -r app; do
|
|
106
106
|
[ -n "$app" ] || continue
|
|
107
107
|
grep -qE "^${app}=" "$ETAT" 2>/dev/null && continue
|
|
@@ -114,7 +114,7 @@ catalogue_synchroniser() (
|
|
|
114
114
|
grep -qF "$entete" "$ETAT" || echo "$entete"
|
|
115
115
|
echo "$manque"
|
|
116
116
|
} >"$tmp"
|
|
117
|
-
|
|
117
|
+
state_replace "$tmp"
|
|
118
118
|
rm -f "$tmp"
|
|
119
119
|
)
|
|
120
120
|
|
|
@@ -155,7 +155,7 @@ app_relais_arrete() {
|
|
|
155
155
|
# In the pod, no relay: the access goes through the workspace ports
|
|
156
156
|
return 1
|
|
157
157
|
fi
|
|
158
|
-
script="$ICI/
|
|
158
|
+
script="$ICI/catalog/$app/$app.sh"
|
|
159
159
|
if [ -f "$script" ]; then
|
|
160
160
|
etat="$(bash "$script" status 2>/dev/null || true)"
|
|
161
161
|
case "$etat" in *"relais arrêté"*) return 0 ;; esac
|
package/.devcontainer/cluster.sh
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
# kube_joignable_depuis_conteneur FICHIER réécrit 127.0.0.1/localhost
|
|
19
19
|
# relais_lancer NOM CTX NS CIBLE PORTS… port-forward gardé en vie
|
|
20
20
|
# relais_actif NOM / relais_arreter NOM
|
|
21
|
-
# compte_* (kube-
|
|
21
|
+
# compte_* (kube-account.sh #430) compte limité et contexte administrateur
|
|
22
22
|
|
|
23
23
|
# Clusters kind et de l'hôte, comme remoteEnv de devcontainer.json : un
|
|
24
24
|
# docker exec ou un script lancé hors du terminal du conteneur ne l'a pas,
|
|
@@ -31,9 +31,9 @@ export KUBECONFIG
|
|
|
31
31
|
|
|
32
32
|
# Écriture sûre de l'état (#417) : verrou, temporaire dans le dossier de
|
|
33
33
|
# l'état, copie de secours .prec — partagée par devzone, ports et ports-auto
|
|
34
|
-
# shellcheck source=SCRIPTDIR/
|
|
34
|
+
# shellcheck source=SCRIPTDIR/state.sh
|
|
35
35
|
# shellcheck disable=SC1091
|
|
36
|
-
. "$(dirname "${BASH_SOURCE[0]}")/
|
|
36
|
+
. "$(dirname "${BASH_SOURCE[0]}")/state.sh"
|
|
37
37
|
|
|
38
38
|
# Nom d'instance : vide ou « devzone » = instance par défaut (pas de suffixe)
|
|
39
39
|
: "${DEVZONE_INSTANCE:=}"
|
|
@@ -50,21 +50,21 @@ CLUSTER_ETIQUETTE=app.kubernetes.io/managed-by=devzone
|
|
|
50
50
|
|
|
51
51
|
# Réécriture 127.0.0.1 → host.docker.internal (#291) : partagée avec
|
|
52
52
|
# l'enveloppe kind, qui l'applique aussi aux clusters créés à la main
|
|
53
|
-
# shellcheck source=SCRIPTDIR/kube-
|
|
54
|
-
. "$(dirname "${BASH_SOURCE[0]}")/kube-
|
|
53
|
+
# shellcheck source=SCRIPTDIR/kube-reachable.sh
|
|
54
|
+
. "$(dirname "${BASH_SOURCE[0]}")/kube-reachable.sh"
|
|
55
55
|
|
|
56
56
|
# Compte Kubernetes limité (#430) : compte_poser, compte_autoriser,
|
|
57
57
|
# compte_retirer, compte_jeton, compte_admin (contexte administrateur) ;
|
|
58
58
|
# les installeurs l'utilisent, cluster_liberer aussi
|
|
59
|
-
# shellcheck source=SCRIPTDIR/kube-
|
|
60
|
-
. "$(dirname "${BASH_SOURCE[0]}")/kube-
|
|
59
|
+
# shellcheck source=SCRIPTDIR/kube-account.sh
|
|
60
|
+
. "$(dirname "${BASH_SOURCE[0]}")/kube-account.sh"
|
|
61
61
|
|
|
62
62
|
cluster_lu() {
|
|
63
63
|
grep -E '^cluster=' "$ETAT" 2>/dev/null | tail -1 | cut -d= -f2- || true
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
cluster_ecrire() {
|
|
67
|
-
|
|
67
|
+
state_write cluster "$1"
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
cluster_est_dedie() {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
|
|
62
62
|
"postCreateCommand": "bash .devcontainer/post-create.sh",
|
|
63
63
|
// Identité git, clusters, puis récapitulatif de ce qui reste à faire
|
|
64
|
-
"postStartCommand": "bash .devcontainer/
|
|
64
|
+
"postStartCommand": "bash .devcontainer/startup.sh",
|
|
65
65
|
// Clusters kind du conteneur (config) + cluster de l'hôte (hote.config,
|
|
66
66
|
// refait à chaque démarrage par kube-config.sh)
|
|
67
67
|
"remoteEnv": {
|
package/.devcontainer/devzone
CHANGED
|
@@ -47,17 +47,17 @@ if [ -f "$ICI/argocd/conf.sh" ]; then
|
|
|
47
47
|
. "$ICI/argocd/conf.sh"
|
|
48
48
|
fi
|
|
49
49
|
# GitOps repository line in the Kubernetes workspace pod (#639)
|
|
50
|
-
# shellcheck source=SCRIPTDIR/
|
|
50
|
+
# shellcheck source=SCRIPTDIR/state-gitops.sh
|
|
51
51
|
# shellcheck disable=SC1091
|
|
52
|
-
. "$ICI/
|
|
52
|
+
. "$ICI/state-gitops.sh"
|
|
53
53
|
# Detection of the host (Ollama) models and the devzone-host opencode provider (#665).
|
|
54
|
-
# shellcheck source=SCRIPTDIR/
|
|
54
|
+
# shellcheck source=SCRIPTDIR/ai/host-models.sh
|
|
55
55
|
# shellcheck disable=SC1091
|
|
56
|
-
. "$ICI/
|
|
56
|
+
. "$ICI/ai/host-models.sh"
|
|
57
57
|
# Update check and report for the host (Ollama) models (#668).
|
|
58
|
-
# shellcheck source=SCRIPTDIR/
|
|
58
|
+
# shellcheck source=SCRIPTDIR/ai/host-check.sh
|
|
59
59
|
# shellcheck disable=SC1091
|
|
60
|
-
. "$ICI/
|
|
60
|
+
. "$ICI/ai/host-check.sh"
|
|
61
61
|
|
|
62
62
|
# Assistants IA, versions figées : mettre à jour ici, puis devzone apply
|
|
63
63
|
# (ou Rebuild Container). Une ligne par paquet, séparées par une ligne qui ne
|
|
@@ -99,11 +99,11 @@ connu() {
|
|
|
99
99
|
return 1
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
# Premier démarrage (aucun état) : l'état est créé par
|
|
102
|
+
# Premier démarrage (aucun état) : l'état est créé par state.sh (#417) :
|
|
103
103
|
# ancien état global repris, copie de secours restaurée, état reconstruit
|
|
104
104
|
# depuis le cluster des services, sinon première installation
|
|
105
105
|
initialiser() {
|
|
106
|
-
|
|
106
|
+
state_init "${MODULES[@]}"
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
valeur() {
|
|
@@ -122,24 +122,24 @@ valeur() {
|
|
|
122
122
|
# Verrou tenu de l'initialisation à l'écriture (#417) : l'état n'est jamais
|
|
123
123
|
# recréé à vide entre les deux
|
|
124
124
|
ecrire() {
|
|
125
|
-
|
|
126
|
-
if ! initialiser || !
|
|
127
|
-
|
|
125
|
+
state_lock_take || return 1
|
|
126
|
+
if ! initialiser || ! state_write "$1" "$2"; then
|
|
127
|
+
state_lock_release
|
|
128
128
|
return 1
|
|
129
129
|
fi
|
|
130
|
-
|
|
130
|
+
state_lock_release
|
|
131
131
|
return 0
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
# Retire une clé du fichier d'état : la configuration d'un service n'existe
|
|
135
135
|
# que pendant qu'il est choisi (#242)
|
|
136
136
|
retirer_cle() {
|
|
137
|
-
|
|
138
|
-
if ! initialiser || !
|
|
139
|
-
|
|
137
|
+
state_lock_take || return 1
|
|
138
|
+
if ! initialiser || ! state_remove "$1"; then
|
|
139
|
+
state_lock_release
|
|
140
140
|
return 1
|
|
141
141
|
fi
|
|
142
|
-
|
|
142
|
+
state_lock_release
|
|
143
143
|
return 0
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -406,8 +406,8 @@ installer_ia() {
|
|
|
406
406
|
# PreToolUse hook in the global settings and the two opencode plugins in the
|
|
407
407
|
# global plugins folder. Idempotent, other user settings and hooks preserved.
|
|
408
408
|
poser_garde_docker() {
|
|
409
|
-
local script="$ICI/
|
|
410
|
-
local src="$ICI/
|
|
409
|
+
local script="$ICI/ai/docker-guard.sh" config="$HOME/.claude/settings.json"
|
|
410
|
+
local src="$ICI/ai/plugins" dst="$HOME/.config/opencode/plugins"
|
|
411
411
|
local tmp f
|
|
412
412
|
if ! command -v jq >/dev/null 2>&1; then
|
|
413
413
|
echo "devzone : jq absent : garde-fou docker non posé pour Claude Code" >&2
|
|
@@ -420,7 +420,7 @@ poser_garde_docker() {
|
|
|
420
420
|
if jq --arg cmd "bash \"$script\" --format claude" '
|
|
421
421
|
.hooks = (.hooks // {}) |
|
|
422
422
|
.hooks.PreToolUse = (.hooks.PreToolUse // []) |
|
|
423
|
-
if ([.hooks.PreToolUse[]? | .hooks[]? | (.command // "")] | any(contains("docker-
|
|
423
|
+
if ([.hooks.PreToolUse[]? | .hooks[]? | (.command // "")] | any(contains("docker-guard.sh")))
|
|
424
424
|
then .
|
|
425
425
|
else .hooks.PreToolUse += [{"matcher": "Bash", "hooks": [{"type": "command", "command": $cmd}]}]
|
|
426
426
|
end
|
|
@@ -432,14 +432,14 @@ poser_garde_docker() {
|
|
|
432
432
|
fi
|
|
433
433
|
fi
|
|
434
434
|
mkdir -p "$dst"
|
|
435
|
-
for f in devzone-
|
|
435
|
+
for f in devzone-guard.js devzone-guard-v2.js; do
|
|
436
436
|
[ -f "$src/$f" ] || continue
|
|
437
437
|
sed "s|__DEVZONE_DOCKER_GARDE__|$script|g" "$src/$f" >"$dst/$f"
|
|
438
438
|
done
|
|
439
439
|
echo "devzone : garde-fou docker actif pour Claude Code et opencode"
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
-
# Removes only the Docker guard entries (commands containing docker-
|
|
442
|
+
# Removes only the Docker guard entries (commands containing docker-guard.sh)
|
|
443
443
|
# and the two plugins; the rest of settings.json and of the plugins is kept.
|
|
444
444
|
retirer_garde_docker() {
|
|
445
445
|
local config="$HOME/.claude/settings.json" tmp
|
|
@@ -450,10 +450,10 @@ retirer_garde_docker() {
|
|
|
450
450
|
.hooks.PreToolUse = [
|
|
451
451
|
.hooks.PreToolUse[] |
|
|
452
452
|
if (.hooks // null) != null then
|
|
453
|
-
.hooks = [ .hooks[] | select(((.command // "") | contains("docker-
|
|
453
|
+
.hooks = [ .hooks[] | select(((.command // "") | contains("docker-guard.sh")) | not) ] |
|
|
454
454
|
select((.hooks | length) > 0)
|
|
455
455
|
else
|
|
456
|
-
select(((.command // "") | contains("docker-
|
|
456
|
+
select(((.command // "") | contains("docker-guard.sh")) | not)
|
|
457
457
|
end
|
|
458
458
|
] |
|
|
459
459
|
if (.hooks.PreToolUse | length) == 0 then del(.hooks.PreToolUse) else . end |
|
|
@@ -469,8 +469,8 @@ retirer_garde_docker() {
|
|
|
469
469
|
rm -f "$tmp"
|
|
470
470
|
fi
|
|
471
471
|
fi
|
|
472
|
-
rm -f "$HOME/.config/opencode/plugins/devzone-
|
|
473
|
-
"$HOME/.config/opencode/plugins/devzone-
|
|
472
|
+
rm -f "$HOME/.config/opencode/plugins/devzone-guard.js" \
|
|
473
|
+
"$HOME/.config/opencode/plugins/devzone-guard-v2.js"
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
appliquer_ia() {
|
|
@@ -712,14 +712,14 @@ appliquer_mysql() {
|
|
|
712
712
|
echo mysql >"$(fichier_echec mysql)"
|
|
713
713
|
return 2
|
|
714
714
|
fi
|
|
715
|
-
etat_courant="$(bash "$ICI/
|
|
715
|
+
etat_courant="$(bash "$ICI/catalog/mysql/mysql.sh" status)"
|
|
716
716
|
# « relais arrêté » d'abord : cette ligne commence aussi par « prêt sur »
|
|
717
717
|
if [[ "$etat_courant" == *"relais arrêté"* ]]; then
|
|
718
|
-
bash "$ICI/
|
|
718
|
+
bash "$ICI/catalog/mysql/mysql.sh" relay-start
|
|
719
719
|
echo "devzone : mysql : relais relancé"
|
|
720
720
|
elif [[ "$etat_courant" == "prêt sur"* ]]; then
|
|
721
721
|
echo "devzone : mysql déjà actif, rien à faire."
|
|
722
|
-
elif ! bash "$ICI/
|
|
722
|
+
elif ! bash "$ICI/catalog/mysql/mysql.sh" install; then
|
|
723
723
|
echo mysql >"$(fichier_echec mysql)"
|
|
724
724
|
return 1
|
|
725
725
|
fi
|
|
@@ -727,9 +727,9 @@ appliquer_mysql() {
|
|
|
727
727
|
else
|
|
728
728
|
# Retrait sans suppression des données : volume gardé (#441) ; les
|
|
729
729
|
# bases ne partent qu'avec un oui (confirmer_suppression)
|
|
730
|
-
bash "$ICI/
|
|
730
|
+
bash "$ICI/catalog.sh" remove mysql
|
|
731
731
|
if [ -n "${SUPPRIMER_DONNEES:-}" ]; then
|
|
732
|
-
bash "$ICI/
|
|
732
|
+
bash "$ICI/catalog/mysql/mysql.sh" delete-data --yes
|
|
733
733
|
fi
|
|
734
734
|
rm -f "$(fichier_echec mysql)"
|
|
735
735
|
fi
|
|
@@ -1153,7 +1153,7 @@ ligne_version_disponible() {
|
|
|
1153
1153
|
fi
|
|
1154
1154
|
}
|
|
1155
1155
|
|
|
1156
|
-
# Réparation (#341) : reprend la suite de
|
|
1156
|
+
# Réparation (#341) : reprend la suite de startup.sh sans l'identité git ni
|
|
1157
1157
|
# les clusters. Chaque élément est réparé pour de vrai ; ✔ ou ✖ avec la raison.
|
|
1158
1158
|
reparer_element() {
|
|
1159
1159
|
local nom="$1" sortie code raison
|
|
@@ -1173,11 +1173,11 @@ reparer_element() {
|
|
|
1173
1173
|
# et identifiants ; un échec n'empêche pas les suivants.
|
|
1174
1174
|
reparer() {
|
|
1175
1175
|
reparer_echec=0
|
|
1176
|
-
reparer_element "relais Docker" env DEVZONE_RELAIS_REEL=oui bash "$ICI/docker-
|
|
1176
|
+
reparer_element "relais Docker" env DEVZONE_RELAIS_REEL=oui bash "$ICI/docker-relay.sh"
|
|
1177
1177
|
# Jeton du compte Kubernetes limité (#430) : 24 h, renouvelé ici ; sans
|
|
1178
1178
|
# module kubernetes et sans cluster des services, rien à faire
|
|
1179
1179
|
if [ "$(valeur kubernetes)" = on ] || [ -n "$(cluster_lu)" ]; then
|
|
1180
|
-
reparer_element "compte kubernetes" bash "$ICI/kube-
|
|
1180
|
+
reparer_element "compte kubernetes" bash "$ICI/kube-account.sh" jeton
|
|
1181
1181
|
fi
|
|
1182
1182
|
if [ "$(valeur gitlab)" = on ]; then
|
|
1183
1183
|
reparer_element "nom gitlab" bash "$ICI/gitlab/gitlab.sh" hote-poser
|
|
@@ -1190,14 +1190,14 @@ reparer() {
|
|
|
1190
1190
|
reparer_element "relais argocd" bash "$ICI/argocd/argocd.sh" relay-start
|
|
1191
1191
|
fi
|
|
1192
1192
|
if [ "$(valeur mysql)" = on ]; then
|
|
1193
|
-
reparer_element "relais mysql" bash "$ICI/
|
|
1193
|
+
reparer_element "relais mysql" bash "$ICI/catalog/mysql/mysql.sh" relay-start
|
|
1194
1194
|
fi
|
|
1195
1195
|
reparer_element "relais de ports" bash "$ICI/ports.sh" restart
|
|
1196
1196
|
# Kubernetes workspace (#517): no automatic port watcher
|
|
1197
1197
|
if ! dans_pod; then
|
|
1198
1198
|
reparer_element "veilleur ports auto" env DEVZONE_PORTS_AUTO_REEL=oui bash "$ICI/ports-auto.sh" demarrer
|
|
1199
1199
|
fi
|
|
1200
|
-
reparer_element "veilleur catalogue" env DEVZONE_CATALOGUE_REEL=oui bash "$ICI/
|
|
1200
|
+
reparer_element "veilleur catalogue" env DEVZONE_CATALOGUE_REEL=oui bash "$ICI/catalog/catalog-watcher.sh" demarrer
|
|
1201
1201
|
reparer_element "identifiants" bash "$ICI/password.sh" regenerer
|
|
1202
1202
|
return "$reparer_echec"
|
|
1203
1203
|
}
|
|
@@ -1352,7 +1352,7 @@ etat() {
|
|
|
1352
1352
|
elif [ "$(valeur "$m")" = on ] && [ "$m" = argocd ]; then
|
|
1353
1353
|
printf ' ✔ module %-10s %s\n' "$m" "$(bash "$ICI/argocd/argocd.sh" status)"
|
|
1354
1354
|
elif [ "$(valeur "$m")" = on ] && [ "$m" = mysql ]; then
|
|
1355
|
-
printf ' ✔ module %-10s %s\n' "$m" "$(bash "$ICI/
|
|
1355
|
+
printf ' ✔ module %-10s %s\n' "$m" "$(bash "$ICI/catalog/mysql/mysql.sh" status)"
|
|
1356
1356
|
elif [ "$(valeur "$m")" = on ]; then
|
|
1357
1357
|
printf ' ✔ module %-10s active: %s\n' "$m" "$(description "$m")"
|
|
1358
1358
|
else
|
|
@@ -1369,7 +1369,7 @@ etat() {
|
|
|
1369
1369
|
printf ' ○ argocd no GitOps repository: devzone argocd init\n'
|
|
1370
1370
|
fi
|
|
1371
1371
|
# Socket Docker de l'hôte (#432) : l'avertissement montre l'état réel,
|
|
1372
|
-
# le socket monté (même variable que docker-
|
|
1372
|
+
# le socket monté (même variable que docker-relay.sh), pas l'option :
|
|
1373
1373
|
# le montage ne change qu'au make rebuild (faux rassurant en attendant)
|
|
1374
1374
|
# In the Kubernetes workspace (DEVZONE_WORKSPACE=kubernetes), the pod has
|
|
1375
1375
|
# no Docker host socket: no alert, the service account is the cluster access
|
|
@@ -1386,8 +1386,8 @@ etat() {
|
|
|
1386
1386
|
fi
|
|
1387
1387
|
fi
|
|
1388
1388
|
# Applications du catalogue (#414)
|
|
1389
|
-
if [ -d "$ICI/
|
|
1390
|
-
bash "$ICI/
|
|
1389
|
+
if [ -d "$ICI/catalog" ]; then
|
|
1390
|
+
bash "$ICI/catalog.sh" resume
|
|
1391
1391
|
fi
|
|
1392
1392
|
# Secret Rails GitLab (#347) : avertissement si les secrets ont été perdus
|
|
1393
1393
|
if [ "$(valeur gitlab)" = on ] && [ ! -f "$RACINE/workspace/.gitlab/rails-secret.yaml" ]; then
|
|
@@ -1426,13 +1426,13 @@ etat() {
|
|
|
1426
1426
|
if [ -f "$RACINE/.password" ]; then
|
|
1427
1427
|
printf ' ○ credentials: %s\n' "$RACINE/.password"
|
|
1428
1428
|
fi
|
|
1429
|
-
# Marque posée par docker-
|
|
1429
|
+
# Marque posée par docker-relay.sh au démarrage (#293) : docker exec
|
|
1430
1430
|
# longs coupés, kind et modules en échec
|
|
1431
1431
|
relais_marque="${DEVZONE_RELAIS_MARQUE:-/tmp/devzone-relais-docker.echec}"
|
|
1432
1432
|
if [ -f "$relais_marque" ]; then
|
|
1433
1433
|
printf ' ⚠ Docker relay %s: devzone repair\n' "$(head -1 "$relais_marque")"
|
|
1434
1434
|
fi
|
|
1435
|
-
# Marque posee par
|
|
1435
|
+
# Marque posee par packages.sh a l echec de reapplication (351) : noms des paquets non installes
|
|
1436
1436
|
paquets_marque="${DEVZONE_PAQUETS_MARQUE:-/tmp/devzone-paquets.echec}"
|
|
1437
1437
|
if [ -f "$paquets_marque" ]; then
|
|
1438
1438
|
paquets_noms=""
|
|
@@ -1454,7 +1454,7 @@ llm_retire_msg() {
|
|
|
1454
1454
|
migrer_llm() {
|
|
1455
1455
|
[ -f "$ETAT" ] || return 0
|
|
1456
1456
|
grep -qE '^llm=' "$ETAT" 2>/dev/null || return 0
|
|
1457
|
-
|
|
1457
|
+
state_remove llm
|
|
1458
1458
|
llm_retire_msg
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
@@ -1468,7 +1468,7 @@ changer() {
|
|
|
1468
1468
|
if [ "$m" = llm ]; then
|
|
1469
1469
|
initialiser 2>/dev/null || true
|
|
1470
1470
|
if [ -f "$ETAT" ] && grep -qE '^llm=' "$ETAT" 2>/dev/null; then
|
|
1471
|
-
|
|
1471
|
+
state_remove llm
|
|
1472
1472
|
fi
|
|
1473
1473
|
llm_retire_msg
|
|
1474
1474
|
return 1
|
|
@@ -1489,9 +1489,9 @@ changer() {
|
|
|
1489
1489
|
fi
|
|
1490
1490
|
if ! connu "$m"; then
|
|
1491
1491
|
# Une application du catalogue : on écrit la ligne, on applique
|
|
1492
|
-
if [ -f "$ICI/
|
|
1492
|
+
if [ -f "$ICI/catalog/$m/app.conf" ]; then
|
|
1493
1493
|
ecrire "$m" "$1"
|
|
1494
|
-
bash "$ICI/
|
|
1494
|
+
bash "$ICI/catalog.sh" apply
|
|
1495
1495
|
return
|
|
1496
1496
|
fi
|
|
1497
1497
|
echo "devzone : module inconnu : $m ; modules : ${MODULES[*]}" >&2
|
|
@@ -1517,10 +1517,10 @@ changer() {
|
|
|
1517
1517
|
"appliquer_$m" "$1" "${@:3}"
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
|
-
# shellcheck source=
|
|
1520
|
+
# shellcheck source=state-json.sh
|
|
1521
1521
|
# shellcheck disable=SC1091
|
|
1522
|
-
if [ -f "$ICI/
|
|
1523
|
-
. "$ICI/
|
|
1522
|
+
if [ -f "$ICI/state-json.sh" ]; then
|
|
1523
|
+
. "$ICI/state-json.sh"
|
|
1524
1524
|
fi
|
|
1525
1525
|
|
|
1526
1526
|
# Renamed names (#695): an old French name is refused with its new name, before
|
|
@@ -1530,14 +1530,14 @@ if command -v reject_renamed >/dev/null 2>&1; then
|
|
|
1530
1530
|
fi
|
|
1531
1531
|
|
|
1532
1532
|
case "${1:-}" in
|
|
1533
|
-
"" | status | modules) if [ "${2:-}" = "--json" ]; then
|
|
1533
|
+
"" | status | modules) if [ "${2:-}" = "--json" ]; then state_json; else etat; fi ;;
|
|
1534
1534
|
enable) changer on "${2:-}" "${@:3}" ;;
|
|
1535
1535
|
disable) changer off "${2:-}" "${@:3}" ;;
|
|
1536
1536
|
apply)
|
|
1537
1537
|
migrer_llm
|
|
1538
1538
|
# L'utilisateur confirme l'état courant (#417, étape 4) : les
|
|
1539
1539
|
# veilleurs peuvent de nouveau désinstaller
|
|
1540
|
-
|
|
1540
|
+
state_recovery_confirm
|
|
1541
1541
|
appliquer_repowarden
|
|
1542
1542
|
[ "$(valeur ia)" = off ] || appliquer_ia on
|
|
1543
1543
|
# gitlab, postgres, argocd: installed from the workstation in the
|
|
@@ -1587,24 +1587,25 @@ case "${1:-}" in
|
|
|
1587
1587
|
bash "$ICI/workspace-build.sh" "${@:2}"
|
|
1588
1588
|
;;
|
|
1589
1589
|
repair) reparer ;;
|
|
1590
|
-
start) bash "$ICI/
|
|
1590
|
+
start) bash "$ICI/startup.sh" ;;
|
|
1591
1591
|
metrics) bash "$ICI/metrics-server.sh" "${@:2}" ;;
|
|
1592
1592
|
use) utiliser "${@:2}" ;;
|
|
1593
1593
|
clusters) DEVZONE_ETAT="$ETAT" bash "$ICI/clusters.sh" "${@:2}" ;;
|
|
1594
1594
|
cluster) changer_cluster "${@:2}" ;;
|
|
1595
1595
|
postgres) DEVZONE_ETAT="$ETAT" bash "$ICI/postgres/postgres.sh" "${@:2}" ;;
|
|
1596
|
-
mysql) DEVZONE_ETAT="$ETAT" bash "$ICI/
|
|
1596
|
+
mysql) DEVZONE_ETAT="$ETAT" bash "$ICI/catalog/mysql/mysql.sh" "${@:2}" ;;
|
|
1597
1597
|
gitlab) DEVZONE_ETAT="$ETAT" bash "$ICI/gitlab/gitlab.sh" "${@:2}" ;;
|
|
1598
|
-
catalog) DEVZONE_ETAT="$ETAT" bash "$ICI/
|
|
1598
|
+
catalog) DEVZONE_ETAT="$ETAT" bash "$ICI/catalog.sh" list ;;
|
|
1599
1599
|
argocd) DEVZONE_ETAT="$ETAT" bash "$ICI/argocd/argocd.sh" "${@:2}" ;;
|
|
1600
1600
|
port) DEVZONE_ETAT="$ETAT" bash "$ICI/ports.sh" "${@:2}" ;;
|
|
1601
|
-
packages) bash "$ICI/
|
|
1601
|
+
packages) bash "$ICI/packages.sh" "${@:2}" ;;
|
|
1602
1602
|
passwords)
|
|
1603
1603
|
bash "$ICI/password.sh" regenerer ||
|
|
1604
1604
|
echo "devzone : identifiants regroupés non mis à jour" >&2
|
|
1605
1605
|
bash "$ICI/password.sh" chemin
|
|
1606
1606
|
;;
|
|
1607
1607
|
-h | --help | help) devzone_aide ;;
|
|
1608
|
+
-v | --version) echo "devzone ${DEVZONE_VERSION:-unknown}" ;;
|
|
1608
1609
|
test-bash32) bash "$RACINE/manage/test/bash32.sh" ;;
|
|
1609
1610
|
test-gitlab) DEVZONE_ETAT="$ETAT" bash "$ICI/gitlab/test-gitlab.sh" "${@:2}" ;;
|
|
1610
1611
|
platform)
|