-
Notifications
You must be signed in to change notification settings - Fork 39
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
Conversation
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
There was a problem hiding this 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.
pkg/drivers/metal/metal.go
Outdated
@@ -22,6 +23,8 @@ import ( | |||
const ( | |||
dockerConfigDir = "/etc/docker" | |||
consumerToken = "24e70949af5ecd17fe8e867b335fc88e7de8bd4ad617c0403d8769a376ddea72" | |||
defaultOS = "ubuntu_20_04" | |||
defaultMetro = "DC" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Introduces metros and updates the defaults to those available to all users.
Fixes #60
Fixes #61