Applicable to:
- SolusIO
Question
How to add a first boot script for SolusIO VPS created via WHMCS VPS Provisioning module?
Answer
-
Login into admin area of WHMCS.
-
Open Setup > Product/Services > Products/Services > Required product > Module Settings.
How to customize a product
- In User Data field write cloud-config script according to cloud-init documentation.
Example - script to install Docker on first boot of Ubuntu 20:
CONFIG_TEXT: #cloud-config
runcmd:
- apt-get update
- apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
- 'curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -'
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -y
- apt-get install docker-ce docker-ce-cli containerd.io -y
- Click Save Changes.
Example of configured script:
Comments
0 commentsPlease sign in to leave a comment.