By mcheck
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.