jakub ab2075f012 add host_type metadata to Ansible host
Useful for collecting this context in Consul.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2026-08-11 11:10:06 +02:00
2026-02-04 15:21:54 +01:00
2026-08-11 11:10:06 +02:00

Description

This is a dummy module which does not create any actual cloud resources. It's intended for registering hosts which cannot be managed with Terraform to our infra.

For example providers like Hetzner or MacStadium have no provider module for Terrafom.

This module creates the Ansible inventory hosts in order to make hosts appear the same way all the other hosts created by Terraform do.

Variables

  • Static
    • ips - List of public IPs for dummy hosts. (default: [])
  • General
    • region - Region in which the host will be created.
    • prefix - Short name of provider being used.
    • name - Prefix of hostname before index. (default: node)
    • group - Name of Ansible group to add hosts to.
    • env - Environment for these hosts, affects DNS entries.
    • stage - Name of stage, like prod, dev, or staging.
  • DNS
    • cf_zone_id - CloudFlare DNS domain zone ID. (ID for status.im)
    • domain - DNS Domain for hostnames. (default: status.im)

Usage

module "hosts" {
  source = "./modules/dummy-module"

  name   = "node"
  env    = "example"
  stage  = "prod"
  group  = "example-prod"
  region = "eu-hel1"
  prefix = "he"

  ips = [
    "12.34.56.78",
    "23.45.67.89",
    "98.76.54.32",
  ]
}
S
Description
Terraform module for dummy hosts
Readme MIT
43 KiB
Languages
HCL 100%