Managing Configuration¶
When you create your appliance, you can include boot scripts to configure the appliance after provisioning or to configure the appliance to communicate with a DevOps platform for further communication steps.
Adding a Boot Script¶
You can add boot scripts that will be run either the first time the appliance is booted or every time the machine or virtual machine is started. The boot scripts will be run once all the software and appliance packages are installed, prior to launching the machine. The scripts are run in numeric then alphabetical order. The boot scripts will be executed as root.
Note
The firstboots are run before everyboot scripts. Bootscripts named 1_script will be run before a_script, which will be run before script_1, which is run before script_a.
Warning
Only .bat files will be executed for Windows. If you want to upload a Powershell script then you should upload it to My Software
and call the execution of the Powershell script from a .bat configuration bootscript.
If you want to install software or packages as part of the installation, you can use My Software to upload overlay files (e.g. /etc/profile.d/xxx.sh). For more information, refer to Adding Software from Your Software Library.
To add a boot script to your appliance:
Select the appliance you want to modify.
From the
Stack
page, click onConfiguration
in the toolbox.Select
Boot Scripts
.Click on
new
orupload
button on the right hand side.
If you are creating a new boot script:
Enter the name.
Select the type: If you select
first boot
, then the boot script will be launched once the first time the instance is launched. If you selectevery boot
, then the boot script will be launched every time the instance is rebooted.Select the boot order.
Enter the contents of the boot script.
Click
save
.
If you are uploading an existing boot script:
- Select the type: If you select
first boot
, then the boot script will be launched once on the first time the instance is launched. If you selectevery boot
, then the boot script will be launched every time the instance is rebooted.- Select the boot order.
- Click
choose
to locate your file and clickopen
.- Click
save
.