Skip to content

Commit

Permalink
Remove more Salt provisioning and bastion code
Browse files Browse the repository at this point in the history
  • Loading branch information
mpagot committed Oct 2, 2023
1 parent 137e0fb commit aa543e9
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 413 deletions.
1 change: 0 additions & 1 deletion terraform/aws/terraform.tfvars.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#################################
# qe-sap-deployments project configuration file
# base on ha-sap-terraform-deployments project
# Find all the available variables and definitions in the variables.tf file
#################################

Expand Down
17 changes: 1 addition & 16 deletions terraform/azure/terraform.tfvars.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#################################
# ha-sap-terraform-deployments project configuration file
# qe-sa-deployment project configuration file
# Find all the available variables and definitions in the variables.tf file
#################################

Expand Down Expand Up @@ -63,15 +63,6 @@ public_key = "/home/user/.ssh/id.rsa.key"
# Other deployment options
##########################

# Repository url used to install HA/SAP deployment packages
# It contains the salt formulas rpm packages and other dependencies.
#
## Specific Release - for latest release look at https://github.com/SUSE/ha-sap-terraform-deployments/releases
# To auto detect the SLE version
#ha_sap_deployment_repo = "https://download.opensuse.org/repositories/network:ha-clustering:sap-deployments:v8/"
# Otherwise use a specific SLE version:
#ha_sap_deployment_repo = "https://download.opensuse.org/repositories/network:ha-clustering:sap-deployments:v8/SLE_15_SP3/"
#
## Development Release (use if on `develop` branch)
# To auto detect the SLE version
#ha_sap_deployment_repo = "https://download.opensuse.org/repositories/network:ha-clustering:sap-deployments:devel/"
Expand All @@ -83,12 +74,6 @@ public_key = "/home/user/.ssh/id.rsa.key"

# Test and QA purpose

# Define if the deployment is used for testing purpose
# Disable all extra packages that do not come from the image
# Except salt-minion (for the moment) and salt formulas
# true or false (default)
#offline_mode = false

# Execute HANA Hardware Configuration Check Tool to bench filesystems
# true or false (default)
#hwcct = false
Expand Down
20 changes: 1 addition & 19 deletions terraform/azure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,6 @@ variable "additional_packages" {
default = []
}

# Repository url used to install development versions of HA/SAP deployment packages
# The latest RPM packages can be found at:
# https://download.opensuse.org/repositories/network:ha-clustering:sap-deployments:devel/{YOUR SLE VERSION}
# Contains the salt formulas rpm packages.
variable "ha_sap_deployment_repo" {
description = "Repository url used to install development versions of HA/SAP deployment packages. If the SLE version is not present in the URL, it will be automatically detected"
type = string
default = "https://download.opensuse.org/repositories/network:ha-clustering:sap-deployments:v8"
}

