Skip to content

Commit

Permalink
DBP-ionos-basic-vm-mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
sahassou committed May 31, 2024
1 parent e7f5287 commit 66c90e5
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 0 deletions.
Empty file.
4 changes: 4 additions & 0 deletions modules/ionos-basic-vm-mariadb/output.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output "dns_name" {
description = "The DNS name pointing to your cluster."
value = ionoscloud_mariadb_cluster.mariadb_cluster.dns_name
}
111 changes: 111 additions & 0 deletions modules/ionos-basic-vm-mariadb/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
variable "datacenter_id" {
type = string
description = "ID of the datacenter where resources will be deployed"
}

variable "datacenter_location" {
type = string
description = "Geographic location of the datacenter"
}

variable "fulldomainname" {
type = string
description = "Domain under which the basic VM server will be available"
}

variable "ip_pool_name" {
type = string
description = "Name of the IP pool"
}

variable "image" {
type = string
description = "Image UUID for the VM"
}

variable "server_memory" {
type = number
description = "Memory allocated to the VM"
}

variable "server_cpu" {
type = number
description = "CPU cores allocated to the VM"
}

variable "cpu_family" {
type = string
description = "Type of CPU to use"
}

variable "volume_size" {
type = number
description = "Size of the primary volume in GB"
}

variable "second_volume_size" {
type = number
description = "Size of the second volume in GB"
}

variable "second_volume_disk_type" {
type = string
description = "Disk type of the second volume"
}

variable "server_name" {
type = string
description = "Name of the server"
}

variable "mariadb_version" {
type = string
description = "Version of MariaDB to deploy"
}

variable "instances_count" {
type = number
description = "Number of instances in the MariaDB cluster"
}

variable "cores" {
type = number
description = "Number of CPU cores per MariaDB instance"
}

variable "memory" {
type = number
description = "Memory per MariaDB instance in GB"
}

variable "display_name" {
type = string
description = "Display name for the MariaDB cluster"
}

variable "maintenance_day" {
type = string
description = "Maintenance day for the MariaDB cluster"
default = "Sunday"
}

variable "maintenance_hour" {
type = number
description = "Hour at which maintenance may start"
default = 3
}

variable "username" {
type = string
description = "Username for the initial MariaDB admin account"
}

variable "password" {
type = string
description = "Password for the initial MariaDB admin account"
}

variable "lan_id" {
type = string
description = "LAN ID for connecting the VM and MariaDB cluster"
}
12 changes: 12 additions & 0 deletions modules/ionos-basic-vm-mariadb/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
terraform {
required_providers {
ionoscloud = {
source = "ionos-cloud/ionoscloud"
version = "6.3.6"
}
opentelekomcloud = {
source = "opentelekomcloud/opentelekomcloud"
}
}
required_version = ">= 0.13"
}

0 comments on commit 66c90e5

Please sign in to comment.