From 2a45a1d6606c9857f8e7f75ec143e4b353128931 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Thu, 11 Apr 2024 21:11:24 +0200 Subject: [PATCH 1/3] add instructions for getting the test setup to run Signed-off-by: Markus Katharina Brechtel --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 3e3004f..3ae1ed4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,24 @@ # Incus deployment tools This is a collection of Ansible playbooks, Terraform configurations and scripts to deploy and operate Incus clusters. + +## How to get the test setup run: + +Install incus stable or LTS on your system from the [zabbly/incus](https://github.com/zabbly/incus) release and initialize it on your local machine. + +Install [OpenTofu](https://opentofu.org/docs/intro/install/). + +Go to terraform directory: +``` +cd terraform/ +``` + +Init the terraform project: +``` +tofu init +``` + +Create the VMs for testing: +``` +tofu apply +``` From 34a56cd315b4765f812bc0e1f46d408c50ee4f3d Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Thu, 11 Apr 2024 21:34:58 +0200 Subject: [PATCH 2/3] add instructions to run ansible Signed-off-by: Markus Katharina Brechtel --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 3ae1ed4..19b69c8 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,13 @@ This is a collection of Ansible playbooks, Terraform configurations and scripts ## How to get the test setup run: +### Install incus and OpenTofu Install incus stable or LTS on your system from the [zabbly/incus](https://github.com/zabbly/incus) release and initialize it on your local machine. Install [OpenTofu](https://opentofu.org/docs/intro/install/). + +### Create the test VMs with OpenTofu Go to terraform directory: ``` cd terraform/ @@ -22,3 +25,19 @@ Create the VMs for testing: ``` tofu apply ``` + +### Run the Ansible Playbook +Go to the ansible directory: +``` +cd ../ansible/ +``` + +Copy the example inventory file: +``` +cp hosts.yaml.example hosts.yaml +``` + +Run the Playbooks: +``` +ansible-playbook deploy.yaml +``` From 0c94ba825b7ebcc5c8fd3dfb8757176214ece442 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Fri, 12 Apr 2024 23:55:34 +0200 Subject: [PATCH 3/3] add ceph install requirements to readme Signed-off-by: Markus Katharina Brechtel --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 19b69c8..f87534c 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ Install incus stable or LTS on your system from the [zabbly/incus](https://githu Install [OpenTofu](https://opentofu.org/docs/intro/install/). +Install the required ceph packages for ansible on the controller, on Debian that's the `ceph-base` and `ceph-common` packages: +``` +apt install --no-install-recommends ceph-base ceph-common +``` ### Create the test VMs with OpenTofu Go to terraform directory: