NGINX Virtual Machine Building with cloud-init
Quickly create fresh NGINX VMs on any cloud provider
The joy and burden of building new servers
The initial build of a new application server requires multiple steps. First, the operating system must be installed. Then additional software packages ne...
Updated Aug 28, 2024
Version 2.0Doug_Gallarda
Employee
Joined December 13, 2019
amolari
Jul 04, 2024Cirrostratus
Thanks for the article. Could that be adapted to install Instance Manager ? The documentation provides guideline to use Packer (Image generation) and Terraform to build on the cloud, but IMHO cloud-init could be a viable alternative?
- Doug_GallardaJul 05, 2024Employee
Yes, you can! Just add the following lines to your YAML file under the "sources" section:
clickhouse: source: "deb https://packages.clickhouse.com/deb lts main" keyid: 8919F6BD2B48D754 nms: source: "deb https://pkgs.nginx.com/nms/ubuntu $RELEASE nginx-plus" keyid: ABF5BD827BD9BF62
Then, add nms-instance-manager as the package to install.
I also add "/etc/nms/scripts/basic_passwords.sh as a runcmd to set the admin password.