From f3effc247a844396c4d5dd6533de00cc9e6d8973 Mon Sep 17 00:00:00 2001 From: Mauritz Uphoff Date: Tue, 17 Jun 2025 11:45:29 +0200 Subject: [PATCH] fmt code --- 03-master.tf | 1 - 04-backup.tf | 1 - 05-ha.tf | 4 ---- README.md | 19 +++++++------------ 4 files changed, 7 insertions(+), 18 deletions(-) diff --git a/03-master.tf b/03-master.tf index 166f49d..ba00f63 100644 --- a/03-master.tf +++ b/03-master.tf @@ -1,4 +1,3 @@ -# Create virtual Server resource "stackit_server" "example01" { project_id = var.stackit_project_id name = "example01" diff --git a/04-backup.tf b/04-backup.tf index 83d8b7b..f025bbc 100644 --- a/04-backup.tf +++ b/04-backup.tf @@ -1,4 +1,3 @@ -# Create virtual Server resource "stackit_server" "example02" { project_id = var.stackit_project_id name = "example02" diff --git a/05-ha.tf b/05-ha.tf index 48409f6..1c22e7b 100644 --- a/05-ha.tf +++ b/05-ha.tf @@ -4,10 +4,6 @@ resource "stackit_network_interface" "vip01" { security = false } -locals { - x = stackit_network_interface.vip01.ipv4 -} - resource "stackit_public_ip" "vip01-wan" { project_id = var.stackit_project_id network_interface_id = stackit_network_interface.vip01.network_interface_id diff --git a/README.md b/README.md index e62aa4d..1b7170e 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,16 @@ # Basic High Availability (HA) Setup Using VRRP -This guide provides a comprehensive, step-by-step process for setting up a Basic High Availability (HA) cluster using the Virtual Router Redundancy Protocol (VRRP) with the STACKIT CLI. In this HA configuration, one virtual machine (VM) functions as the active primary node while the secondary remains on standby, ready to take over in the event of a failure. +This guide provides a comprehensive, step-by-step process for setting up a Basic High Availability (HA) +cluster using the Virtual Router Redundancy Protocol (VRRP) with the STACKIT CLI. +In this HA configuration, one virtual machine (VM) functions as the active primary node while the secondary +remains on standby. > For setup instructions using the STACKIT CLI instead of Terraform, please refer to the [STACKIT CLI Guide](STACKIT-CLI-GUIDE.md). -## Overview of Core Components - -- **Active/Passive VM Configuration**: Ensures redundancy, with one active node and a standby failover node. -- **VRRP Synchronization**: Maintains state information between nodes, enabling seamless failover. -- **Security Group Rules**: Configured to allow VRRP and ICMP traffic. -- **Virtual IP (vIP)**: A dedicated internal IP address bound to a shared network interface card (NIC) port for seamless failover. -- **Public IP Binding**: Enables external access to the HA endpoint. - ## Testing the Setup -After completing the setup, use the [test-setup.sh](test-setup.sh) script to verify that the Apache server is operational on each machine. Executing this script should yield the following results: +After completing the setup, use the [test-setup.sh](test-setup.sh) script to verify that the Apache server is operational +on each machine. Executing this script should yield the following results: ```bash Performing curl on IP: 193.148.177.243 @@ -40,8 +36,7 @@ curl $vip01_wan_ip

example02

``` -The response confirms that the failover from the master to the backup has occurred -successfully, demonstrating the effectiveness of the HA setup. +The response confirms that the fail-over from the master to the backup has occurred. ## Diagrams