Skip to content

Commit

Permalink
Feat/vault alerts (#1)
Browse files Browse the repository at this point in the history
* feat: INFRA-841 change vault cloud init reference

* feat: INFRA-828 Added hostname variable

* feat: INFRA-828 Updated readme

* feat: INFRA-828 Updated readme
  • Loading branch information
ihannache authored Dec 20, 2024
1 parent a291310 commit 284b10c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The module accepts the following input variables:
- **makestep**: An object containing remedial instructions if the clock of the vm is significantly out of sync at startup. It is an object containing two properties, **threshold** and **limit** (see: https://chrony.tuxfamily.org/doc/4.2/chrony.conf.html#makestep)
- **install_dependencies**: Whether to install dependencies during cloud-init. Defaults to true.
- **release_version**: Vault release version to install. Defaults to "1.13.1".
- **hostname**: The hostname used for Vault configuration (api_addr and cluster_addr).
- **tls**: Tls configuration for secure communication with vault. It has the following keys:
- **ca_certificate**: Ca certificate to authentify the server.
- **server_certificate**: Tls certificate to authentify the server.
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ locals {
}

module "vault_configs" {
source = "git::https://github.com/Ferlab-Ste-Justine/terraform-cloudinit-templates.git//vault?ref=v0.15.0"
source = "git::https://github.com/Ferlab-Ste-Justine/terraform-cloudinit-templates.git//vault?ref=v0.27.4"
install_dependencies = var.install_dependencies
hostname = var.name
hostname = var.hostname
release_version = var.release_version
tls = var.tls
etcd_backend = var.etcd_backend
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ variable "name" {
type = string
}

variable "hostname" {
description = "The hostname used for Vault configuration (api_addr and cluster_addr)"
type = string
}

variable "network_port" {
description = "Network port to assign to the node. Should be of type openstack_networking_port_v2"
type = any
Expand Down

0 comments on commit 284b10c

Please sign in to comment.