hostname-generator
4ops/hostname-generator/template
Generates unique hostnames.
Install
README
Hostname generator  Generates unique hostnames with format - . Requirements - Terraform version 0.12.1+ Providers - random >= 2.1 - template >= 2.1 Attributes - name - List of unique hostnames - fqdn - List of fqdn (format: . ) Arguments See variables.tf Example See example/ Example outputs: - When var.random_id = true ``HCL Outputs: fqdn = [ "my-prod-server-97c93f53a1.example.com", "my-prod-server-68bd75680c.example.com", "my-prod-server-eb83fe09e3.example.com", "my-prod-server-49cc3276f5.example.com", "my-prod-server-7b67b3e324.example.com", "my-prod-server-db157d290b.example.com", "my-prod-server-b83c78e362.example.com", "my-prod-server-1e4357b92d.example.com", "my-prod-server-81f64abe5a.example.com", "my-pro
Inputs (6)
| Name | Type | Description | Default |
|---|---|---|---|
| prefix | string | Required. Prefix of server name. | required |
| random_id | bool | Use random generated ID in server name. If `false`, numbers used as server ID. | true |
| random_id_length | number | Generates random value as server ID. If `false` numbered ID used. | 5 |
| number_id_format | string | Format of numbered server's id. Ignored when `random-id` is `true` | "%02d" |
| domain | string | Added to the fqdn when generating. | "" |
| servers | number | Number of names to generate. | 0 |
Outputs (2)
namefqdnResources (1)
Topics & Tags
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,