From the course: Learning HashiCorp Packer
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Challenge: Use Ansible to harden the MariaDB server - Packer Tutorial
From the course: Learning HashiCorp Packer
Challenge: Use Ansible to harden the MariaDB server
- [Instructor] In this challenge, I would like you to build a hardened MariaDB server. This challenge has two parts to it. The first part is to create a hardened base image built upon Ubuntu Bionic 18.04. You can use the exercise files from the previous chapters and amend them to build on 18.04. The second part is to use the hardened base that you've just built to install MariaDB and harden the server installation. Use the Golang guide on MySQL Ansible role to install MariaDB as we've done previously. Then use the devsec.hardening.mysqlhardeningrole from the DevSec Hardening Ansible collection to ensure that the Maria DB installation has also been hardened against some attacks. As you're upgrading from 18.04, you can remove the extra argument line which tells it which Python interpreter to use.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.