Skip to content

Commit

Permalink
docs: update to remove hcl1 and hcl2.enabled job options.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasell committed Oct 15, 2024
1 parent 0b63ef7 commit be6b36d
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions website/docs/r/job.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,6 @@ nomad job run -output my-job.nomad > my-job.json
Or you can also use the [`/v1/jobs/parse`](https://www.nomadproject.io/api-docs/jobs/#parse-job)
API endpoint.

## HCL2 jobspec

By default, HCL jobs are parsed using the [HCL2 format](https://www.nomadproject.io/docs/job-specification/hcl2).
If your job is not compatible with HCL2 you may set the `hcl1` argument to
`true` to use the previous HCL1 parser.

```hcl
resource "nomad_job" "app" {
jobspec = file("${path.module}/jobspec.hcl")
hcl1 = true
}
```

-> **Note:** HCL1 parsing is only provided for backwards compatibility with
older jobspecs and may not support newer job features and functionalities, so
it should be avoided whenever possible.

### Variables

~> **Warning:** mixing Nomad HCL2 variables and Terraform values may result in
Expand Down Expand Up @@ -283,13 +265,7 @@ The following arguments are supported:
- `json` `(boolean: false)` - Set this to `true` if your jobspec is structured with
JSON instead of the default HCL.

- `hcl1` `(boolean: false)` - Set this to `true` to use the previous HCL1
parser. This option is provided for backwards compatibility only and should
not be used unless absolutely necessary.

- `hcl2` `(block: optional)` - Options for the HCL2 jobspec parser.
- `enabled` `(boolean: false)` - **Deprecated** All HCL jobs are parsed as
HCL2 by default.
- `allow_fs` `(boolean: false)` - Set this to `true` to be able to use
[HCL2 filesystem functions](#filesystem-functions)

Expand Down

0 comments on commit be6b36d

Please sign in to comment.