diff --git a/.changelog/15746.txt b/.changelog/15746.txt new file mode 100644 index 000000000..b19da1647 --- /dev/null +++ b/.changelog/15746.txt @@ -0,0 +1,3 @@ +```release-note:improvement +ui, cli: Adds Job Templates to the "Run Job" Web UI and makes them accessible via new flags on nomad job init +``` diff --git a/command/job_init.go b/command/job_init.go index 94522ae7e..531c9eeea 100644 --- a/command/job_init.go +++ b/command/job_init.go @@ -6,6 +6,7 @@ import ( "os" "strings" + "github.com/hashicorp/nomad/api" "github.com/posener/complete" ) @@ -36,6 +37,14 @@ Init Options: -connect If the connect flag is set, the jobspec includes Consul Connect integration. + + -template + Specifies a predefined template to initialize. Must be a Nomad Variable that + lives at nomad/job-templates/