Installing Packages

Since the croit OS is immutable, any changes will be lost on reboot! But since you might need some additional packages (such as monitoring agents), you can install them via hook scripts and extra files.

On AlmaLinux Ceph servers, use microdnf install -y <package> to install packages from a configured repository. Before upgrading the server image, update hooks that call dnf-3 or its plugins. For example, a hook that uses config-manager to add a repository can install a .repo file in /etc/yum.repos.d/ before calling microdnf.

Example

Let's say you have an example.rpm you desperately need on all your cluster nodes.

  1. Copy the rpm to /config/extra-files in your container. You might need to create that folder first.
  2. Navigate to Config -> Hook Scripts.
  3. Create a new PostDaemonStart Hook Script, with the following script:
#!/bin/bash

no_proxy="croit-mgmt" rpm -i http://croit-mgmt:8080/api/extra-files/example.rpm

Done! Now example.rpm will be installed whenever a server has rebooted. You can also manually trigger the script on your nodes, by selecting the hook script and clicking the Execute button.