diff --git a/.terraform.lock.hcl b/.terraform.lock.hcl index 5a2e1db..e97de05 100644 --- a/.terraform.lock.hcl +++ b/.terraform.lock.hcl @@ -2,22 +2,40 @@ # Manual edits may be lost in future updates. provider "registry.terraform.io/equinix/metal" { - version = "3.2.0" + version = "3.2.1" hashes = [ - "h1:PIotyZNp3/sYe/Zk7yEgHygV5GOtHjAqXr4TJYdtETs=", - "zh:4a53b56d7cab5a75dca16c4a285438f13fe07a37c45967668dae8e4a70b78a85", - "zh:4fa88d43bd2370e420de6238f02f8ad668a0cd9e7f010a24a8bc0a76982ff3bc", - "zh:525b0f6d977437388b7ee7428bccd351e46af39a0883ce08f624b4dd173de8c2", - "zh:5c906ee75fbd1daa63dc40221015bfdcea7cec24ed7aa3687fcc18265556e379", - "zh:6153771a66d1f5058e977a686e706f3ced64cbcb7cd623a9adf7e8ed3f0d08d8", - "zh:79dd26afcc0846864ede59e79ae07fdf6cc084315cd9e50f4e09c700d9d8dfb4", - "zh:992e410067995537565f38ad9f93f4d66fabdc25a8303a1be418aefaf172daae", - "zh:9e52d2d008846cb6db8d0cd0aac7e1c6c635fc65c192b0217b2e673d165def0f", - "zh:c2ca5c36358c03c996d97b8baca6809675f54010c021d5704124bd3815660c86", - "zh:e2d4bfae4489142cfac31fb7939047226335c0fddf59c3544faeb1f3029a36d8", - "zh:e5c6727b6404beb3aa54bbc7eb3145bac29bab8135771f21754e093c178ee23f", - "zh:ecf34c7c8b3eb8cd61b381d8f26ec61b3d8b5d57a87fff97cb24331230286fef", - "zh:fcae7646861ccf3393828ac53d05487ba8547cf9f8a9da13553dcedf8dd2646e", + "h1:ZlFTM53deZU/b5I1CopmZEgmuhY7C8Z16Ko8/wF7E7g=", + "zh:001983330b8845ad07f1e7d8462cd2ba2f372d54523d64e382ae5bdd4fe690a5", + "zh:1ec8c9052c01acd43f10ac92998b715b693640bb1f53e4dad7b4f5b2a2b84574", + "zh:27785aec3fa7d4b1d4638a7eb36ae70d15fe457e3371365bc16a8fb1349d9649", + "zh:2a6b6cfb08a52f32e66142b21c3df72da3e66d5158a61e4fd1d56f29772b5460", + "zh:57309a5d762744588c4a9ff3592fa446e123e62bd1ec6e502671375075d35647", + "zh:636c16ef8acc57605a0dc011dc05ef00276980553b70a2b35ab09185434902f7", + "zh:6b31691a28f1e6877e5c48894acdcc463f0baa74ae254a2acf6e148971f87810", + "zh:84c82012f51f82977b27084e1d7410c020a5772645f3037c25f7e3df1a637611", + "zh:9ea35a527e95280f3440abf2670c449951c239f1ce5e8fd685e04af60b2d28ff", + "zh:a81ef5a2f29b928c23a83c86e157daa604e70c3ef9e2d49b494556103b58e9ad", + "zh:d2bc396da3a1b0110b64a305f09092136e3b10e4cdf99a4f1e013e01ffa6812d", + "zh:ed783f06adc8702ce6c171a23f918c998c89836a6fe8f4e4c7cd15b84b8708a5", + "zh:fde39924aa0de90b7d19da2dd4f561a7a8c92efb9e19ea1c319957ccd6019fdd", + ] +} + +provider "registry.terraform.io/hashicorp/cloudinit" { + version = "2.2.0" + hashes = [ + "h1:siiI0wK6/jUDdA5P8ifTO0yc9YmXHml4hz5K9I9N+MA=", + "zh:76825122171f9ea2287fd27e23e80a7eb482f6491a4f41a096d77b666896ee96", + "zh:795a36dee548e30ca9c9d474af9ad6d29290e0a9816154ad38d55381cd0ab12d", + "zh:9200f02cb917fb99e44b40a68936fd60d338e4d30a718b7e2e48024a795a61b9", + "zh:a33cf255dc670c20678063aa84218e2c1b7a67d557f480d8ec0f68bc428ed472", + "zh:ba3c1b2cd0879286c1f531862c027ec04783ece81de67c9a3b97076f1ce7f58f", + "zh:bd575456394428a1a02191d2e46af0c00e41fd4f28cfe117d57b6aeb5154a0fb", + "zh:c68dd1db83d8437c36c92dc3fc11d71ced9def3483dd28c45f8640cfcd59de9a", + "zh:cbfe34a90852ed03cc074601527bb580a648127255c08589bc3ef4bf4f2e7e0c", + "zh:d6ffd7398c6d1f359b96f5b757e77b99b339fbb91df1b96ac974fe71bc87695c", + "zh:d9c15285f847d7a52df59e044184fb3ba1b7679fd0386291ed183782683d9517", + "zh:f7dd02f6d36844da23c9a27bb084503812c29c1aec4aba97237fec16860fdc8c", ] } diff --git a/README.md b/README.md index d7b6832..40ee65d 100644 --- a/README.md +++ b/README.md @@ -166,9 +166,9 @@ A complete list of variables can be found at /dev/null 2>&1; do + echo "Waiting for apt to be available..." + sleep 1 + done + # Install Docker export DEBIAN_FRONTEND=noninteractive sudo apt-get update -qy diff --git a/templates/pre_reqs_worker.sh b/templates/pre_reqs_worker.sh deleted file mode 100644 index df630ef..0000000 --- a/templates/pre_reqs_worker.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash -OS='${operating_system}' - -function ubuntu_pre_reqs { - # Install Docker - export DEBIAN_FRONTEND=noninteractive - sudo apt-get update -qy - sudo apt-get install -qy lvm2 -} - - -function rhel_pre_reqs { - sudo dnf install lvm2 -y -} - - -function unknown_os { - echo "I don't know who I am" > /root/who_am_i.txt -} - -if [ "$${OS:0:6}" = "centos" ] || [ "$${OS:0:4}" = "rhel" ]; then - rhel_pre_reqs -elif [ "$${OS:0:6}" = "ubuntu" ]; then - ubuntu_pre_reqs -else - unknown_os -fi diff --git a/templates/user_data.sh b/templates/user_data.sh index 7ac386b..efde31d 100644 --- a/templates/user_data.sh +++ b/templates/user_data.sh @@ -14,7 +14,6 @@ function rhel_pre_reqs { sudo systemctl stop firewalld # Disable SELinux sudo setenforce 0 - dnf install jq -y } function bgp_routes { @@ -36,4 +35,4 @@ else unknown_os fi -bgp_routes \ No newline at end of file +bgp_routes diff --git a/variables.tf b/variables.tf index 46de686..4570c50 100644 --- a/variables.tf +++ b/variables.tf @@ -21,10 +21,10 @@ variable "hostname" { description = "Hostname for the nodes" } -variable "facility" { +variable "metro" { type = string - default = "ny5" - description = "Equinix Metal Facility to deploy into" + default = "ny" + description = "Equinix Metal Metro to deploy into" } variable "cp_plan" { @@ -106,19 +106,19 @@ variable "bgp_asn" { variable "ccm_version" { type = string - default = "v3.2.2" + default = "v3.3.0" description = "The version of the Equinix Metal CCM" } variable "kube_vip_version" { type = string - default = "0.3.8" + default = "0.4.2" description = "The version of Kube-VIP to use" } variable "anthos_version" { type = string - default = "1.8.3" + default = "1.8.7" description = "The version of Google Anthos to install" }