Scripted installation with user-data

IPFire takes a script that is executed on the first boot. This script can be used to make any initial changes to the configuration of the system or install additional software. This allows automatic installation of the IPFire instance.

The script can be written in any language that is supported by IPFire. Most commonly this would be shell. The script has to start with #! and an interpreter is required. Any output of that script will be logged to /root/user-data.log.

Examples

Install additional packages

#!/bin/bash

# Install aws-cli tools
pakfire install -y aws-cli

This script will install the aws-cli package on first boot which provides various command to talk to AWS services.

Edit Page ‐ Yes, you can edit!

Older Revisions • August 15, 2018 at 1:43 pm • Michael Tremer