Sample terraform files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nodes.tf 715B

12345678910111213141516171819202122232425262728293031
  1. resource "hcloud_server" "node0" {
  2. name = "node0"
  3. image = "ubuntu-18.04"
  4. server_type = "cx51"
  5. ssh_keys = [ "${hcloud_ssh_key.masterkey.id}" ]
  6. datacenter = "fsn1-dc8"
  7. }
  8. resource "hcloud_server" "node1" {
  9. name = "node1"
  10. image = "ubuntu-18.04"
  11. server_type = "cx51"
  12. ssh_keys = [ "${hcloud_ssh_key.masterkey.id}" ]
  13. datacenter = "fsn1-dc8"
  14. }
  15. resource "hcloud_server" "node2" {
  16. name = "node2"
  17. image = "ubuntu-18.04"
  18. server_type = "cx51"
  19. ssh_keys = [ "${hcloud_ssh_key.masterkey.id}" ]
  20. datacenter = "fsn1-dc8"
  21. }
  22. resource "hcloud_server" "node3" {
  23. name = "node3"
  24. image = "ubuntu-18.04"
  25. server_type = "cx51"
  26. ssh_keys = [ "${hcloud_ssh_key.masterkey.id}" ]
  27. datacenter = "fsn1-dc8"
  28. }