🆙 Updating Ludus
Ludus binaries are built in CI, but you can always build them from source yourself.
Updating a Ludus server
Updating a Ludus server is easy:
- Download the server release binary (or build from source) of the version you wish to update to.
- Copy the Ludus server binary to the Ludus server host
- Run the Ludus server binary as root with the
--update
flag.
local:~$ scp ludus-server user@ludus:
local:~$ ssh user@ludus
user@ludus:~$ chmod +x ludus-server
user@ludus:~$ sudo ./ludus-server --update
Backed up /opt/ludus/ansible to /opt/ludus/previous-versions/1707349133263620491/ansible
Backed up /opt/ludus/packer to /opt/ludus/previous-versions/1707349133263620491/packer
Backed up /opt/ludus/ci to /opt/ludus/previous-versions/1707349133263620491/ci
Extracting ludus to /opt/ludus...
Ludus files extracted successfully
Ludus updated to v1.0.2+6a96b3ef
If you are updating from < 1.3.0 see UPDATING.md
The Ludus server binary will refuse to update if any ansible
or packer
processes are active on the machine to prevent possible interruption to active range or template activity.
Updating the Ludus client
Download the client release binary (or build from source) of the version you wish to update to.
- Linux
- macOS
- Windows
Copy the correct Ludus client binary to a location in your PATH and make it executable.
local:~$ sudo cp ludus-client_linux-[arch]-[version] /usr/local/bin/ludus
local:~$ chmod +x /usr/local/bin/ludus
Copy the correct Ludus client binary to a location in your PATH and make it executable.
local:~$ sudo cp ludus-client_macOS-[arch]-[version] /usr/local/bin/ludus
local:~$ chmod +x /usr/local/bin/ludus
local:~$ xattr -r -d com.apple.quarantine /usr/local/bin/ludus
macOS users need to remove the "quarantine" attribute as the ludus client binary is not (currently) signed
Copy the correct Ludus client binary to your Windows device.
cd
to the directory that contains the binary or move the binary to a location in your PATH.
PS C:\> .\ludus-client_windows_[arch]-[version].exe
Ludus client v1.0.0
Ludus is a CLI application to control a Ludus server
This application can manage users as well as ranges.
...