This project now uses GitHub as the primary source for agent updates.
- Main repository:
https://github.com/samirhvbr/Sysadm_Srv - The agent syncs a local clone via
git clone/git fetch/git checkout version.jsonstill exists in the repository for version metadata and hash validation
The agent now queries the configured git repository. In production, the default is master.
File: /etc/blue3-agent.conf
Example:
TOKEN=seu-token-aqui
UPDATE_BRANCH=master
UPDATE_REPO_URL=https://github.com/samirhvbr/Sysadm_Srv.git
UPDATE_REPO_DIR=/opt/blue3/sysadm-srvConfiguration priorities:
BLUE3_TOKEN,BLUE3_UPDATE_BRANCH,BLUE3_UPDATE_REPO_URLandBLUE3_UPDATE_REPO_DIRvia environmentTOKEN,UPDATE_BRANCH,UPDATE_REPO_URLandUPDATE_REPO_DIRin the/etc/blue3-agent.conffile- default branch
master
If the server does not have git, the agent tries to install it automatically using the available package manager (apt-get, apt, dnf, yum, apk or zypper).
- Change
srv.pyand updateCURRENT_VERSION. - Generate the current branch's
version.jsonwith./update_version.sh. - Commit
srv.pyandversion.json. - Push to the branch that will be used for testing or production.
Examples:
./update_version.sh
./update_version.sh testing- Create or use a test branch, for example
testing. - Generate
version.jsonpointing to that branch with./update_version.sh testing. - Push the branch.
- On the test servers, set
UPDATE_BRANCH=testingorBLUE3_UPDATE_BRANCH=testing. - Validate the auto-update.
- Once approved, merge or replicate the change into
master, run./update_version.sh masterand push.
Old agents still query the legacy URL at files.b3.rs. To migrate them to git, it is still necessary to deliver version 1.2.86 once via the current channel or manually. After that, subsequent updates start being done by querying the configured git repository, without depending on the local URL.
The base installer must also ensure git is present on the server. The www/files.b3.rs/blue3/blue3_start_script/start.sh script now includes git in the list of base packages.