This commit is contained in:
2025-09-02 20:14:01 +02:00
parent d217ad7d3c
commit 159c25abef

View File

@@ -105,7 +105,17 @@ data:
DEFAULT_TRUST_MODEL = committer
[metrics]
ENABLED=true
ENABLED=true
[migrations]
ALLOW_LOCALNETWORKS = true
ALLOWED_DOMAINS = *.undercloud.local, *.undercloud.dev
BLOCKED_DOMAINS =
[mirror]
ENABLED = true
DISABLE_NEW_PUSH = false
---
apiVersion: v1
kind: ConfigMap
@@ -195,7 +205,7 @@ data:
#execline-cd /data rm -Rf k8s-apps
echo "create PushMirror.."
#./ctea --username shodan --password $SHODAN_PW --url http://localhost:3000 AddPushMirror undercloud k8s-apps "http://git.undercloud.local:3000/Undercloud/k8s-apps.git" shodan $SHODAN_PW 1h0m0s
#./ctea --username shodan --password $SHODAN_PW --url http://localhost:3000 AddPushMirror Undercloud k8s-apps "http://git.undercloud.local:3000/Undercloud/k8s-apps.git" shodan $SHODAN_PW 1h0m0s
# Add push mirror to Undercloud/k8s-apps
curl -sS -u "shodan:${SHODAN_PW}" \
@@ -204,7 +214,29 @@ data:
-d '{"remote_address":"http://git.undercloud.local:3000/Undercloud/k8s-apps.git","remote_username":"shodan","remote_password":"'"$SHODAN_PW"'","interval":"1h0m0s","sync_on_commit":false}'
# optional: trigger immediate sync of all push mirrors for this repo
curl -sS -u "shodan:${SHODAN_PW}" -X POST http://localhost:3000/api/v1/repos/Undercloud/k8s-apps/push_mirrors-sync
# curl -sS -u "shodan:${SHODAN_PW}" -X POST http://localhost:3000/api/v1/repos/Undercloud/k8s-apps/push_mirrors-sync
echo "cloning assets"
execline-cd /data git clone "http://shodan:${SHODAN_PW}@git.undercloud.local:3000/Undercloud/assets.git"
execline-cd /data/assets rm -Rf .git
execline-cd /data/assets git init
execline-cd /data/assets git config --global user.email "thrawn235@gmail.com"
execline-cd /data/assets git config --global user.name "shodan"
execline-cd /data/assets git add .
execline-cd /data/assets git commit -m "upload"
echo "push assets to localhost"
execline-cd /data/assets git push http://shodan:$SHODAN_PW@localhost:3000/Undercloud/assets.git --all
echo "delete local copy..."
#execline-cd /data rm -Rf assets
echo "create PushMirror.."
# Add push mirror to Undercloud/assets
curl -sS -u "shodan:${SHODAN_PW}" \
-H 'Content-Type: application/json' \
-X POST http://localhost:3000/api/v1/repos/Undercloud/assets/push_mirrors \
-d '{"remote_address":"http://git.undercloud.local:3000/Undercloud/assets.git","remote_username":"shodan","remote_password":"'"$SHODAN_PW"'","interval":"1h0m0s","sync_on_commit":false}'
echo "create startup.ran file..."