From 26d69b346ef3440b6b4ca9cb2efd735e412c6bcb Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Oct 27 2023 02:54:39 +0000 Subject: Set UID in rsync deployment job This sets the UID to the one used by the "cloneboy" user. Needed to avoid Salt and rsync changing the directory ownership back and forth. We might want to consider changing the Salt state to use a different user once the same state is no longer needed by Salt Masters using Git clone based deployments. Signed-off-by: Georg Pfuetzenreuter --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index af80b80..126e59e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -94,7 +94,7 @@ deploy_job: stage: deploy script: - sudo salt-call event.fire_master $CI_DEPLOY_PASSWORD salt/fileserver/gitfs/update - - "rsync -a --delete --super --owner --group --chown=0:479 --chmod='u=rwX,g=rX,o=' $PWD/ rsync://saltpush@witch1.infra.opensuse.org:873/salt-push/" + - "rsync -a --delete --super --owner --group --chown=477:479 --chmod='u=rwX,g=rX,o=' $PWD/ rsync://saltpush@witch1.infra.opensuse.org:873/salt-push/" tags: - salt-deploy rules: