Coder Social home page Coder Social logo

wenzel-felix / terraform-hetzner-nomad-consul-module Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 4.0 76 KB

This project serves as test setup for consul and nomad cluster tests. Currently setup with Hetzner cloud, but the setup script is cloud agnostic and is usable on any Cloud computing platform.

Home Page: https://registry.terraform.io/modules/wenzel-felix/nomad-consul-module/hetzner/latest

License: MIT License

HCL 56.47% Shell 43.53%
consul hetzner-cloud nomad terraform

terraform-hetzner-nomad-consul-module's People

Contributors

dependabot[bot] avatar wenzel-felix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

terraform-hetzner-nomad-consul-module's Issues

Add var to adjust VM size

Add a variable to adjust the VM size. Also, try a logic to allow incremental deployment of different VM sizes for servers and clients

Error on "terraform apply" in example folder

pwd: .../terraform-hetzner-nomad-consul-module/examples/simple-setup
cmd: terraform apply
stderr:
│ Error: Unsupported argument

│ on main.tf line 13, in module "hetzner-nomad-consul":
│ 13: hetzner_token = var.hetzner_token

│ An argument named "hetzner_token" is not expected here.

commit: 1e0bda3631ba67878eaa07cc6facb5a9ab01d058
also reproduces before #36

is it supposed to be run that way?

Error upon `terraform apply`

hcloud_ssh_key.default: Creating...
╷
│ Error: SSH key name is already used (uniqueness_error)
│
│   with hcloud_ssh_key.default,
│   on hcloud_server.tf line 97, in resource "hcloud_ssh_key" "default":
│   97: resource "hcloud_ssh_key" "default" {
│
╵

Removing static IPs

It should be possible to use simple INT's with the range function to provision the VMs. This allows less configuration overhead.
image

Migrate deprecated `template_file`

Hey there, thanks for this wonderful tool. I am trying to play around with this setup but apparently it fails to run Terraform since template_file has no M1 builds, reference can be found here

Cloud backend fails to find nomad_token

When using Terraform Cloud, a first run of terraform apply provisions a working infrastructure.
But a second and following runs error:

╷
│ Error: Read local file data source error
│ 
│   with module.nomad-consul-module.data.local_file.nomad_token,
│   on .terraform/modules/nomad-consul-module/output.tf line 10, in data "local_file" "nomad_token":
│   10: data "local_file" "nomad_token" {
│ 
│ The file at given path cannot be read.
│ 
│ +Original Error: open certs/nomad_token: no such file or directory
╵

main.tf

terraform {
    backend "remote" {
        organization = "<org>"

        workspaces {
            name = "<workspace>"
        }
    }
}

module "nomad-consul-module" {
    source  = "wenzel-felix/nomad-consul-module/hetzner"
    version = "0.4.0"
    hetzner_token = var.hetzner_token
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.