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 and 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 script_1, which is run before script_a
Note
When a user creates an appliance, the packages are stored locally in the UForge cache repository, which is stored on the DB. Therefore, depending on the number of appliances created and OS used, you may need to adjust the DB size.
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). 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 on the first time the instance is launched. If you selectevery boot
, then the boot script will be launched every time the instance ir 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 ir rebooted.- Select the boot order.
- Click
choose
to locate your file and clickopen
.- Click
save
.
Adding a UForge Studio Package¶
UForge Studio allows you to fully automate the post-installation configuration of multi-tier software solutions. You can use Studio to model your configuration scenarios, then include these packages directly into your appliances, making them self-deployable out of the box.
To add your UForge Studio packages to an appliance:
- Select the appliance you want to modify.
- From the
Stack
page, click onConfiguration
in the toolbox.- Select
UForge Studio
.- Click
upload
.- Browse for your UForge Studio package and click
open
.- Click
add license
to add a license (optional).- Click
save
.