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: Provision a MariaDB server

Solution: Provision a MariaDB server - Packer Tutorial

From the course: Learning HashiCorp Packer

Start my 1-month free trial

Solution: Provision a MariaDB server

(upbeat music) - This challenge was asking you to provision a MariaDB service. So I have in front of us, the simple website templates as a base, and I'm going to rename bits and pieces to remove any reference to nginx. So at the bottom, in our provisioner steps we no longer want to install these nginx steps. Keep these for now because we'll amend this. We also want to rename the resulting AMI so that it reflects that this image includes MariaDB. I asked for you to update the base image to 1804 of Ubuntu. So we'll amend this filter and the code name for Ubuntu 18.04 is Bionic. Now that will now pick up 1804 to build on. The next step is to amend our installation commands. So here we had installed nginx. We're going to install mariadb.server instead. Okay. That should be everything we expect to change. Let's validate our file. Yes. I have left the uploads in here for the nginx website. This is why the validate…

Contents