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

Implement Metros and update the default OS, plan, and location #62

Merged
merged 5 commits into from
May 20, 2021

Conversation

displague
Copy link
Member

@displague displague commented Apr 23, 2021

Introduces metros and updates the defaults to those available to all users.

Fixes #60
Fixes #61

Signed-off-by: Marques Johansson <mjohansson@equinix.com>
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
@displague displague requested a review from jmarhee April 23, 2021 21:39
Copy link
Contributor

@jmarhee jmarhee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just that one note, but otherwise, ran as expected.

@@ -22,6 +23,8 @@ import (
const (
dockerConfigDir = "/etc/docker"
consumerToken = "24e70949af5ecd17fe8e867b335fc88e7de8bd4ad617c0403d8769a376ddea72"
defaultOS = "ubuntu_20_04"
defaultMetro = "DC"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The metro should be lower-cased:

$ docker-machine create sloth --driver metal --metal-api-key=$API_KEY --metal-project-id=$PROJECT --metal-plan "baremetal_0" --metal-metro-code "DC"
Running pre-create checks...
Error with pre-create check: "metal requires a valid metro"

Runs as expected with "dc" from the CLI

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intended to change the default plan from baremetal_0 to c3.small.x86 so that the defaults would accommodate more users (new users).

Signed-off-by: Marques Johansson <mjohansson@equinix.com>
baremetal_0 is an alias for t1.small.x86 which is not available to new
Equinix Metal users. c3.small.x86 is the smallest plan available to all
users.

Signed-off-by: Marques Johansson <mjohansson@equinix.com>
@displague displague changed the title Implement Metros and update the default OS and location Implement Metros and update the default OS, plan, and location Apr 26, 2021
@displague displague requested a review from jmarhee April 26, 2021 12:39
Copy link
Contributor

@jmarhee jmarhee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@displague displague merged commit 7329688 into main May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the default OS Add support for Metros
2 participants