A Nextcloud Deployment Automation
Nextcloud 28 is now released and I also want to look at some of the other apps in a sandpit environment. Building new Nextcloud VMs was taking a while so I figured this is an ideal case for automation. This series looks at the process and tooling I used.
- Details
- Written by: Richard
Planning an approach to automating the deployment of a Nextcloud installation to an Ubuntu virtual machine hosted on my ESXi-based GeekLab. It takes a few evenings to do this by hand, so this is a task that's ripe for automation and letting me do more important things like wiping out another Core insurgency while I wait.
- Details
- Written by: Richard
Using an OVF template to deploy a virtual machine for my Nextcloud server solves a lot of problems, but of course that means I need to create the template to start with. In this first part I look at the design decisions for my Ubuntu 20.04 Nextcloud template and creating the source virtual machine.
- Details
- Written by: Richard
In this second part to creating an OVF template to deploy a virtual machine for Nextcloud servers, we install Ubuntu 20.04 LTS and configure the initial filesystem layout.
- Details
- Written by: Richard
In this final part to creating an OVF template to deploy virtual machines for Nextcloud servers we export the VM we have created in the first two parts.
- Details
- Written by: Richard
Everything up to this point has been theory and preparation. Now we get to make the first real progress towards our goal of quickly deploying a Nextcloud server on the GeekLab by using our customised Ubuntu OVF template to create a virtual machine with Ubuntu prepared and ready for Ansible to get to work on.
- Details
- Written by: Richard
While the Ansible Playbooks do the actual work, they're not much use without information about the landscape they need to work on. The Ansible Inventory describes the target landscape in a structured way that both humans and playbooks can understand.
- Details
- Written by: Richard
In this step we set prepare a directory for our Ansible playbooks and create some bash scripts that we will use to trigger and control the playbooks as they run against our target VM.
- Details
- Written by: Richard
This first playbook renames the target VM from the default in our OVF template then applies some initial Linux configuration so that it's ready for the subsequent playbooks
- Details
- Written by: Richard
This is pretty much a housekeeping playbook. We fix two more issues from the OFV template, generate a TLS certificate request and install the standard admin applications I use on all Linux VMs.
- Details
- Written by: Richard
The first two playbooks completed the VM installation and made it ready. Now we get to start configuring our VM as a Nextcloud server. This playbook installs the prerequisite applications Apache2, MariaDB and PHP
- Details
- Written by: Richard
The previous playbooks completed all preparations. This playbook effectively follows the Nextcloud installation guide and creates the database and filesystem directories, deploys the Nextcloud files and Apache2 site ready for the initial administrator login.