From the course: Learning HashiCorp Packer

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Solution: Provision a MariaDB server

Solution: Provision a MariaDB server - Packer Tutorial

From the course: Learning HashiCorp Packer

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