APT and RPM package repositories for Scalr Agent.
Add the repository GPG key:
curl -fsSL https://downloads.scalr.com/pgp-key.public | sudo gpg --dearmor -o /usr/share/keyrings/scalr-keyring.gpg
Add the repository to your sources list:
echo "deb [signed-by=/usr/share/keyrings/scalr-keyring.gpg] https://downloads.scalr.com/apt stable main" | sudo tee /etc/apt/sources.list.d/scalr.list
Update and install:
sudo apt update
sudo apt install scalr-agent
Create the repository file:
sudo tee /etc/yum.repos.d/scalr.repo <<EOF
[scalr]
name=Scalr Agent
baseurl=https://downloads.scalr.com/rpm
enabled=1
gpgcheck=1
gpgkey=https://downloads.scalr.com/pgp-key.public
EOF
Install the Scalr Agent:
sudo yum install scalr-agent
# or for dnf-based systems:
sudo dnf install scalr-agent
If you prefer to manually download and install the Scalr Agent without using package repositories:
📄 View the manual installation guide
After installation, configure the agent using your Scalr token.
scalr-agent configure \
--token=<YOUR_SCALR_TOKEN> \
--url=https://scalr-iacp.scalr.io/ \
--agent-name=$(hostname)
Replace <YOUR_SCALR_TOKEN>
with your actual Scalr token.
Once configured, start the Scalr Agent and enable it to start on boot.
sudo systemctl start scalr-agent
sudo systemctl enable scalr-agent
sudo service scalr-agent start
To check if the agent is running, use:
systemctl status scalr-agent
Or:
scalr-agent status
If the agent fails to start, check logs:
journalctl -u scalr-agent --no-pager -n 50
If you need to remove the Scalr Agent:
sudo yum remove -y scalr-agent
Or:
sudo dnf remove -y scalr-agent
sudo apt remove -y scalr-agent
To clean up leftover configuration files:
sudo rm -rf /etc/scalr-agent /var/lib/scalr-agent
- Ensure you have internet access if you encounter issues downloading the package.
- Check firewall rules if the agent cannot connect to https://scalr-iacp.scalr.io/.
- If installation fails, ensure your system is up to date:
sudo yum update -y # RHEL-based
sudo apt update # Debian-based