Question

Is there a best practice or tutorial for building infrastructure like one click installs?

I’m interested in creating infrastructure and configuration management as code. Specifically, I have an application that I would like to configure on a LAMP stack and manage with an infrastructure/config management repo. So, I would like to create the code that will:

Create infrastructure of load balancer, IPs, etc. Create droplet(s) of certain size, location,etc. Configure each operating system (users, firewall, etc) Configure core software, Apache/NGinx, Mysql, PHP Move application code to server and install

Is that Terraform, Chef/Puppet/Ansible, and bash scripts mingled with repos, OR Building an image manually, then deploying as a snapshot (which I assume is similar to one click installs) ?

I would love to find a tutorial/guide that explained the best practices and steps for execution.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey friend,

This is definitely an interesting topic. I’m going to say that, in my opinion, there are no best practices here. I think you do what fits the way your mind works, and build off of that. I mean, take me for example. I manage a fleet of servers with bash scripts. Many of the people I work with would think I’m insane, it’s just that it fits the way my mind works. I think it is important for you to find the answer that is most right for you. With that said, Terraform is definitely quite capable, and we do have a tutorial that can at least help you to move in the right direction:

https://www.digitalocean.com/community/tutorials/how-to-use-terraform-with-digitalocean

Hope that helps!

Jarland