You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/scaleway/scaleway.go
+46-6Lines changed: 46 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ import (
12
12
"encoding/json"
13
13
"flag"
14
14
"fmt"
15
+
"io"
15
16
"io/ioutil"
16
17
"log"
17
18
"net/http"
@@ -30,14 +31,16 @@ var (
30
31
tokenDir=flag.String("token-dir", filepath.Join(os.Getenv("HOME"), "keys"), "directory to read gobuilder-staging.key, gobuilder-master.key and go-scaleway.token from.")
31
32
token=flag.String("token", "", "API token. If empty, the file is read from $(token-dir)/go-scaleway.token. Googlers on the Go team can get the value from http://go/golang-scaleway-token")
32
33
org=flag.String("org", "1f34701d-668b-441b-bf08-0b13544e99de", "Organization ID (default is [email protected]'s account)")
33
-
image=flag.String("image", "e488d5e3-d278-47a7-8f7d-1154e1f61dc9", "Disk image ID; default is the snapshot we made last")
34
+
image=flag.String("image", "13f4c905-3a4b-475a-aaba-a13168e2b6c7", "Disk image ID; default is the snapshot we made last")
35
+
bootscript=flag.String("bootscript", "5c8e4527-d166-4844-b6c6-087d7a6f5fb0", "Bootscript ID; empty means to use the default for the image. But our images don't have a correct default.")
34
36
num=flag.Int("n", 0, "Number of servers to create; if zero, defaults to a value as a function of --staging")
35
37
tags=flag.String("tags", "", "Comma-separated list of tags. The build key tags should be of the form 'buildkey_linux-arm_HEXHEXHEXHEXHEX'. If empty, it's automatic.")
36
38
staging=flag.Bool("staging", false, "If true, deploy staging instances (with staging names and tags) instead of prod.")
37
39
listAll=flag.Bool("list-all", false, "If true, list all (prod, staging, other) current Scaleway servers and stop without making changes.")
38
40
list=flag.Bool("list", false, "If true, list all prod (or staging, if -staging) servers, including missing ones.")
39
41
fixInterval=flag.Duration("fix-interval", 10*time.Minute, "Interval to wait before running again (only applies to daemon mode)")
40
42
daemonMode=flag.Bool("daemon", false, "Run in daemon mode in a loop")
43
+
ipv6=flag.Bool("ipv6", false, "enable IPv6 on scaleway instances")
0 commit comments