diff --git a/examples/advanced-setup/main.tf b/examples/advanced-setup/main.tf index 40beeb5..52641a8 100644 --- a/examples/advanced-setup/main.tf +++ b/examples/advanced-setup/main.tf @@ -12,7 +12,7 @@ terraform { } hcloud = { source = "hetznercloud/hcloud" - version = "1.36.2" + version = "~>1.47.0" } } } diff --git a/examples/simple-setup/main.tf b/examples/simple-setup/main.tf index a0295df..8d52d09 100644 --- a/examples/simple-setup/main.tf +++ b/examples/simple-setup/main.tf @@ -1,9 +1,22 @@ +terraform { + required_providers { + hcloud = { + source = "hetznercloud/hcloud" + version = "~>1.47.0" + } + } +} + +provider "hcloud" { + token = var.hetzner_token +} + module "hetzner-nomad-consul" { source = "../../" hetzner_token = var.hetzner_token nomad_server_count = 3 generate_ssh_key_file = true - enable_nomad_acls = true + enable_nomad_acls = false } output "server_info" { diff --git a/main.tf b/main.tf index c1268a3..96cdb86 100644 --- a/main.tf +++ b/main.tf @@ -2,11 +2,7 @@ terraform { required_providers { hcloud = { source = "hetznercloud/hcloud" - version = "1.41.0" + version = "~>1.47.0" } } -} - -provider "hcloud" { - token = var.hetzner_token } \ No newline at end of file