Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change provider from deprecated Metal provider to Equinix #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
ssh-add <(echo $METAL_SSH_PRIVATE_KEY_BASE64 | base64 -d)
# Arrays of strings are hard to define via TF env vars (in yaml)
- run: |
echo 'metal_facilities = ["da11"]' > terraform.tfvars
echo 'metal_metro = "da"' > terraform.tfvars
echo 'metal_project_id = "${{ steps.project.outputs.projectID }}"' >> terraform.tfvars
- name: Terraform Plan
id: plan
Expand Down
106 changes: 0 additions & 106 deletions .terraform.lock.hcl

This file was deleted.

7 changes: 5 additions & 2 deletions BareMetal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ resource "equinix_metal_device" "controller" {
private_key = local_file.cluster_private_key_pem.content
}
user_data = "#cloud-config\n\nssh_authorized_keys:\n - \"${local_file.cluster_public_key.content}\""
metro = var.metal_metro
project_id = local.metal_project_id
billing_cycle = "hourly"
# ip_address {
Expand All @@ -68,8 +69,8 @@ resource "equinix_metal_device" "dashboard" {
user = "root"
private_key = file(local_file.cluster_private_key_pem)
}
user_data = "#cloud-config\n\nssh_authorized_keys:\n - \"${local_file.cluster_public_key.content}\""

user_data = "#cloud-config\n\nssh_authorized_keys:\n - \"${local_file.cluster_public_key.content}\""
metro = var.metal_metro
project_id = local.metal_project_id
billing_cycle = "hourly"
}
Expand All @@ -89,6 +90,7 @@ resource "equinix_metal_device" "compute-x86" {
private_key = file(local_file.cluster_private_key_pem)
}
user_data = "#cloud-config\n\nssh_authorized_keys:\n - \"${local_file.cluster_public_key.content}\""
metro = var.metal_metro
project_id = local.metal_project_id
billing_cycle = "hourly"
}
Expand All @@ -108,6 +110,7 @@ resource "equinix_metal_device" "compute-arm" {
private_key = file(local_file.cluster_private_key_pem)
}
user_data = "#cloud-config\n\nssh_authorized_keys:\n - \"${local_file.cluster_public_key.content}\""
metro = var.metal_metro
project_id = local.metal_project_id
billing_cycle = "hourly"
}
Expand Down
4 changes: 2 additions & 2 deletions DNS.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#
# domain = "openstacksandiego.us"
# name = "controller-${random_id.cloud.hex}"
# value = "${metal_device.dashboard.access_public_ipv4}"
# value = "${equinix_metal_device.dashboard.access_public_ipv4}"
# type = "A"
# ttl = 3600
#}
Expand All @@ -26,7 +26,7 @@
#
# domain = "openstacksandiego.us"
# name = "dashboard-${random_id.cloud.hex}"
# value = "${metal_device.dashboard.access_public_ipv4}"
# value = "${equinix_metal_device.dashboard.access_public_ipv4}"
# type = "A"
# ttl = 3600
#}
2 changes: 1 addition & 1 deletion OWNERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ This project is governed by [Equinix](https://metal.equinix.com) and benefits fr

Members of the Equinix Github organization will strive to triage issues in a timely manner.

See the [packethost/standards glossary](https://github.com/packethost/standards/blob/master/glossary.md#ownersmd) for more details about this file.
See the [equinix-labs/equinix-labs glossary](https://github.com/equinix-labs/equinix-labs/blob/main/glossary.md#ownersmd) for more details about this file.
4 changes: 2 additions & 2 deletions ProviderNetwork.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# use private IPv4 addresses to save precious Internet resources
data "equinix_metal_precreated_ip_block" "private_ipv4" {

metro = equinix_metal_device.controller.metro
project_id = local.metal_project_id
address_family = 4
public = false
Expand All @@ -21,7 +21,7 @@ resource "equinix_metal_ip_attachment" "controller_private_ipv4" {

# ipv6 is free so let's go crazy
data "equinix_metal_precreated_ip_block" "public_ipv6" {

metro = equinix_metal_device.controller.metro
project_id = local.metal_project_id
address_family = 6
public = true
Expand Down
Loading