BostonCube
  • Home
  • Blog
  • Tech Life
    • Joomla
    • Nextcloud
    • Nextcloud for Activity Planning
    • Nextcloud Deployment Automation
    • Bacula Pi
    • An Ubuntu 24.04 Deployment Automation
    • IPv6 Deployment
    • postcot
    • Mikrotik
  • About
  • Automation Approach
  • VM Template Creation part 1
  • VM Template Creation part 2
  • VM Template Creation part 3
  • VM Template Deployment
  • Ansible Inventory
  • Playbook Preparation
  • Playbook 1 - First Contact
  • Playbook 2 - OS Config
  • Playbook 3 - Nextcloud Prerequisites
  • Playbook 4 - Nextcloud Install
  • Playbook 5 - Nextcloud Configuration

A Nextcloud Deployment Automation

Nextcloud logoNextcloud 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.


 

Automation Approach

Details
Written by: Richard
Published: 14 January 2024

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.

Last Updated: 18 February 2024
  • Nextcloud
  • Ubuntu
  • Ansible
  • ESXi

VM Template Creation part 1

Details
Written by: Richard
Published: 17 January 2024

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.

Last Updated: 26 November 2024
  • Nextcloud
  • Ubuntu
  • ESXi

VM Template Creation part 2

Details
Written by: Richard
Published: 27 January 2024

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.

Last Updated: 30 January 2024
  • Nextcloud
  • Ubuntu
  • ESXi

VM Template Creation part 3

Details
Written by: Richard
Published: 27 January 2024

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.

Last Updated: 18 February 2024
  • ESXi

VM Template Deployment

Details
Written by: Richard
Published: 28 January 2024

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.

Last Updated: 30 January 2024
  • ESXi

Ansible Inventory

Details
Written by: Richard
Published: 11 February 2024

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.

 

Last Updated: 17 February 2024
  • Ansible

Playbook Preparation

Details
Written by: Richard
Published: 17 February 2024

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.

Last Updated: 22 February 2024
  • Linux
  • Bash
  • Ansible

Playbook 1 - First Contact

Details
Written by: Richard
Published: 20 February 2024

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

Last Updated: 22 February 2024
  • Linux
  • Ansible

Playbook 2 - OS Config

Details
Written by: Richard
Published: 25 February 2024

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.

Last Updated: 22 February 2024
  • Ubuntu
  • Bash
  • Ansible

Playbook 3 - Nextcloud Prerequisites

Details
Written by: Richard
Published: 03 March 2024

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

Last Updated: 23 February 2024
  • Ubuntu
  • Ansible

Playbook 4 - Nextcloud Install

Details
Written by: Richard
Published: 10 March 2024

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.

Last Updated: 10 March 2024
  • Nextcloud
  • Ubuntu
  • Ansible
  1. Playbook 5 - Nextcloud Configuration

Page 1 of 2

  • 1
  • 2
Copyright © 2026 BostonCube. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License.