| #!/bin/bash -xe |
| |
| SALT_OPTS="-l debug -t 10 --retcode-passthrough --no-color" |
| |
| #aptly |
| # FIXME: remove duplicate run after fix: PROD-21387 |
| # RC: aptly may fail to import gpg key's randomly(most probably,nw issue), so lets run it twice |
| salt-call ${SALT_OPTS} state.sls aptly.server || true |
| sleep 5 |
| salt-call ${SALT_OPTS} state.sls aptly.server |
| salt-call ${SALT_OPTS} state.sls aptly.publisher |
| salt-call ${SALT_OPTS} state.sls aptly || true |
| sleep 5 |
| salt-call ${SALT_OPTS} state.sls aptly |
| aptly_mirror_update.sh -sv |
| aptly-publisher --url http://10.99.0.1:18084 --timeout=1200 publish -v -d -c /etc/aptly/publisher.yaml --architectures amd64 --recreate --force-overwrite |
| |
| #docker registry |
| salt-call ${SALT_OPTS} state.sls docker.client.registry |
| docker system prune --all --force || true |
| |
| #debmirror |
| salt-call ${SALT_OPTS} state.sls debmirror |
| |
| #git |
| salt-call ${SALT_OPTS} state.sls git.server |