From the course: Learning HashiCorp Packer

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Make a pipeline for the MariaDB server

Solution: Make a pipeline for the MariaDB server - Packer Tutorial

From the course: Learning HashiCorp Packer

Start my 1-month free trial

Solution: Make a pipeline for the MariaDB server

(upbeat music) - [Instructor] In the downloadable exercise files you should have the MariaDB packer template and Ansible scripts which are very similar to the ones that we've been using so far in our course. So I've taken those and put them into their own Git repo, which I'm hosting on GitHub and I've cloned it locally here. Excellent. So now we need to add our own Jenkins file which will be used to define the pipeline which builds our MariaDB image. We can take the Jenkins file that is used in the pipeline example for this chapter. So we'll take this file here, we'll copy it and bring it over. Now to recap what this file does, it tells Jenkins that we would like to check out this code. Run a setup by putting in all of the Ansible Galaxy requirements, then validate our packer file and build our packer file. Then store a manifest JSON for use later which will include the AMI ID that is generated from this build. So we…

Contents