# Hana related variables
variable "hana_name" {
description = "hostname, without the domain part"
Expand Down Expand Up @@ -848,16 +838,8 @@ variable "netweaver_shared_storage_type" {

# Testing and QA

# Disable extra package installation (sap, ha pattern etc).
# Disables first registration to install salt-minion, it is considered that images are delivered with salt-minion
variable "offline_mode" {
description = "Disable installation of extra packages usage not coming with the image"
type = bool
default = false
}

# Execute HANA Hardware Configuration Check Tool to bench filesystems.
# The test takes several hours. See results in /root/hwcct_out and in global log file /var/log/salt-result.log.
# The test takes several hours. See results in /root/hwcct_out
variable "hwcct" {
description = "Execute HANA Hardware Configuration Check Tool to bench filesystems"
type = bool
Expand Down
80 changes: 0 additions & 80 deletions terraform/gcp/modules/bastion/main.tf

This file was deleted.

3 changes: 0 additions & 3 deletions terraform/gcp/modules/bastion/outputs.tf

This file was deleted.

44 changes: 0 additions & 44 deletions terraform/gcp/modules/bastion/variables.tf

This file was deleted.

17 changes: 1 addition & 16 deletions terraform/gcp/terraform.tfvars.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#################################
# ha-sap-terraform-deployments project configuration file
# qe-sa-deployment project configuration file
# Find all the available variables and definitions in the variables.tf file
#################################

Expand Down Expand Up @@ -86,15 +86,6 @@ private_key = "/home/myuser/.ssh/id_rsa"
# Other deployment options
##########################

# Repository url used to install HA/SAP deployment packages
# It contains the salt formulas rpm packages and other dependencies.
#
## Specific Release - for latest release look at https://github.com/SUSE/ha-sap-terraform-deployments/releases
# To auto detect the SLE version
#ha_sap_deployment_repo = "https://download.opensuse.org/repositories/network:ha-clustering:sap-deployments:v8/"
# Otherwise use a specific SLE version:
#ha_sap_deployment_repo = "https://download.opensuse.org/repositories/network:ha-clustering:sap-deployments:v8/SLE_15_SP3/"
#
## Development Release (use if on `develop` branch)
# To auto detect the SLE version
#ha_sap_deployment_repo = "https://download.opensuse.org/repositories/network:ha-clustering:sap-deployments:devel/"
Expand All @@ -109,12 +100,6 @@ private_key = "/home/myuser/.ssh/id_rsa"

# QA variables

# Define if the deployment is used for testing purpose
# Disable all extra packages that do not come from the image
# Except salt-minion (for the moment) and salt formulas
# true or false (default)
#offline_mode = false

# Execute HANA Hardware Configuration Check Tool to bench filesystems
# true or false (default)
#hwcct = false
Expand Down
10 changes: 0 additions & 10 deletions terraform/gcp/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,6 @@ variable "additional_packages" {
default = []
}

# Repository url used to install development versions of HA/SAP deployment packages
# The latest RPM packages can be found at:
# https://download.opensuse.org/repositories/network:ha-clustering:sap-deployments:devel/{YOUR SLE VERSION}
# Contains the salt formulas rpm packages.
variable "ha_sap_deployment_repo" {
description = "Repository url used to install development versions of HA/SAP deployment packages. If the SLE version is not present in the URL, it will be automatically detected"
type = string
default = "https://download.opensuse.org/repositories/network:ha-clustering:sap-deployments:v8"
}

# Hana related variables

variable "hana_name" {
Expand Down
5 changes: 0 additions & 5 deletions terraform/generic_modules/common_variables/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ locals {
)
)

bastion_private_key = var.bastion_private_key != "" ? (fileexists(var.bastion_private_key) ? file(var.bastion_private_key) : var.bastion_private_key) : local.private_key
bastion_public_key = var.bastion_public_key != "" ? (fileexists(var.bastion_public_key) ? file(var.bastion_public_key) : var.bastion_public_key) : local.public_key

requirements_file = "${path.module}/../../requirements.yml"
requirements = fileexists(local.requirements_file) ? yamlencode({ pkg_requirements : yamldecode(trimspace(file(local.requirements_file))) }) : yamlencode({ pkg_requirements : null })
}
Expand All @@ -30,8 +27,6 @@ output "configuration" {
public_key = local.public_key
private_key = local.private_key
authorized_keys = var.authorized_keys
bastion_public_key = local.bastion_public_key
bastion_private_key = local.bastion_private_key
authorized_user = var.authorized_user
provisioner = var.provisioner
monitoring_enabled = var.monitoring_enabled
Expand Down
17 changes: 0 additions & 17 deletions terraform/generic_modules/common_variables/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,6 @@ variable "authorized_user" {
type = string
}

variable "bastion_public_key" {
description = "Path to a SSH public key used to connect to the bastion. If it's not set the key provided in public_key_location will be used"
type = string
default = ""
}

variable "bastion_private_key" {
description = "Path to a SSH private key used to connect to the bastion. If it's not set the key provided in private_key_location will be used"
type = string
default = ""
}

variable "provisioner" {
description = "Used provisioner option. Available options: salt. Let empty to not use any provisioner"
default = "salt"
}

variable "monitoring_enabled" {
description = "Enable centralized monitoring via Prometheus/Grafana/Loki"
type = bool
Expand Down
8 changes: 0 additions & 8 deletions terraform/generic_modules/salt_provisioner/README.md

This file was deleted.

83 changes: 0 additions & 83 deletions terraform/generic_modules/salt_provisioner/main.tf

This file was deleted.

Loading

0 comments on commit aa543e9

Please sign in to comment.