Releases: hashicorp/terraform-provider-nomad
v2.4.0
v2.3.1
v2.3.0
2.3.0 (June 04, 2024)
IMPROVEMENTS:
- New Data Source:
nomad_jwks
to retrieve the public keys used for signing workload identity JWTs (#447) - provider: update Nomad to 1.8.0 (#462)
- provider: update Go to 1.22.3 (#461)
- resource/acl_auth_method: add support for configuring a JWT auth-method (#448)
NOTES:
- This release includes the license file along with the provider binary in the released archive files (#455)
v2.2.0
2.2.0 (March 12, 2024)
IMPROVEMENTS:
- data source/allocations: add support for
namespace
(#434) - provider: update Go to 1.22.1 (#439)
- resource/acl_auth_method: add support for
oidc_disable_userinfo
(#429)
BUG FIXES:
- resource/nomad_acl_auth_method: fixed a bug that caused an unexpected plan difference when the
token_name_format
argument was not defined (#442)
2.1.1 (January 30, 2024)
NOTES:
- deps: update Nomad dependency to ensure all code used is licensed under MPL-2.0
v2.1.1
NOTES:
- deps: update Nomad dependency to ensure all code used is licensed under MPL-2.0
v2.1.0
2.1.0 (December 20th, 2023)
IMPROVEMENTS:
- Target Nomad 1.7.2: updated the nomad client to support Nomad API and jobspec version 1.7.2 (#404)
- provider: update Go to 1.21.5 (#399)
- resource/nomad_acl_auth_method: add support for
token_name_format
(#403) - resource/nomad_csi_volume: changes to
capacity_min
orcapacity_max
may now expand the volume instead of forcing replacement, - resource/nomad_csi_volume: update import key to be
<volume id>@<namespace>
to allow importing volumes from namespaces other thandefault
(#408) - resource/nomad_csi_volume_registration: update import key to be
<volume id>@<namespace>
to allow importing volume registrations from namespaces other thandefault
(#408)
on Nomad version 1.6.3 or later, if the CSI plugin supports it (#382) - resource/nomad_job: read and submit original jobspec on state refresh and job register (#405)
- resource/nomad_job: Add
rerun_if_dead
attribute to allow forcing a job to run again if it's marked asdead
. (#407) - resource/nomad_job: update import key to be
<job id>@<namespace>
to allow importing jobs from namespaces other thandefault
(#408)
BUG FIXES:
- resource/nomad_acl_policy: fixed a bug where the namespace would be incorrectly calculated from a job identity (#396)
- resource/nomad_csi_volume_registration: fixed a bug that cause an import operation to not load all of the volume attributes (#402)
- resource/nomad_job: fixed a bug that could cause jobs to be registered in the incorrect namespace if the
NOMAD_NAMESPACE
environment variable is set (#386) - resource/nomad_job: fixed a bug that caused state changes even in case of errors during apply (#412)
- resource/nomad_volume: fixed a bug that cause an import operation to not load all of the volume attributes (#402)
v2.0.0
2.0.0 (August 28th, 2023)
- New Resource:
nomad_node_pool
manages node pools (#340) - New Resource:
nomad_variable
manages Nomad variables (#325) - New Data Source:
nomad_allocations
to retrieve a list of allocations (#358) - New Data Source:
nomad_node_pool
andnomad_node_pools
to retrieves one or mode node pools (#340) - New Data Source:
nomad_variable
retrieves a Nomad variable (#325)
BACKWARDS INCOMPATIBILITIES:
- provider: Terraform Plugin SDK upgraded to v2.10.1. Terraform versions prior to 0.12 are no longer supported. (#339)
- resource/nomad_job: Switch to HCL2 parsing by default. Jobs that require HCL1 parsing must set
hcl1 = true
. (#343) - resource/nomad_job: Deprecate field
allocation_ids
and do not retrieve the job's allocations by default. Setread_allocation_ids
totrue
if you must retain existing behavior, but consider using thenomad_allocations
data source instead. (#357)
DEPRECATIONS:
- resource/nomad_volume: The
nomad_volume
resource has been deprecated. Use the newnomad_csi_volume_registration
resource instead. (#344) - resource/nomad_external_volume: The
nomad_external_volume
resource has been deprecated. Use the newnomad_csi_volume
resource instead. (#344)
IMPROVEMENTS:
- Target Nomad 1.6.0: updated the nomad client to support Nomad API and jobspec version 1.6.0 (#345)
- provider: add
skip_verify
configuration to skip TLS verification (#319) - provider: update Go to 1.21.0 (#369)
- data source/nomad_namespace: add
node_pool_config
attribute (#355) - resource/nomad_acl_policy: add support for
job_acl
(#314) - resource/nomad_csi_volume: add support to import existing volumes. (#359]
- resource/nomad_csi_volume_registration: add support to import existing volumes. (#359]
- resource/nomad_job: add support to import existing jobs. (#359]
- resource/nomad_namespace: add
node_pool_config
attribute (#355)
BUG FIXES:
- data source/acl_auth_method: fix a bug where the values of
max_token_ttl
anddiscovery_ca_pem
were not persisted to state. (#339) - data source/acl_token: fix a bug where the value of
expiration_ttl
was not persisted to state. (#339) - data source/namespace: use type list to represent capabilities so its values can be indexed with Terraform SDKv2 (#339)
- data source/nomad_volume: fix panic when reading volume (#323)
- resources/nomad_acl_binding_rule: fix a bug where
bind_name
was required even whenbind_type
wasmanagement
. (#330) - resources/nomad_job: fix a bug that prevented deployments for jobs in namespaces other than
default
from being monitored. (#347) - resource/nomad_job: fix a bug that could result in unnecessary plan diffs from irrelevant changes. (#356)
- resource/nomad_volume: fix a bug that caused
capacity_min
andcapacity_max
to be mandatory. (#363) - resource/nomad_volume: fix a bug where
topology_request
was not persisted to state. (#342 - resource/nomad_external_volume: fix a bug where
topology_request
was not persisted to state. (#342
v2.0.0-rc.3
- New Resource:
nomad_node_pool
manages node pools (#340) - New Resource:
nomad_variable
manages Nomad variables (#325) - New Data Source:
nomad_allocations
to retrieve a list of allocations (#358) - New Data Source:
nomad_node_pool
andnomad_node_pools
to retrieves one or mode node pools (#340) - New Data Source:
nomad_variable
retrieves a Nomad variable (#325)
BACKWARDS INCOMPATIBILITIES:
- provider: Terraform Plugin SDK upgraded to v2.10.1. Terraform versions prior to 0.12 are no longer supported. (#339)
- resource/nomad_job: Switch to HCL2 parsing by default. Jobs that require HCL1 parsing must set
hcl1 = true
. (#343) - resource/nomad_job: Deprecate field
allocation_ids
and do not retrieve the job's allocations by default. Setread_allocation_ids
totrue
if you must retain existing behavior, but consider using thenomad_allocations
data source instead. (#357)
DEPRECATIONS:
- resource/nomad_volume: The
nomad_volume
resource has been deprecated. Use the newnomad_csi_volume_registration
resource instead. (#344) - resource/nomad_external_volume: The
nomad_external_volume
resource has been deprecated. Use the newnomad_csi_volume
resource instead. (#344)
IMPROVEMENTS:
- *Target Nomad 1.6.0: updated the nomad client to support Nomad API and jobspec version 1.6.0 (#345)
- provider: add
skip_verify
configuration to skip TLS verification (#319) - provider: update Go to 1.21.0 (#369)
- data source/nomad_namespace: add
node_pool_config
attribute (#355) - resource/nomad_acl_policy: add support for
job_acl
(#314) - resource/nomad_csi_volume and resource/nomad_csi_volume_registration: add support to import existing volumes. (#359]
- resource/nomad_job: add support to import existing jobs. (#359]
- resource/nomad_namespace: add
node_pool_config
attribute (#355)
BUG FIXES:
- data source/acl_auth_method: fix a bug where the values of
max_token_ttl
anddiscovery_ca_pem
were not persisted to state. (#339) - data source/acl_token: fix a bug where the value of
expiration_ttl
was not persisted to state. (#339) - data source/namespace: use type list to represent capabilities so its values can be indexed with Terraform SDKv2 (#339)
- data source/nomad_volume: fix panic when reading volume (#323)
- resources/nomad_acl_binding_rule: fix a bug where
bind_name
was required even whenbind_type
wasmanagement
. (#330) - resources/nomad_job: fix a bug that prevented deployments for jobs in namespaces other than
default
from being monitored. (#347) - resource/nomad_job: fix a bug that could result in unnecessary plan diffs from irrelevant changes. (#356)
- resource/nomad_volume: fix a bug that caused
capacity_min
andcapacity_max
to be mandatory. (#363) - resource/nomad_volume and resource/nomad_external_volume: fix a bug where
topology_request
was not persisted to state. (#342
1.4.20 (April 20, 2023)
IMPROVEMENTS:
- Target Nomad 1.5.2: updated the nomad client to support Nomad API, jobspec, and features of version 1.5.2 (#305)
- New Resource:
nomad_acl_auth_method
manages ACL auth methods in Nomad (#305) - New Resource:
nomad_acl_binding_rule
manages ACL binding rules in Nomad (#305)
1.4.19 (October 20, 2022)
IMPROVEMENTS:
- Target Nomad 1.4.1: updated the nomad client to support Nomad API, jobspec, and fetures of version 1.4.1 (#291)
- New Resource:
nomad_acl_role
manages ACL roles in Nomad (#284) - New Data Source:
nomad_acl_role
andnomad_acl_roles
retrieves and lists ACL roles (#284)
IMPROVEMENTS:
- resources/nomad_acl_token: add support for
role
andexpiration_ttl
(#286) - resources/nomad_namespace: add support for
meta
andcapabilities
(#287) - data source/nomad_namespace: add support for
meta
andcapabilities
(#287)
1.4.18 (August 31, 2022)
- Target Nomad 1.3.4: updated the nomad client to support Nomad API and jobspec version 1.3.4 (#282)
IMPROVEMENTS:
- provider: add
ignore_env_vars
configuration to allow specifying environment variables that should not be loaded by the provider. (#281) - provider: ignore
NOMAD_NAMESPACE
andNOMAD_REGION
when running in Terraform Cloud by default. (#281)
1.4.17 (June 9, 2022)
- Target Nomad 1.3.0: updated the Nomad client to support Nomad API and jobspec version 1.3.0 (#270)
BACKWARDS INCOMPATIBILITIES:
- provider: Don't read the
NOMAD_NAMESPACE
environment variable. This is a potentially breaking change, as it modifies the previous behaviour, but this was never intended to be supported. If you relied on this environment variable make sure you set the namespace in each resource before upgrading. (#271)
IMPROVEMENTS:
- provider: update Go to 1.17 (#270)
- resource/nomad_external_volume: add support for topologies (#270)
- resource/nomad_job: allow passing Consul and Vault token through the job resource (#261)
- resource/nomad_volume: add support for topologies (#270)
BUG FIXES:
- resource/external_volume: fixed a bug where volume mount flags were not set (#266)
- resource/scheduler_config: fixed an issue that caused the value of
memory_oversubscription_enabled
to never be set (#259) - resource/volume: fixed a bug where volume mount flags were not set (#269)
1.4.16 (November 24, 2021)
- Target Nomad 1.2.0: updated the Nomad client to support Nomad API and jobspec version 1.2.0 (#256)
BUG FIXES:
- data source/nomad_plugin: wait for the correct amount of expected controllers (#234)
- data source/nomad_plugin: wait for the correct amount of healthy nodes (#235)
1.4.15 (May 19, 2021)
This is the last release to support Terraform v0.11
- Target Nomad 1.1.0: updated the Nomad client to support Nomad API and jobspec version 1.1.0 (#229)
- New Resource:
nomad_external_volume
creates and registers an external volume with Nomad (#228)
IMPROVEMENTS:
- provider: update Go to 1.16 to add support for
darwin/arm64
(#218) - resource/nomad_job: allow custom timeout values on create and update (#227
BUG FIXES:
- provider: update Nomad API to prevent header access panic (#226)
1.4.14 (April 06, 2021)
- Target Nomad 1.0.4: updated the nomad client to support Nomad API and jobspec version 1.0.4 ([#202](https://github.com/hashicorp/terraform-provider-nomad/...
v2.0.0-rc.2
- New Resource:
nomad_node_pool
manages node pools (#340) - New Resource:
nomad_variable
manages Nomad variables (#325) - New Data Source:
nomad_allocations
to retrieve a list of allocations (#358) - New Data Source:
nomad_node_pool
andnomad_node_pools
to retrieves one or mode node pools (#340) - New Data Source:
nomad_variable
retrieves a Nomad variable (#325)
BACKWARDS INCOMPATIBILITIES:
- provider: Terraform Plugin SDK upgraded to v2.10.1. Terraform versions prior to 0.12 are no longer supported. (#339)
- resource/nomad_job: Switch to HCL2 parsing by default. Jobs that require HCL1 parsing must set
hcl1 = true
. (#343) - resource/nomad_job: Deprecate field
allocation_ids
and do not retrieve the job's allocations by default. Setread_allocation_ids
totrue
if you must retain existing behavior, but consider using thenomad_allocations
data source instead. (#357)
DEPRECATIONS:
- resource/nomad_volume: The
nomad_volume
resource has been deprecated. Use the newnomad_csi_volume_registration
resource instead. (#344) - resource/nomad_external_volume: The
nomad_external_volume
resource has been deprecated. Use the newnomad_csi_volume
resource instead. (#344)
IMPROVEMENTS:
- *Target Nomad 1.6.0: updated the nomad client to support Nomad API and jobspec version 1.6.0 (#345)
- provider: add
skip_verify
configuration to skip TLS verification (#319) - provider: update Go to 1.21.0 (#369)
- data source/nomad_namespace: add
node_pool_config
attribute (#355) - resource/nomad_acl_policy: add support for
job_acl
(#314) - resource/nomad_csi_volume and resource/nomad_csi_volume_registration: add support to import existing volumes. (#359]
- resource/nomad_job: add support to import existing jobs. (#359]
- resource/nomad_namespace: add
node_pool_config
attribute (#355)
BUG FIXES:
- data source/acl_auth_method: fix a bug where the values of
max_token_ttl
anddiscovery_ca_pem
were not persisted to state. (#339) - data source/acl_token: fix a bug where the value of
expiration_ttl
was not persisted to state. (#339) - data source/namespace: use type list to represent capabilities so its values can be indexed with Terraform SDKv2 (#339)
- data source/nomad_volume: fix panic when reading volume (#323)
- resources/nomad_acl_binding_rule: fix a bug where
bind_name
was required even whenbind_type
wasmanagement
. (#330) - resources/nomad_job: fix a bug that prevented deployments for jobs in namespaces other than
default
from being monitored. (#347) - resource/nomad_job: fix a bug that could result in unnecessary plan diffs from irrelevant changes. (#356)
- resource/nomad_volume: fix a bug that caused
capacity_min
andcapacity_max
to be mandatory. (#363) - resource/nomad_volume and resource/nomad_external_volume: fix a bug where
topology_request
was not persisted to state. (#342
1.4.20 (April 20, 2023)
IMPROVEMENTS:
- Target Nomad 1.5.2: updated the nomad client to support Nomad API, jobspec, and features of version 1.5.2 (#305)
- New Resource:
nomad_acl_auth_method
manages ACL auth methods in Nomad (#305) - New Resource:
nomad_acl_binding_rule
manages ACL binding rules in Nomad (#305)
1.4.19 (October 20, 2022)
IMPROVEMENTS:
- Target Nomad 1.4.1: updated the nomad client to support Nomad API, jobspec, and fetures of version 1.4.1 (#291)
- New Resource:
nomad_acl_role
manages ACL roles in Nomad (#284) - New Data Source:
nomad_acl_role
andnomad_acl_roles
retrieves and lists ACL roles (#284)
IMPROVEMENTS:
- resources/nomad_acl_token: add support for
role
andexpiration_ttl
(#286) - resources/nomad_namespace: add support for
meta
andcapabilities
(#287) - data source/nomad_namespace: add support for
meta
andcapabilities
(#287)
1.4.18 (August 31, 2022)
- Target Nomad 1.3.4: updated the nomad client to support Nomad API and jobspec version 1.3.4 (#282)
IMPROVEMENTS:
- provider: add
ignore_env_vars
configuration to allow specifying environment variables that should not be loaded by the provider. (#281) - provider: ignore
NOMAD_NAMESPACE
andNOMAD_REGION
when running in Terraform Cloud by default. (#281)
1.4.17 (June 9, 2022)
- Target Nomad 1.3.0: updated the Nomad client to support Nomad API and jobspec version 1.3.0 (#270)
BACKWARDS INCOMPATIBILITIES:
- provider: Don't read the
NOMAD_NAMESPACE
environment variable. This is a potentially breaking change, as it modifies the previous behaviour, but this was never intended to be supported. If you relied on this environment variable make sure you set the namespace in each resource before upgrading. (#271)
IMPROVEMENTS:
- provider: update Go to 1.17 (#270)
- resource/nomad_external_volume: add support for topologies (#270)
- resource/nomad_job: allow passing Consul and Vault token through the job resource (#261)
- resource/nomad_volume: add support for topologies (#270)
BUG FIXES:
- resource/external_volume: fixed a bug where volume mount flags were not set (#266)
- resource/scheduler_config: fixed an issue that caused the value of
memory_oversubscription_enabled
to never be set (#259) - resource/volume: fixed a bug where volume mount flags were not set (#269)
1.4.16 (November 24, 2021)
- Target Nomad 1.2.0: updated the Nomad client to support Nomad API and jobspec version 1.2.0 (#256)
BUG FIXES:
- data source/nomad_plugin: wait for the correct amount of expected controllers (#234)
- data source/nomad_plugin: wait for the correct amount of healthy nodes (#235)
1.4.15 (May 19, 2021)
This is the last release to support Terraform v0.11
- Target Nomad 1.1.0: updated the Nomad client to support Nomad API and jobspec version 1.1.0 (#229)
- New Resource:
nomad_external_volume
creates and registers an external volume with Nomad (#228)
IMPROVEMENTS:
- provider: update Go to 1.16 to add support for
darwin/arm64
(#218) - resource/nomad_job: allow custom timeout values on create and update (#227
BUG FIXES:
- provider: update Nomad API to prevent header access panic (#226)
1.4.14 (April 06, 2021)
- Target Nomad 1.0.4: updated the nomad client to support Nomad API and jobspec version 1.0.4 ([#202](https://github.com/hashicorp/terraform-provider-nomad/...
v2.0.0-rc.1
- New Resource:
nomad_node_pool
manages node pools (#340) - New Resource:
nomad_variable
manages Nomad variables (#325) - New Data Source:
nomad_allocations
to retrieve a list of allocations (#358) - New Data Source:
nomad_node_pool
andnomad_node_pools
to retrieves one or mode node pools (#340) - New Data Source:
nomad_variable
retrieves a Nomad variable (#325)
BACKWARDS INCOMPATIBILITIES:
- provider: Terraform Plugin SDK upgraded to v2.10.1. Terraform versions prior to 0.12 are no longer supported. (#339)
- resource/nomad_job: Switch to HCL2 parsing by default. Jobs that require HCL1 parsing must set
hcl1 = true
. (#343) - resource/nomad_job: Deprecate field
allocation_ids
and do not retrieve the job's allocations by default. Setread_allocation_ids
totrue
if you must retain existing behavior, but consider using thenomad_allocations
data source instead. (#357)
DEPRECATIONS:
- resource/nomad_volume: The
nomad_volume
resource has been deprecated. Use the newnomad_csi_volume_registration
resource instead. (#344) - resource/nomad_external_volume: The
nomad_external_volume
resource has been deprecated. Use the newnomad_csi_volume
resource instead. (#344)
IMPROVEMENTS:
- *Target Nomad 1.6.0: updated the nomad client to support Nomad API and jobspec version 1.6.0 (#345)
- provider: add
skip_verify
configuration to skip TLS verification (#319) - provider: update Go to 1.20.5 (#334)
- data source/nomad_namespace: add
node_pool_config
attribute (#355) - resource/nomad_acl_policy: add support for
job_acl
(#314) - resource/nomad_csi_volume and resource/nomad_csi_volume_registration: add support to import existing volumes. (#359]
- resource/nomad_job: add support to import existing jobs. (#359]
- resource/nomad_namespace: add
node_pool_config
attribute (#355) - resource/nomad_volume and resource/nomad_external_volume: add timeouts for volume creation, registration, deregistration, and deletion (#346)
BUG FIXES:
- data source/acl_auth_method: fix a bug where the values of
max_token_ttl
anddiscovery_ca_pem
were not persisted to state. (#339) - data source/acl_token: fix a bug where the value of
expiration_ttl
was not persisted to state. (#339) - data source/namespace: use type list to represent capabilities so its values can be indexed with Terraform SDKv2 (#339)
- data source/nomad_volume: fix panic when reading volume (#323)
- resources/nomad_acl_binding_rule: fix a bug where
bind_name
was required even whenbind_type
wasmanagement
. (#330) - resources/nomad_job: fix a bug that prevented deployments for jobs in namespaces other than
default
from being monitored. (#347) - resource/nomad_job: fix a bug that could result in unnecessary plan diffs from irrelevant changes. (#356)
- resource/nomad_volume: fix a bug that caused
capacity_min
andcapacity_max
to be mandatory. (#363) - resource/nomad_volume and resource/nomad_external_volume: fix a bug where
topology_request
was not persisted to state. (#342
1.4.20 (April 20, 2023)
IMPROVEMENTS:
- Target Nomad 1.5.2: updated the nomad client to support Nomad API, jobspec, and features of version 1.5.2 (#305)
- New Resource:
nomad_acl_auth_method
manages ACL auth methods in Nomad (#305) - New Resource:
nomad_acl_binding_rule
manages ACL binding rules in Nomad (#305)
1.4.19 (October 20, 2022)
IMPROVEMENTS:
- Target Nomad 1.4.1: updated the nomad client to support Nomad API, jobspec, and fetures of version 1.4.1 (#291)
- New Resource:
nomad_acl_role
manages ACL roles in Nomad (#284) - New Data Source:
nomad_acl_role
andnomad_acl_roles
retrieves and lists ACL roles (#284)
IMPROVEMENTS:
- resources/nomad_acl_token: add support for
role
andexpiration_ttl
(#286) - resources/nomad_namespace: add support for
meta
andcapabilities
(#287) - data source/nomad_namespace: add support for
meta
andcapabilities
(#287)
1.4.18 (August 31, 2022)
- Target Nomad 1.3.4: updated the nomad client to support Nomad API and jobspec version 1.3.4 (#282)
IMPROVEMENTS:
- provider: add
ignore_env_vars
configuration to allow specifying environment variables that should not be loaded by the provider. (#281) - provider: ignore
NOMAD_NAMESPACE
andNOMAD_REGION
when running in Terraform Cloud by default. (#281)
1.4.17 (June 9, 2022)
- Target Nomad 1.3.0: updated the Nomad client to support Nomad API and jobspec version 1.3.0 (#270)
BACKWARDS INCOMPATIBILITIES:
- provider: Don't read the
NOMAD_NAMESPACE
environment variable. This is a potentially breaking change, as it modifies the previous behaviour, but this was never intended to be supported. If you relied on this environment variable make sure you set the namespace in each resource before upgrading. (#271)
IMPROVEMENTS:
- provider: update Go to 1.17 (#270)
- resource/nomad_external_volume: add support for topologies (#270)
- resource/nomad_job: allow passing Consul and Vault token through the job resource (#261)
- resource/nomad_volume: add support for topologies (#270)
BUG FIXES:
- resource/external_volume: fixed a bug where volume mount flags were not set (#266)
- resource/scheduler_config: fixed an issue that caused the value of
memory_oversubscription_enabled
to never be set (#259) - resource/volume: fixed a bug where volume mount flags were not set (#269)
1.4.16 (November 24, 2021)
- Target Nomad 1.2.0: updated the Nomad client to support Nomad API and jobspec version 1.2.0 (#256)
BUG FIXES:
- data source/nomad_plugin: wait for the correct amount of expected controllers (#234)
- data source/nomad_plugin: wait for the correct amount of healthy nodes (#235)
1.4.15 (May 19, 2021)
This is the last release to support Terraform v0.11
- Target Nomad 1.1.0: updated the Nomad client to support Nomad API and jobspec version 1.1.0 (#229)
- New Resource:
nomad_external_volume
creates and registers an external volume with Nomad (#228)
IMPROVEMENTS:
- provider: update Go to 1.16 to add support for
darwin/arm64
(#218) - resource/nomad_job: allow custom timeout values on create and update (#227
BUG FIXES:
- provider: update Nomad API to prevent header access panic ([#226](https://github.com/hashicorp/terraform-provi...