Smithx10 / nomad-driver-triton

HashiCorp Nomad Triton driver plugin
15 stars 6 forks source link

Handle triton environment variables along with SDC environment variables #15

Closed shaikmanu797 closed 5 years ago

shaikmanu797 commented 5 years ago

https://github.com/Smithx10/nomad-driver-triton/blob/master/plugin/triton.go#L590

keyID := os.Getenv("SDC_KEY_ID") // check for TRITON_KEY_ID too accountName := os.Getenv("SDC_ACCOUNT") // check for TRITON_ACCOUNT too keyMaterial := os.Getenv("SDC_KEY_MATERIAL") // check for TRITON_KEY_MATERIAL too userName := os.Getenv("SDC_USER") // check for TRITON_USER too insecure := false if os.Getenv("SDC_INSECURE") != "" { // check for TRITON_INSECURE too insecure = true }

https://docs.joyent.com/public-cloud/api/triton-cli

shaikmanu797 commented 5 years ago

Also, check for TRITON_URL along with SDC_URL https://github.com/Smithx10/nomad-driver-triton/blob/master/plugin/triton.go#L650