Skip to content

Commit

Permalink
Civo: update Ubuntu version due to deprecation of 16.04 (bionic)
Browse files Browse the repository at this point in the history
Signed-off-by: Engin Diri <[email protected]>
  • Loading branch information
Engin Diri authored Jul 7, 2021
1 parent f2ba8da commit 430ea2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ func generateAuth() (string, error) {
return pwdRes, pwdErr
}

const CivoUbuntu2004ID = "d927ad2f-5073-4ed6-b2eb-b8e61aef29a8"

func createHost(provider, name, region, zone, projectID, userData, inletsPort string, vpcID string, subnetID string, pro bool) (*provision.BasicHost, error) {
if provider == "digitalocean" {
return &provision.BasicHost{
Expand Down Expand Up @@ -410,8 +412,8 @@ func createHost(provider, name, region, zone, projectID, userData, inletsPort st
} else if provider == "civo" {
return &provision.BasicHost{
Name: name,
OS: "811a8dfb-8202-49ad-b1ef-1e6320b20497",
Plan: "g2.small",
OS: CivoUbuntu2004ID,
Plan: "g3.small",
Region: region,
UserData: userData,
Additional: map[string]string{},
Expand Down

0 comments on commit 430ea2d

Please sign in to comment.