Can I tear down and build Jenkins Cluster as Infrastructure as Code?
I would like to have a Jenkins cluster configuration (with all plugin details & more) checked into git as code and a click of button should bring up the cluster. What are the options?
Yes it is completely possible. There are several ways to do it. My recommended way is to install CloudBees Jenkins core in a kubernetes cluster. The alternatives are to use a combination of terraform and packer to configure the infrastructure and build a VM image for deployment. Once an image is created with packer and configured the way you like using the jenkins cli (https://medium.com/@shahmaulikn/install-jenkins-plugins-using-command-line-interface-8df0d0eed349) you can deploy and further configure the cluster with terraform and chef.
I think you can do it via tools like Chef / puppet, but building full cluster from the scratch may take significant time. Another option can be to dockerize the full solution. Option 3 can be keeping the Jenkins Server up all the time and load Slaves on demand (provide by clouds like Docker / Kubernetes / AWS etc. )
The Complete DevOps solution. CloudBees empowers your software delivery teams to transform your business. CloudBees solution brings together development, operations, IT, security, and business teams t
With over 2.5 million reviews, we can provide the specific details that help you make an informed software buying decision for your business. Finding the right product is important, let us help.