diff --git a/.changelog/11572.txt b/.changelog/11572.txt index 1bcf59197..2a33e8821 100644 --- a/.changelog/11572.txt +++ b/.changelog/11572.txt @@ -1,5 +1,5 @@ ```release-note:breaking-change -raft: The default raft protocol version is now 3 so you must follow the [Upgrading to Raft Protocol 3](https://www.nomadproject.io/docs/upgrade#upgrading-to-raft-protocol-3) guide when upgrading an existing cluster to Nomad 1.3.0. Downgrading the raft protocol version is not supported. +raft: The default raft protocol version is now 3 so you must follow the [Upgrading to Raft Protocol 3](https://developer.hashicorp.com/nomad/docs/upgrade#upgrading-to-raft-protocol-3) guide when upgrading an existing cluster to Nomad 1.3.0. Downgrading the raft protocol version is not supported. ``` ```release-note:improvement diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 58cf94143..4605a3d16 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -9,7 +9,7 @@ Hi there, Thank you for opening an issue. Please note that we try to keep the Nomad issue tracker reserved for bug reports and feature requests. For general usage -questions, please see: https://www.nomadproject.io/community +questions, please see: https://developer.hashicorp.com/nomad/community --> diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index dc5abe1dd..70ccf9290 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -9,7 +9,7 @@ Hi there, Thank you for opening an issue. Please note that we try to keep the Nomad issue tracker reserved for bug reports and feature requests. For general usage -questions, please see: https://www.nomadproject.io/community +questions, please see: https://developer.hashicorp.com/nomad/community --> diff --git a/.release/linux/package/etc/nomad.d/nomad.hcl b/.release/linux/package/etc/nomad.d/nomad.hcl index 5a260a760..3abab62ed 100644 --- a/.release/linux/package/etc/nomad.d/nomad.hcl +++ b/.release/linux/package/etc/nomad.d/nomad.hcl @@ -1,7 +1,7 @@ # Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: BUSL-1.1 -# Full configuration options can be found at https://www.nomadproject.io/docs/configuration +# Full configuration options can be found at https://developer.hashicorp.com/nomad/docs/configuration data_dir = "/opt/nomad/data" bind_addr = "0.0.0.0" diff --git a/.release/release-metadata.hcl b/.release/release-metadata.hcl index 0efda9ff2..faed4e632 100644 --- a/.release/release-metadata.hcl +++ b/.release/release-metadata.hcl @@ -2,5 +2,5 @@ # SPDX-License-Identifier: BUSL-1.1 url_license = "https://github.com/hashicorp/nomad/blob/main/LICENSE" -url_project_website = "https://www.nomadproject.io/" +url_project_website = "https://developer.hashicorp.com/nomad/" url_source_repository = "https://github.com/hashicorp/nomad" diff --git a/CHANGELOG-unsupported.md b/CHANGELOG-unsupported.md index 480894e10..188871ad3 100644 --- a/CHANGELOG-unsupported.md +++ b/CHANGELOG-unsupported.md @@ -355,7 +355,7 @@ datacenter requests will need to ensure their Consul agents are configured with of sufficient node and service read permissions. [[GH-8068](https://github.com/hashicorp/nomad/issues/8068)] * connect: The minimum Consul version supported by Nomad's Connect integration is now Consul v1.8.0. [[GH-8068](https://github.com/hashicorp/nomad/issues/8068)] * csi: The client filesystem layout for CSI plugins has been updated to correctly handle the lifecycle of multiple allocations serving the same plugin. Running plugin tasks will not be updated after upgrading the client, but it is recommended to redeploy CSI plugin jobs after upgrading the cluster. [[GH-12078](https://github.com/hashicorp/nomad/issues/12078)] -* raft: The default raft protocol version is now 3 so you must follow the [Upgrading to Raft Protocol 3](https://www.nomadproject.io/docs/upgrade#upgrading-to-raft-protocol-3) guide when upgrading an existing cluster to Nomad 1.3.0. Downgrading the raft protocol version is not supported. [[GH-11572](https://github.com/hashicorp/nomad/issues/11572)] +* raft: The default raft protocol version is now 3 so you must follow the [Upgrading to Raft Protocol 3](https://developer.hashicorp.com/nomad/docs/upgrade#upgrading-to-raft-protocol-3) guide when upgrading an existing cluster to Nomad 1.3.0. Downgrading the raft protocol version is not supported. [[GH-11572](https://github.com/hashicorp/nomad/issues/11572)] SECURITY: @@ -1929,7 +1929,7 @@ IMPROVEMENTS: * core: Optimized streaming RPCs made between Nomad agents [[GH-7044](https://github.com/hashicorp/nomad/issues/7044)] * build: Updated to Go 1.14.1 [[GH-7431](https://github.com/hashicorp/nomad/issues/7431)] * consul: Added support for configuring `enable_tag_override` on service stanzas. [[GH-2057](https://github.com/hashicorp/nomad/issues/2057)] - * client: Updated consul-template library to v0.24.1 - added support for working with consul connect. [Deprecated vault_grace](https://nomadproject.io/guides/upgrade/upgrade-specific/#nomad-0110) [[GH-7170](https://github.com/hashicorp/nomad/pull/7170)] + * client: Updated consul-template library to v0.24.1 - added support for working with consul connect. [Deprecated vault_grace](https://developer.hashicorp.com/nomad/guides/upgrade/upgrade-specific/#nomad-0110) [[GH-7170](https://github.com/hashicorp/nomad/pull/7170)] * driver/exec: Added `no_pivot_root` option for ramdisk use [[GH-7149](https://github.com/hashicorp/nomad/issues/7149)] * jobspec: Added task environment interpolation to `volume_mount` [[GH-7364](https://github.com/hashicorp/nomad/issues/7364)] * jobspec: Added support for a per-task restart policy [[GH-7288](https://github.com/hashicorp/nomad/pull/7288)] @@ -2060,7 +2060,7 @@ FEATURES: * **Nomad Monitor**: New `nomad monitor` command allows remotely following the logs of any Nomad Agent (clients or servers). See - https://nomadproject.io/docs/commands/monitor.html + https://developer.hashicorp.com/nomad/docs/commands/monitor.html * **Docker Container Cleanup**: Nomad will now automatically remove Docker containers for tasks leaked due to Nomad or Docker crashes or bugs. @@ -2274,7 +2274,7 @@ __BACKWARDS INCOMPATIBILITIES:__ * api: The `api` package removed `Config.SetTimeout` and `Config.ConfigureTLS` functions, intended to be used internally only. [[GH-5275](https://github.com/hashicorp/nomad/pull/5275)] - * api: The [job deployments](https://www.nomadproject.io/api/jobs.html#list-job-deployments) endpoint + * api: The [job deployments](https://developer.hashicorp.com/nomad/api/jobs.html#list-job-deployments) endpoint now filters out deployments associated with older instances of the job. This can happen if jobs are purged and recreated with the same id. To get all deployments irrespective of creation time, add `all=true`. The `nomad job deployment`CLI also defaults to doing this filtering. [[GH-5702](https://github.com/hashicorp/nomad/issues/5702)] @@ -2421,7 +2421,7 @@ IMPROVEMENTS: * core: Added advertise address to client node meta data [[GH-4390](https://github.com/hashicorp/nomad/issues/4390)] * core: Added support for specifying node affinities. Affinities allow job operators to specify weighted placement preferences according to different node attributes [[GH-4512](https://github.com/hashicorp/nomad/issues/4512)] * core: Added support for spreading allocations across a specific attribute. Operators can specify spread target percentages across failure domains such as datacenter or rack [[GH-4512](https://github.com/hashicorp/nomad/issues/4512)] - * core: Added preemption support for system jobs. System jobs can now preempt other jobs of lower priority. See [preemption](https://www.nomadproject.io/docs/internals/scheduling/preemption.html) for more details. [[GH-4794](https://github.com/hashicorp/nomad/pull/4794)] + * core: Added preemption support for system jobs. System jobs can now preempt other jobs of lower priority. See [preemption](https://developer.hashicorp.com/nomad/docs/internals/scheduling/preemption.html) for more details. [[GH-4794](https://github.com/hashicorp/nomad/pull/4794)] * acls: Allow support for using globs in namespace definitions [[GH-4982](https://github.com/hashicorp/nomad/pull/4982)] * agent: Support JSON log output [[GH-5173](https://github.com/hashicorp/nomad/issues/5173)] * api: Reduced api package dependencies [[GH-5213](https://github.com/hashicorp/nomad/pull/5213)] @@ -2559,10 +2559,10 @@ IMPROVEMENTS: * core: Added TLS configuration option to prefer server's ciphersuites over clients[[GH-4338](https://github.com/hashicorp/nomad/issues/4338)] * core: Add the option for operators to configure TLS versions and allowed cipher suites. Default is a subset of safe ciphers and TLS 1.2 [[GH-4269](https://github.com/hashicorp/nomad/pull/4269)] - * core: Add a new [progress_deadline](https://www.nomadproject.io/docs/job-specification/update.html#progress_deadline) parameter to + * core: Add a new [progress_deadline](https://developer.hashicorp.com/nomad/docs/job-specification/update.html#progress_deadline) parameter to support rescheduling failed allocations during a deployment. This allows operators to specify a configurable deadline before which a deployment should see healthy allocations [[GH-4259](https://github.com/hashicorp/nomad/issues/4259)] - * core: Add a new [job eval](https://www.nomadproject.io/docs/commands/job/eval.html) CLI and API + * core: Add a new [job eval](https://developer.hashicorp.com/nomad/docs/commands/job/eval.html) CLI and API for forcing an evaluation of a job, given the job ID. The new CLI also includes an option to force reschedule failed allocations [[GH-4274](https://github.com/hashicorp/nomad/issues/4274)] * core: Canary allocations are tagged in Consul to enable using service tags to @@ -2674,13 +2674,13 @@ __BACKWARDS INCOMPATIBILITIES:__ that absolute URLs are not allowed, but it was not enforced. Absolute URLs in HTTP check paths will now fail to validate. [[GH-3685](https://github.com/hashicorp/nomad/issues/3685)] * drain: Draining a node no longer stops all allocations immediately: a new - [migrate stanza](https://www.nomadproject.io/docs/job-specification/migrate.html) + [migrate stanza](https://developer.hashicorp.com/nomad/docs/job-specification/migrate.html) allows jobs to specify how quickly task groups can be drained. A `-force` option can be used to emulate the old drain behavior. * jobspec: The default values for restart policy have changed. Restart policy mode defaults to "fail" and the attempts/time interval values have been changed to enable faster server side rescheduling. See [restart - stanza](https://www.nomadproject.io/docs/job-specification/restart.html) for + stanza](https://developer.hashicorp.com/nomad/docs/job-specification/restart.html) for more information. * jobspec: Removed compatibility code that migrated pre Nomad 0.6.0 Update stanza syntax. All job spec files should be using update stanza fields @@ -2693,8 +2693,8 @@ IMPROVEMENTS: * core: Allow upgrading/downgrading TLS via SIGHUP on both servers and clients [[GH-3492](https://github.com/hashicorp/nomad/issues/3492)] * core: Node events are emitted for events such as node registration and heartbeating [[GH-3945](https://github.com/hashicorp/nomad/issues/3945)] - * core: A set of features (Autopilot) has been added to allow for automatic operator-friendly management of Nomad servers. For more information about Autopilot, see the [Autopilot Guide](https://www.nomadproject.io/guides/cluster/autopilot.html). [[GH-3670](https://github.com/hashicorp/nomad/pull/3670)] - * core: Failed tasks are automatically rescheduled according to user specified criteria. For more information on configuration, see the [Reshedule Stanza](https://www.nomadproject.io/docs/job-specification/reschedule.html) [[GH-3981](https://github.com/hashicorp/nomad/issues/3981)] + * core: A set of features (Autopilot) has been added to allow for automatic operator-friendly management of Nomad servers. For more information about Autopilot, see the [Autopilot Guide](https://developer.hashicorp.com/nomad/guides/cluster/autopilot.html). [[GH-3670](https://github.com/hashicorp/nomad/pull/3670)] + * core: Failed tasks are automatically rescheduled according to user specified criteria. For more information on configuration, see the [Reshedule Stanza](https://developer.hashicorp.com/nomad/docs/job-specification/reschedule.html) [[GH-3981](https://github.com/hashicorp/nomad/issues/3981)] * core: Servers can now service client HTTP endpoints [[GH-3892](https://github.com/hashicorp/nomad/issues/3892)] * core: Servers can now retry connecting to Vault to verify tokens without requiring a SIGHUP to do so [[GH-3957](https://github.com/hashicorp/nomad/issues/3957)] * core: Updated yamux library to pick up memory and CPU performance improvements [[GH-3980](https://github.com/hashicorp/nomad/issues/3980)] diff --git a/README.md b/README.md index 13ab70fbb..0fd19a328 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,17 @@ Nomad ===

- + HashiCorp Nomad logo

-Nomad is a simple and flexible workload orchestrator to deploy and manage containers ([docker](https://www.nomadproject.io/docs/drivers/docker.html), [podman](https://www.nomadproject.io/docs/drivers/podman)), non-containerized applications ([executable](https://www.nomadproject.io/docs/drivers/exec.html), [Java](https://www.nomadproject.io/docs/drivers/java)), and virtual machines ([qemu](https://www.nomadproject.io/docs/drivers/qemu.html)) across on-prem and clouds at scale. +Nomad is a simple and flexible workload orchestrator to deploy and manage containers ([docker](https://developer.hashicorp.com/nomad/docs/drivers/docker), [podman](https://developer.hashicorp.com/nomad/plugins/drivers/podman)), non-containerized applications ([executable](https://developer.hashicorp.com/nomad/docs/drivers/exec), [Java](https://developer.hashicorp.com/nomad/docs/drivers/java)), and virtual machines ([qemu](https://developer.hashicorp.com/nomad/docs/drivers/qemu)) across on-prem and clouds at scale. -Nomad is supported on Linux, Windows, and macOS. A commercial version of Nomad, [Nomad Enterprise](https://www.nomadproject.io/docs/enterprise), is also available. +Nomad is supported on Linux, Windows, and macOS. A commercial version of Nomad, [Nomad Enterprise](https://developer.hashicorp.com/nomad/docs/enterprise), is also available. -* Website: https://nomadproject.io -* Tutorials: [HashiCorp Learn](https://learn.hashicorp.com/nomad) +* Website: https://developer.hashicorp.com/nomad +* Tutorials: [HashiCorp Developer](https://developer.hashicorp.com/nomad/tutorials) * Forum: [Discuss](https://discuss.hashicorp.com/c/nomad) Nomad provides several key features: @@ -35,18 +35,18 @@ Quick Start --- #### Testing -See [Learn: Getting Started](https://learn.hashicorp.com/collections/nomad/get-started) for instructions on setting up a local Nomad cluster for non-production use. +See [Developer: Getting Started](https://developer.hashicorp.com/nomad/tutorials/get-started) for instructions on setting up a local Nomad cluster for non-production use. Optionally, find Terraform manifests for bringing up a development Nomad cluster on a public cloud in the [`terraform`](terraform/) directory. #### Production -See [Learn: Nomad Reference Architecture](https://developer.hashicorp.com/nomad/tutorials/enterprise/production-reference-architecture-vm-with-consul) for recommended practices and a reference architecture for production deployments. +See [Developer: Nomad Reference Architecture](https://developer.hashicorp.com/nomad/tutorials/enterprise/production-reference-architecture-vm-with-consul) for recommended practices and a reference architecture for production deployments. Documentation --- -Full, comprehensive documentation is available on the Nomad website: https://www.nomadproject.io/docs +Full, comprehensive documentation is available on the Nomad website: https://developer.hashicorp.com/nomad/docs -Guides are available on [HashiCorp Learn](https://learn.hashicorp.com/nomad). +Guides are available on [HashiCorp Developer](https://developer.hashicorp.com/nomad/tutorials). Roadmap --- diff --git a/client/allocrunner/taskrunner/envoy_bootstrap_hook.go b/client/allocrunner/taskrunner/envoy_bootstrap_hook.go index 382eb3e9d..10fc14601 100644 --- a/client/allocrunner/taskrunner/envoy_bootstrap_hook.go +++ b/client/allocrunner/taskrunner/envoy_bootstrap_hook.go @@ -379,7 +379,7 @@ func (h *envoyBootstrapHook) Prestart(ctx context.Context, req *ifs.TaskPrestart // Wrap the last error from Consul and set that as our status. _, recoverable := cmdErr.(*exec.ExitError) return structs.NewRecoverableError( - fmt.Errorf("%w: %v; see: ", + fmt.Errorf("%w: %v; see: ", errEnvoyBootstrapError, cmdErr, ), diff --git a/command/acl_binding_rule.go b/command/acl_binding_rule.go index 52a62b446..5419352cc 100644 --- a/command/acl_binding_rule.go +++ b/command/acl_binding_rule.go @@ -26,7 +26,7 @@ Usage: nomad acl binding-rule [options] [args] This command groups subcommands for interacting with ACL binding rules. Nomad's ACL system can be used to control access to data and APIs. For a full - guide see: https://www.nomadproject.io/guides/acl.html + guide see: https://developer.hashicorp.com/nomad/tutorials/access-control Create an ACL binding rule: diff --git a/command/acl_policy.go b/command/acl_policy.go index 122afbb9e..ca94a8048 100644 --- a/command/acl_policy.go +++ b/command/acl_policy.go @@ -20,7 +20,7 @@ Usage: nomad acl policy [options] [args] This command groups subcommands for interacting with ACL policies. Nomad's ACL system can be used to control access to data and APIs. ACL policies allow a set of capabilities or actions to be granted or allowlisted. For a full guide - see: https://www.nomadproject.io/guides/acl.html + see: https://developer.hashicorp.com/nomad/tutorials/access-control Create an ACL policy: diff --git a/command/acl_role.go b/command/acl_role.go index 20cdcf5d4..5eb3d0e28 100644 --- a/command/acl_role.go +++ b/command/acl_role.go @@ -28,7 +28,7 @@ Usage: nomad acl role [options] [args] This command groups subcommands for interacting with ACL roles. Nomad's ACL system can be used to control access to data and APIs. ACL roles are associated with one or more ACL policies which grant specific capabilities. - For a full guide see: https://www.nomadproject.io/guides/acl.html + For a full guide see: https://developer.hashicorp.com/nomad/tutorials/access-control Create an ACL role: diff --git a/command/acl_token.go b/command/acl_token.go index b5248986b..01b3dc5fd 100644 --- a/command/acl_token.go +++ b/command/acl_token.go @@ -20,7 +20,7 @@ Usage: nomad acl token [options] [args] This command groups subcommands for interacting with ACL tokens. Nomad's ACL system can be used to control access to data and APIs. ACL tokens are associated with one or more ACL policies which grant specific capabilities. - For a full guide see: https://www.nomadproject.io/guides/acl.html + For a full guide see: https://developer.hashicorp.com/nomad/tutorials/access-control Create an ACL token: diff --git a/command/agent/agent.go b/command/agent/agent.go index 5ca07f31a..d65330eba 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -693,7 +693,7 @@ func (a *Agent) finalizeClientConfig(c *clientconfig.Config) error { if len(invalidConsulKeys) > 0 { a.logger.Warn("invalid consul keys", "keys", strings.Join(invalidConsulKeys, ",")) a.logger.Warn(`Nomad client ignores consul related configuration in client options. - Please refer to the guide https://www.nomadproject.io/docs/agent/configuration/consul.html + Please refer to the guide https://developer.hashicorp.com/nomad/docs/configuration/consul to configure Nomad to work with Consul.`) } diff --git a/command/agent/host/host.go b/command/agent/host/host.go index c30a818b8..edd9b6d31 100644 --- a/command/agent/host/host.go +++ b/command/agent/host/host.go @@ -93,7 +93,7 @@ func environment() map[string]string { // DefaultEnvDenyList is the default set of environment variables that are // filtered when passing the environment variables of the host to the task. // -// Update https://www.nomadproject.io/docs/configuration/client#env-denylist +// Update https://developer.hashicorp.com/nomad/docs/configuration/client#env-denylist // whenever this is changed. var DefaultEnvDenyList = []string{ "CONSUL_TOKEN", diff --git a/command/agent/stub_asset.go b/command/agent/stub_asset.go index cd31866cf..45e603128 100644 --- a/command/agent/stub_asset.go +++ b/command/agent/stub_asset.go @@ -16,7 +16,7 @@ func init() {

Nomad UI is not available in this binary. To get Nomad UI do one of the following:

diff --git a/command/asset/connect.nomad.hcl b/command/asset/connect.nomad.hcl index cca46cb01..d5d6e4e05 100644 --- a/command/asset/connect.nomad.hcl +++ b/command/asset/connect.nomad.hcl @@ -9,7 +9,7 @@ # For more information and examples on the "job" block, please see # the online documentation at: # -# https://www.nomadproject.io/docs/job-specification/job.html +# https://developer.hashicorp.com/nomad/docs/job-specification/job.html # job "countdash" { # The "region" parameter specifies the region in which to execute the job. If @@ -28,7 +28,7 @@ job "countdash" { # # For more information, please see the online documentation at: # - # https://www.nomadproject.io/docs/jobspec/schedulers.html + # https://developer.hashicorp.com/nomad/docs/jobspec/schedulers.html # type = "service" @@ -39,7 +39,7 @@ job "countdash" { # For more information and examples on the "constraint" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/constraint.html + # https://developer.hashicorp.com/nomad/docs/job-specification/constraint.html # # constraint { # attribute = "${attr.kernel.name}" @@ -56,7 +56,7 @@ job "countdash" { # For more information and examples on the "update" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/update.html + # https://developer.hashicorp.com/nomad/docs/job-specification/update.html # update { # The "max_parallel" parameter specifies the maximum number of updates to @@ -106,7 +106,7 @@ job "countdash" { # For more information on the "migrate" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/migrate.html + # https://developer.hashicorp.com/nomad/docs/job-specification/migrate.html # migrate { # Specifies the number of task groups that can be migrated at the same @@ -135,7 +135,7 @@ job "countdash" { # For more information and examples on the "group" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/group.html + # https://developer.hashicorp.com/nomad/docs/job-specification/group.html # group "api" { # The "count" parameter specifies the number of the task groups that should @@ -149,7 +149,7 @@ job "countdash" { # For more information and examples on the "restart" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/restart.html + # https://developer.hashicorp.com/nomad/docs/job-specification/restart.html # restart { # The number of attempts to run the job within the specified interval. @@ -175,7 +175,7 @@ job "countdash" { # For more information and examples on the "ephemeral_disk" block, please # see the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/ephemeral_disk.html + # https://developer.hashicorp.com/nomad/docs/job-specification/ephemeral_disk.html # ephemeral_disk { # When sticky is true and the task group is updated, the scheduler @@ -199,7 +199,7 @@ job "countdash" { # For more information and examples on the "affinity" block, please # see the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/affinity.html + # https://developer.hashicorp.com/nomad/docs/job-specification/affinity.html # # affinity { # # attribute specifies the name of a node attribute or metadata @@ -222,7 +222,7 @@ job "countdash" { # For more information and examples on the "spread" block, please # see the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/spread.html + # https://developer.hashicorp.com/nomad/docs/job-specification/spread.html # # spread { # # attribute specifies the name of a node attribute or metadata @@ -302,7 +302,7 @@ job "countdash" { # For more information and examples on the "task" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/task.html + # https://developer.hashicorp.com/nomad/docs/job-specification/task.html # task "web" { # The "driver" parameter specifies the task driver that should be used to @@ -331,7 +331,7 @@ job "countdash" { # For more information and examples on the "artifact" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/artifact.html + # https://developer.hashicorp.com/nomad/docs/job-specification/artifact.html # # artifact { # source = "http://foo.com/artifact.tar.gz" @@ -349,7 +349,7 @@ job "countdash" { # For more information and examples on the "logs" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/logs.html + # https://developer.hashicorp.com/nomad/docs/job-specification/logs.html # # logs { # max_files = 10 @@ -372,7 +372,7 @@ job "countdash" { # For more information and examples on the "resources" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/resources.html + # https://developer.hashicorp.com/nomad/docs/job-specification/resources.html # resources { cpu = 500 # 500 MHz diff --git a/command/asset/example.nomad.hcl b/command/asset/example.nomad.hcl index 3403321ec..7eb54591e 100644 --- a/command/asset/example.nomad.hcl +++ b/command/asset/example.nomad.hcl @@ -9,7 +9,7 @@ # For more information and examples on the "job" block, please see # the online documentation at: # -# https://www.nomadproject.io/docs/job-specification/job +# https://developer.hashicorp.com/nomad/docs/job-specification/job # job "example" { # The "region" parameter specifies the region in which to execute the job. @@ -28,7 +28,7 @@ job "example" { # # For more information, please see the online documentation at: # - # https://www.nomadproject.io/docs/schedulers + # https://developer.hashicorp.com/nomad/docs/schedulers # type = "service" @@ -39,7 +39,7 @@ job "example" { # For more information and examples on the "constraint" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/constraint + # https://developer.hashicorp.com/nomad/docs/job-specification/constraint # # constraint { # attribute = "${attr.kernel.name}" @@ -56,7 +56,7 @@ job "example" { # For more information and examples on the "update" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/update + # https://developer.hashicorp.com/nomad/docs/job-specification/update # update { # The "max_parallel" parameter specifies the maximum number of updates to @@ -106,7 +106,7 @@ job "example" { # For more information on the "migrate" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/migrate + # https://developer.hashicorp.com/nomad/docs/job-specification/migrate # migrate { # Specifies the number of task groups that can be migrated at the same @@ -135,7 +135,7 @@ job "example" { # For more information and examples on the "group" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/group + # https://developer.hashicorp.com/nomad/docs/job-specification/group # group "cache" { # The "count" parameter specifies the number of the task groups that should @@ -149,7 +149,7 @@ job "example" { # For more information and examples on the "network" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/network + # https://developer.hashicorp.com/nomad/docs/job-specification/network # network { port "db" { @@ -165,7 +165,7 @@ job "example" { # For more information and examples on the "service" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/service + # https://developer.hashicorp.com/nomad/docs/job-specification/service # service { name = "redis-cache" @@ -193,7 +193,7 @@ job "example" { # For more information and examples on the "restart" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/restart + # https://developer.hashicorp.com/nomad/docs/job-specification/restart # restart { # The number of attempts to run the job within the specified interval. @@ -219,7 +219,7 @@ job "example" { # For more information and examples on the "ephemeral_disk" block, please # see the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/ephemeral_disk + # https://developer.hashicorp.com/nomad/docs/job-specification/ephemeral_disk # ephemeral_disk { # When sticky is true and the task group is updated, the scheduler @@ -243,7 +243,7 @@ job "example" { # For more information and examples on the "affinity" block, please # see the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/affinity + # https://developer.hashicorp.com/nomad/docs/job-specification/affinity # # affinity { # attribute specifies the name of a node attribute or metadata @@ -268,7 +268,7 @@ job "example" { # For more information and examples on the "spread" block, please # see the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/spread + # https://developer.hashicorp.com/nomad/docs/job-specification/spread # # spread { # attribute specifies the name of a node attribute or metadata @@ -292,7 +292,7 @@ job "example" { # For more information and examples on the "task" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/task + # https://developer.hashicorp.com/nomad/docs/job-specification/task # task "redis" { # The "driver" parameter specifies the task driver that should be used to @@ -322,7 +322,7 @@ job "example" { # For more information and examples on the "artifact" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/artifact + # https://developer.hashicorp.com/nomad/docs/job-specification/artifact # # artifact { # source = "http://foo.com/artifact.tar.gz" @@ -339,7 +339,7 @@ job "example" { # For more information and examples on the "logs" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/logs + # https://developer.hashicorp.com/nomad/docs/job-specification/logs # # logs { # max_files = 10 @@ -362,7 +362,7 @@ job "example" { # For more information and examples on the "resources" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/resources + # https://developer.hashicorp.com/nomad/docs/job-specification/resources # resources { cpu = 500 # 500 MHz @@ -377,7 +377,7 @@ job "example" { # For more information and examples on the "template" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/template + # https://developer.hashicorp.com/nomad/docs/job-specification/template # # template { # data = "---\nkey: {{ key \"service/my-key\" }}" @@ -406,7 +406,7 @@ job "example" { # For more information and examples on the "vault" block, please see # the online documentation at: # - # https://www.nomadproject.io/docs/job-specification/vault + # https://developer.hashicorp.com/nomad/docs/job-specification/vault # # vault { # policies = ["cdn", "frontend"] diff --git a/command/license.go b/command/license.go index aa52a92e8..c26839754 100644 --- a/command/license.go +++ b/command/license.go @@ -24,7 +24,7 @@ Usage: nomad license [options] [args] This command has subcommands for managing the Nomad Enterprise license. For more detailed examples see: -https://www.nomadproject.io/docs/commands/license/ +https://developer.hashicorp.com/nomad/docs/commands/license Retrieve the server's license: diff --git a/command/namespace.go b/command/namespace.go index 90b048f6b..a02c4e23f 100644 --- a/command/namespace.go +++ b/command/namespace.go @@ -22,7 +22,7 @@ Usage: nomad namespace [options] [args] This command groups subcommands for interacting with namespaces. Namespaces allow jobs and their associated objects to be segmented from each other and other users of the cluster. For a full guide on namespaces see: - https://learn.hashicorp.com/tutorials/nomad/namespaces + https://developer.hashicorp.com/nomad/tutorials/manage-clusters/namespaces Create or update a namespace: diff --git a/command/operator_autopilot.go b/command/operator_autopilot.go index e068eebfa..170e493b0 100644 --- a/command/operator_autopilot.go +++ b/command/operator_autopilot.go @@ -30,7 +30,7 @@ Usage: nomad operator autopilot [options] This command groups subcommands for interacting with Nomad's Autopilot subsystem. Autopilot provides automatic, operator-friendly management of Nomad servers. The command can be used to view or modify the current Autopilot - configuration. For a full guide see: https://www.nomadproject.io/guides/autopilot.html + configuration. For a full guide see: https://developer.hashicorp.com/nomad/tutorials/manage-clusters/autopilot Get the current Autopilot configuration: diff --git a/command/operator_debug.go b/command/operator_debug.go index 597ad55e3..c5c87ad3f 100644 --- a/command/operator_debug.go +++ b/command/operator_debug.go @@ -930,7 +930,7 @@ func (c *OperatorDebugCommand) collectAgentHost(path, id string, client *api.Cli if strings.Contains(err.Error(), api.PermissionDeniedErrorContent) { // Drop a hint to help the operator resolve the error - c.Ui.Warn("Agent host retrieval requires agent:read ACL or enable_debug=true. See https://www.nomadproject.io/api-docs/agent#host for more information.") + c.Ui.Warn("Agent host retrieval requires agent:read ACL or enable_debug=true. See https://developer.hashicorp.com/nomad/api-docs/agent#host for more information.") } return // exit on any error } @@ -1024,7 +1024,7 @@ func (c *OperatorDebugCommand) collectPprof(path, id string, client *api.Client, // one permission failure before we bail. // But lets first drop a hint to help the operator resolve the error - c.Ui.Warn("Pprof retrieval requires agent:write ACL or enable_debug=true. See https://www.nomadproject.io/api-docs/agent#agent-runtime-profiles for more information.") + c.Ui.Warn("Pprof retrieval requires agent:write ACL or enable_debug=true. See https://developer.hashicorp.com/nomad/api-docs/agent#agent-runtime-profiles for more information.") return // only exit on 403 } } else { diff --git a/command/quota.go b/command/quota.go index b13d00944..d66ba8511 100644 --- a/command/quota.go +++ b/command/quota.go @@ -23,7 +23,7 @@ Usage: nomad quota [options] [args] quotas allow operators to restrict the aggregate resource usage of namespaces. Users can inspect existing quota specifications, create new quotas, delete and list existing quotas, and more. For a full guide on resource quotas see: - https://www.nomadproject.io/guides/quotas.html + https://developer.hashicorp.com/nomad/tutorials/governance-and-policy/quotas Examine a quota's status: diff --git a/command/sentinel.go b/command/sentinel.go index 1eeb122c0..0064ec932 100644 --- a/command/sentinel.go +++ b/command/sentinel.go @@ -24,7 +24,7 @@ Usage: nomad sentinel [options] [args] Sentinel integration builds on the ACL System. Users can read existing Sentinel policies, create new policies, delete and list existing policies, and more. For a full guide on Sentinel policies see: - https://www.nomadproject.io/guides/sentinel-policy.html + https://developer.hashicorp.com/nomad/tutorials/governance-and-policy/sentinel Read an existing policy: diff --git a/command/var.go b/command/var.go index 5f3b254eb..4c7c3b43c 100644 --- a/command/var.go +++ b/command/var.go @@ -38,7 +38,7 @@ Usage: nomad var [options] [args] Users can create new variables; list, inspect, and delete existing variables, and more. For a full guide on variables see: - https://www.nomadproject.io/docs/concepts/variables + https://developer.hashicorp.com/nomad/docs/concepts/variables Create a variable specification file: diff --git a/contributing/README.md b/contributing/README.md index 981516378..90ddd6441 100644 --- a/contributing/README.md +++ b/contributing/README.md @@ -5,7 +5,7 @@ This directory contains some documentation about the Nomad codebase, aimed at readers who are interested in making code contributions. If you're looking for information on _using_ Nomad, please instead refer -to the [Nomad website](https://nomadproject.io). +to the [Nomad website](https://developer.hashicorp.com/nomad). Developing with Vagrant --- diff --git a/contributing/architecture-eval-lifecycle.md b/contributing/architecture-eval-lifecycle.md index 9156f12e8..a42eb0b70 100644 --- a/contributing/architecture-eval-lifecycle.md +++ b/contributing/architecture-eval-lifecycle.md @@ -338,5 +338,5 @@ sequenceDiagram ``` -[Scheduling Concepts]: https://nomadproject.io/docs/concepts/scheduling/scheduling -[`update`]: https://www.nomadproject.io/docs/job-specification/update +[Scheduling Concepts]: https://developer.hashicorp.com/nomad/docs/concepts/scheduling/scheduling +[`update`]: https://developer.hashicorp.com/nomad/docs/job-specification/update diff --git a/contributing/architecture-eval-states.md b/contributing/architecture-eval-states.md index fdaac339d..badb6844c 100644 --- a/contributing/architecture-eval-states.md +++ b/contributing/architecture-eval-states.md @@ -198,4 +198,4 @@ flowchart LR ``` -[Scheduling in Nomad]: https://www.nomadproject.io/docs/internals/scheduling/scheduling +[Scheduling in Nomad]: https://developer.hashicorp.com/nomad/docs/internals/scheduling/scheduling diff --git a/contributing/architecture-eval-triggers.md b/contributing/architecture-eval-triggers.md index e8d7d7e69..ece5c9aa5 100644 --- a/contributing/architecture-eval-triggers.md +++ b/contributing/architecture-eval-triggers.md @@ -252,8 +252,8 @@ and eventually need to be garbage collected. -[Scheduling in Nomad]: https://www.nomadproject.io/docs/internals/scheduling/scheduling +[Scheduling in Nomad]: https://developer.hashicorp.com/nomad/docs/internals/scheduling/scheduling [`structs.go`]: https://github.com/hashicorp/nomad/blob/v1.4.0-beta.1/nomad/structs/structs.go#L10857-L10875 -[`update`]: https://www.nomadproject.io/docs/job-specification/update -[`restart` attempts]: https://www.nomadproject.io/docs/job-specification/restart -[`max_client_disconnect`]: https://www.nomadproject.io/docs/job-specification/group#max-client-disconnect +[`update`]: https://developer.hashicorp.com/nomad/docs/job-specification/update +[`restart` attempts]: https://developer.hashicorp.com/nomad/docs/job-specification/restart +[`max_client_disconnect`]: https://developer.hashicorp.com/nomad/docs/job-specification/group#max-client-disconnect diff --git a/contributing/checklist-command.md b/contributing/checklist-command.md index a3dd39c4a..23b12f320 100644 --- a/contributing/checklist-command.md +++ b/contributing/checklist-command.md @@ -37,7 +37,7 @@ CLI (command/) -> API Client (api/) -> HTTP API (command/agent) -> RPC (nomad/) ## Docs * [ ] Changelog -* [ ] API docs https://www.nomadproject.io/api -* [ ] CLI docs https://www.nomadproject.io/docs/commands +* [ ] API docs https://developer.hashicorp.com/nomad/api +* [ ] CLI docs https://developer.hashicorp.com/nomad/docs/commands * [ ] If adding new docs see [website README](../website/README.md#editing-navigation-sidebars) -* [ ] Consider if it needs a guide https://www.nomadproject.io/guides/index.html +* [ ] Consider if it needs a guide https://developer.hashicorp.com/nomad/guides/index.html diff --git a/contributing/checklist-jobspec.md b/contributing/checklist-jobspec.md index 8f3faa986..eba2b58d5 100644 --- a/contributing/checklist-jobspec.md +++ b/contributing/checklist-jobspec.md @@ -40,11 +40,11 @@ required in the original `jobspec` package. ## Docs * [ ] Changelog -* [ ] Jobspec entry https://www.nomadproject.io/docs/job-specification/index.html +* [ ] Jobspec entry https://developer.hashicorp.com/nomad/docs/job-specification/index.html * [ ] Jobspec sidebar entry https://github.com/hashicorp/nomad/blob/main/website/data/docs-navigation.js -* [ ] Job JSON API entry https://www.nomadproject.io/api/json-jobs.html -* [ ] Sample Response output in API https://www.nomadproject.io/api/jobs.html -* [ ] Consider if it needs a guide https://www.nomadproject.io/guides/index.html +* [ ] Job JSON API entry https://developer.hashicorp.com/nomad/api/json-jobs.html +* [ ] Sample Response output in API https://developer.hashicorp.com/nomad/api/jobs.html +* [ ] Consider if it needs a guide https://developer.hashicorp.com/nomad/guides/index.html ## JSON Encoding diff --git a/contributing/checklist-rpc-endpoint.md b/contributing/checklist-rpc-endpoint.md index 3f01f0d6d..5fdd4129a 100644 --- a/contributing/checklist-rpc-endpoint.md +++ b/contributing/checklist-rpc-endpoint.md @@ -64,5 +64,5 @@ Prefer adding a new message to changing any existing RPC messages. ## Docs * [ ] Changelog -* [ ] [Metrics](https://www.nomadproject.io/docs/operations/metrics#server-metrics) -* [ ] [API docs](https://www.nomadproject.io/api-docs) for RPCs with an HTTP endpoint, include ACLs, params, and example response body. +* [ ] [Metrics](https://developer.hashicorp.com/nomad/docs/operations/metrics#server-metrics) +* [ ] [API docs](https://developer.hashicorp.com/nomad/api-docs) for RPCs with an HTTP endpoint, include ACLs, params, and example response body. diff --git a/demo/csi/README.md b/demo/csi/README.md index 6e7403f4c..559c344f6 100644 --- a/demo/csi/README.md +++ b/demo/csi/README.md @@ -16,4 +16,4 @@ in this directory. This folder should include: * Add an `Author: @` field at the top so you can be tagged on issues. * A Nomad job file for the plugin. -* A [volume specification](https://www.nomadproject.io/docs/commands/volume/register#volume-specification) file. +* A [volume specification](https://developer.hashicorp.com/nomad/docs/commands/volume/register#volume-specification) file. diff --git a/demo/csi/ceph-csi-plugin/README.md b/demo/csi/ceph-csi-plugin/README.md index b2d08d246..c58d2959b 100644 --- a/demo/csi/ceph-csi-plugin/README.md +++ b/demo/csi/ceph-csi-plugin/README.md @@ -9,7 +9,7 @@ can be modified for the CephFS Driver, as used ## Deployment The Ceph CSI Node task requires that [`privileged = -true`](https://www.nomadproject.io/docs/drivers/docker#privileged) be +true`](https://developer.hashicorp.com/nomad/docs/drivers/docker#privileged) be set. This is not needed for the Controller task. ### Plugin Arguments diff --git a/demo/csi/cinder-csi-plugin/README.md b/demo/csi/cinder-csi-plugin/README.md index f8e8e5b8c..2ce91dde3 100644 --- a/demo/csi/cinder-csi-plugin/README.md +++ b/demo/csi/cinder-csi-plugin/README.md @@ -4,7 +4,7 @@ The containers that run the Node/Controller applications require a cloud-config file be mounted in the containers and the path specified in the containers `args`. -The example plugin job creates a file at `local/cloud.conf` using a [`template`](https://www.nomadproject.io/docs/job-specification/template) block which pulls the necessary credentials from a [Vault kv-v2](https://www.vaultproject.io/docs/secrets/kv/kv-v2) secrets store. However, other methods, such as using the [`artifact`](https://www.nomadproject.io/docs/job-specification/artifact) block, will work as well for delivering the `cloud.conf` file to the CSI drivers. +The example plugin job creates a file at `local/cloud.conf` using a [`template`](https://developer.hashicorp.com/nomad/docs/job-specification/template) block which pulls the necessary credentials from a [Vault kv-v2](https://www.vaultproject.io/docs/secrets/kv/kv-v2) secrets store. However, other methods, such as using the [`artifact`](https://developer.hashicorp.com/nomad/docs/job-specification/artifact) block, will work as well for delivering the `cloud.conf` file to the CSI drivers. ### Example cloud.conf @@ -20,7 +20,7 @@ region = RegionOne ### Docker Privileged Mode -The Cinder CSI Node task requires that [`privileged = true`](https://www.nomadproject.io/docs/drivers/docker#privileged) be set. This is not needed for the Controller task. +The Cinder CSI Node task requires that [`privileged = true`](https://developer.hashicorp.com/nomad/docs/drivers/docker#privileged) be set. This is not needed for the Controller task. ## Container Arguments diff --git a/demo/csi/kadalu-csi/controller.nomad b/demo/csi/kadalu-csi/controller.nomad index ea29bcaf1..3727a16c8 100644 --- a/demo/csi/kadalu-csi/controller.nomad +++ b/demo/csi/kadalu-csi/controller.nomad @@ -113,7 +113,7 @@ job "kadalu-csi-controller" { image = "docker.io/kadalu/kadalu-csi:${var.kadalu_version}" # Nomad client config for docker plugin should have privileged set to 'true' - # refer https://www.nomadproject.io/docs/drivers/docker#privileged + # refer https://developer.hashicorp.com/nomad/docs/drivers/docker#privileged # Need to access '/dev/fuse' for mounting external gluster volume privileged = true diff --git a/demo/tls/README.md b/demo/tls/README.md index 8219fed47..1c23b260b 100644 --- a/demo/tls/README.md +++ b/demo/tls/README.md @@ -3,7 +3,7 @@ Demo TLS Configuration **Do _NOT_ use in production. For testing purposes only.** -See [Securing Nomad](https://www.nomadproject.io/guides/securing-nomad.html) +See [Securing Nomad](https://developer.hashicorp.com/nomad/guides/securing-nomad.html) for a full guide. This directory contains sample TLS certificates and configuration to ease diff --git a/demo/vagrant/README.md b/demo/vagrant/README.md index 2150799a4..e6c6d9d81 100644 --- a/demo/vagrant/README.md +++ b/demo/vagrant/README.md @@ -2,7 +2,7 @@ This Vagrantfile and associated Nomad configuration files are meant to be used along with the -[getting started guide](https://nomadproject.io/intro/getting-started/install.html). +[getting started guide](https://developer.hashicorp.com/nomad/intro/getting-started/install.html). Follow along with the guide, or just start the Vagrant box with: @@ -20,5 +20,5 @@ Once it is finished, you should be able to SSH in and interact with Nomad: agent-info Display status information about the local agent ... -To learn more about starting Nomad see the [official site](https://nomadproject.io). +To learn more about starting Nomad see the [official site](https://developer.hashicorp.com/nomad). diff --git a/e2e/connect/input/ingress-gateway.nomad b/e2e/connect/input/ingress-gateway.nomad index 006ea327c..867bded2c 100644 --- a/e2e/connect/input/ingress-gateway.nomad +++ b/e2e/connect/input/ingress-gateway.nomad @@ -37,7 +37,7 @@ job "ig-bridge-demo" { # } # # Additional options are documented at - # https://www.nomadproject.io/docs/job-specification/gateway#proxy-parameters + # https://developer.hashicorp.com/nomad/docs/job-specification/gateway#proxy-parameters } ingress { @@ -45,7 +45,7 @@ job "ig-bridge-demo" { # given the parameters in the ingress block. # # Additional options are documented at - # https://www.nomadproject.io/docs/job-specification/gateway#ingress-parameters + # https://developer.hashicorp.com/nomad/docs/job-specification/gateway#ingress-parameters listener { port = 8080 protocol = "tcp" diff --git a/e2e/connect/input/terminating-gateway.nomad b/e2e/connect/input/terminating-gateway.nomad index 06e9f73cf..a72ce54dd 100644 --- a/e2e/connect/input/terminating-gateway.nomad +++ b/e2e/connect/input/terminating-gateway.nomad @@ -53,7 +53,7 @@ job "countdash-terminating" { # port = # } # Additional options are documented at - # https://www.nomadproject.io/docs/job-specification/gateway#proxy-parameters + # https://developer.hashicorp.com/nomad/docs/job-specification/gateway#proxy-parameters } terminating { @@ -61,7 +61,7 @@ job "countdash-terminating" { # given the parameters in the terminating block. # # Additional options are documented at - # https://www.nomadproject.io/docs/job-specification/gateway#terminating-parameters + # https://developer.hashicorp.com/nomad/docs/job-specification/gateway#terminating-parameters service { name = "count-api" } diff --git a/e2e/volumes/input/volumes.nomad b/e2e/volumes/input/volumes.nomad index 051b67cc1..05d2fb6d2 100644 --- a/e2e/volumes/input/volumes.nomad +++ b/e2e/volumes/input/volumes.nomad @@ -99,7 +99,7 @@ EOT # /var/nomad/alloc/:alloc_id/:task_name # which is the same as the root directory for exec tasks. # we just need to make sure this doesn't collide with the - # chroot: https://www.nomadproject.io/docs/drivers/exec#chroot + # chroot: https://developer.hashicorp.com/nomad/docs/drivers/exec#chroot destination = "usr/local/bin/myapplication.sh" } diff --git a/helper/useragent/useragent.go b/helper/useragent/useragent.go index e36dff5bd..8fdf72be6 100644 --- a/helper/useragent/useragent.go +++ b/helper/useragent/useragent.go @@ -19,7 +19,7 @@ const ( var ( // projectURL is the project URL. - projectURL = "https://www.nomadproject.io/" + projectURL = "https://developer.hashicorp.com/nomad/" // rt is the runtime - variable for tests. rt = runtime.Version() diff --git a/jobspec2/types.variables.go b/jobspec2/types.variables.go index facd34ca6..2607eeedb 100644 --- a/jobspec2/types.variables.go +++ b/jobspec2/types.variables.go @@ -163,7 +163,7 @@ func (v *Variable) Value() (cty.Value, hcl.Diagnostics) { Severity: hcl.DiagError, Summary: fmt.Sprintf("Unset variable %q", v.Name), Detail: "A used variable must be set or have a default value; see " + - "https://www.nomadproject.io/docs/job-specification/hcl2/variables for " + + "https://developer.hashicorp.com/nomad/docs/job-specification/hcl2/variables for " + "details.", Context: v.Range.Ptr(), }} diff --git a/nomad/plan_apply.go b/nomad/plan_apply.go index ecf4d4ec5..026a80236 100644 --- a/nomad/plan_apply.go +++ b/nomad/plan_apply.go @@ -554,7 +554,7 @@ func evaluatePlanPlacements(pool *EvaluatePool, snap *state.StateSnapshot, plan //is resolved this log line is the only way to //monitor the disagreement between workers and //the plan applier. - logger.Info("plan for node rejected, refer to https://www.nomadproject.io/s/port-plan-failure for more information", + logger.Info("plan for node rejected, refer to https://developer.hashicorp.com/nomad/s/port-plan-failure for more information", "node_id", nodeID, "reason", reason, "eval_id", plan.EvalID, "namespace", plan.Job.Namespace) } diff --git a/nomad/server.go b/nomad/server.go index b558dd3a2..91c11538e 100644 --- a/nomad/server.go +++ b/nomad/server.go @@ -1862,7 +1862,7 @@ func (s *Server) listenWorkerEvents() { if err != nil { s.logger.Debug("failed to encode event to JSON", "error", err) } - s.logger.Warn("unexpected node port collision, refer to https://www.nomadproject.io/s/port-plan-failure for more information", + s.logger.Warn("unexpected node port collision, refer to https://developer.hashicorp.com/nomad/s/port-plan-failure for more information", "node_id", event.Node.ID, "reason", event.Reason, "event", string(eventJson)) loggedAt[event.Node.ID] = time.Now() } @@ -2153,7 +2153,7 @@ const peersInfoContent = ` As of Nomad 0.5.5, the peers.json file is only used for recovery after an outage. The format of this file depends on what the server has configured for its Raft protocol version. Please see the server configuration -page at https://www.nomadproject.io/docs/configuration/server#raft_protocol for more +page at https://developer.hashicorp.com/nomad/docs/configuration/server#raft_protocol for more details about this parameter. For Raft protocol version 2 and earlier, this should be formatted as a JSON array containing the address and port of each Nomad server in the cluster, like @@ -2189,7 +2189,7 @@ directory. The "address" field is the address and port of the server. The "non_voter" field controls whether the server is a non-voter, which is used in some advanced Autopilot configurations, please see -https://www.nomadproject.io/guides/operations/outage.html for more information. If +https://developer.hashicorp.com/nomad/tutorials/manage-clusters/outage-recovery for more information. If "non_voter" is omitted it will default to false, which is typical for most clusters. @@ -2206,5 +2206,5 @@ creating the peers.json file, and that all servers receive the same configuration. Once the peers.json file is successfully ingested and applied, it will be deleted. -Please see https://www.nomadproject.io/guides/outage.html for more information. +Please see https://developer.hashicorp.com/nomad/tutorials/manage-clusters/outage-recovery for more information. ` diff --git a/nomad/state/state_store.go b/nomad/state/state_store.go index 4e403bf73..5a6d9f291 100644 --- a/nomad/state/state_store.go +++ b/nomad/state/state_store.go @@ -61,7 +61,7 @@ const ( // the same node may indicate an underlying issue not detected by Nomad. // The plan applier keeps track of plan rejection history and will mark // nodes as ineligible if they cross a given threshold. - NodeEligibilityEventPlanRejectThreshold = "Node marked as ineligible for scheduling due to multiple plan rejections, refer to https://www.nomadproject.io/s/port-plan-failure for more information" + NodeEligibilityEventPlanRejectThreshold = "Node marked as ineligible for scheduling due to multiple plan rejections, refer to https://developer.hashicorp.com/nomad/s/port-plan-failure for more information" // NodeRegisterEventRegistered is the message used when the node becomes // registered. @@ -406,7 +406,7 @@ func (s *StateStore) UpsertPlanResults(msgType structs.MessageType, index uint64 // Mark nodes as ineligible. for _, nodeID := range results.IneligibleNodes { - s.logger.Warn("marking node as ineligible due to multiple plan rejections, refer to https://www.nomadproject.io/s/port-plan-failure for more information", "node_id", nodeID) + s.logger.Warn("marking node as ineligible due to multiple plan rejections, refer to https://developer.hashicorp.com/nomad/s/port-plan-failure for more information", "node_id", nodeID) nodeEvent := structs.NewNodeEvent(). SetSubsystem(structs.NodeEventSubsystemScheduler). diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index 21fbe9a29..fa2cb0237 100755 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -7,11 +7,11 @@ case "$1" in "agent" ) if [[ -z "${NOMAD_SKIP_DOCKER_IMAGE_WARN}" ]] then - echo "=====================================================================================" - echo "!! Running Nomad clients inside Docker containers is not supported. !!" - echo "!! Refer to https://www.nomadproject.io/s/nomad-in-docker for more information. !!" - echo "!! Set the NOMAD_SKIP_DOCKER_IMAGE_WARN environment variable to skip this warning. !!" - echo "=====================================================================================" + echo "===============================================================================================" + echo "!! Running Nomad clients inside Docker containers is not supported. !!" + echo "!! Refer to https://developer.hashicorp.com/nomad/s/nomad-in-docker for more information. !!" + echo "!! Set the NOMAD_SKIP_DOCKER_IMAGE_WARN environment variable to skip this warning. !!" + echo "===============================================================================================" echo "" sleep 2 fi diff --git a/terraform/README.md b/terraform/README.md index edcd1a61e..2a39e2a7f 100644 --- a/terraform/README.md +++ b/terraform/README.md @@ -73,8 +73,8 @@ for an introduction to Vault. Use the following links to get started with Nomad and its HashiCorp integrations: -* [Getting Started with Nomad](https://www.nomadproject.io/intro/getting-started/jobs.html) -* [Consul integration](https://www.nomadproject.io/docs/service-discovery/index.html) -* [Vault integration](https://www.nomadproject.io/docs/vault-integration/index.html) -* [consul-template integration](https://www.nomadproject.io/docs/job-specification/template.html) +* [Getting Started with Nomad](https://developer.hashicorp.com/nomad/intro/getting-started/jobs.html) +* [Consul integration](https://developer.hashicorp.com/nomad/docs/service-discovery/index.html) +* [Vault integration](https://developer.hashicorp.com/nomad/docs/vault-integration/index.html) +* [consul-template integration](https://developer.hashicorp.com/nomad/docs/job-specification/template.html) diff --git a/terraform/gcp/README.md b/terraform/gcp/README.md index 8f0f808bc..5976cc0b1 100644 --- a/terraform/gcp/README.md +++ b/terraform/gcp/README.md @@ -6,7 +6,7 @@ To get started, you will need a GCP [account](https://cloud.google.com/free). ## Welcome -This tutorial will teach you how to deploy [Nomad](https://www.nomadproject.io/) clusters to the Google Cloud Platform using [Packer](https://www.packer.io/) and [Terraform](https://www.terraform.io/). +This tutorial will teach you how to deploy [Nomad](https://developer.hashicorp.com/nomad/) clusters to the Google Cloud Platform using [Packer](https://www.packer.io/) and [Terraform](https://www.terraform.io/). Includes: @@ -20,7 +20,7 @@ Includes: ### Nomad -Download the latest version of [Nomad](https://www.nomadproject.io/) from HashiCorp's website by copying and pasting this snippet in the terminal: +Download the latest version of [Nomad](https://developer.hashicorp.com/nomad/) from HashiCorp's website by copying and pasting this snippet in the terminal: ```console curl "https://releases.hashicorp.com/nomad/0.12.4/nomad_0.12.4_linux_amd64.zip" -o nomad.zip diff --git a/terraform/shared/config/nomad.service b/terraform/shared/config/nomad.service index 07fcde891..faee9ee21 100644 --- a/terraform/shared/config/nomad.service +++ b/terraform/shared/config/nomad.service @@ -1,6 +1,6 @@ [Unit] Description=Nomad -Documentation=https://nomadproject.io/docs/ +Documentation=https://developer.hashicorp.com/nomad/docs/ Wants=network-online.target After=network-online.target StartLimitIntervalSec=10 diff --git a/ui/.storybook/theme.js b/ui/.storybook/theme.js index 66251cbf4..174b2e775 100644 --- a/ui/.storybook/theme.js +++ b/ui/.storybook/theme.js @@ -37,5 +37,5 @@ export default create({ barBg: blackBis, brandTitle: 'Nomad Storybook', - brandUrl: 'https://www.nomadproject.io/', + brandUrl: 'https://developer.hashicorp.com/nomad/', }); diff --git a/ui/DEVELOPMENT_MODE.md b/ui/DEVELOPMENT_MODE.md index cd55ae896..885e09944 100644 --- a/ui/DEVELOPMENT_MODE.md +++ b/ui/DEVELOPMENT_MODE.md @@ -33,8 +33,8 @@ Serving the Web UI is done with a single command in the `/ui` directory. However, this will use the [Mirage fixtures](http://www.ember-cli-mirage.com/) as a backend. To use your own Nomad cluster as a backend, use the proxy option. - - **Local:** `ember serve --proxy https://demo.nomadproject.io` - - **Vagrant:** `ember serve --watch polling --port 4201 --proxy https://demo.nomadproject.io` + - **Local:** `ember serve --proxy https://demo.example.com` + - **Vagrant:** `ember serve --watch polling --port 4201 --proxy https://demo.example.com` The Web UI will now be accessible from your host machine. diff --git a/ui/app/routes/evaluations/index.js b/ui/app/routes/evaluations/index.js index b6ffe5136..2d6031227 100644 --- a/ui/app/routes/evaluations/index.js +++ b/ui/app/routes/evaluations/index.js @@ -44,7 +44,7 @@ export default class EvaluationsIndexRoute extends Route { }) { /* We use our own DSL for filter expressions. This function takes our query parameters and builds a query that matches our DSL. - Documentation can be found here: https://www.nomadproject.io/api-docs#filtering + Documentation can be found here: https://developer.hashicorp.com/nomad/api-docs#filtering */ const generateFilterExpression = () => { const searchFilter = searchTerm diff --git a/ui/app/templates/components/global-header.hbs b/ui/app/templates/components/global-header.hbs index efb1b7dd1..095ce07a1 100644 --- a/ui/app/templates/components/global-header.hbs +++ b/ui/app/templates/components/global-header.hbs @@ -63,7 +63,7 @@ {{/if}} diff --git a/ui/app/templates/exec.hbs b/ui/app/templates/exec.hbs index a9329f376..8a1e503bf 100644 --- a/ui/app/templates/exec.hbs +++ b/ui/app/templates/exec.hbs @@ -29,7 +29,7 @@ {{this.model.name}} diff --git a/ui/app/utils/styleguide/product-metadata.js b/ui/app/utils/styleguide/product-metadata.js index 5bbcd60f0..12aadcd12 100644 --- a/ui/app/utils/styleguide/product-metadata.js +++ b/ui/app/utils/styleguide/product-metadata.js @@ -8,7 +8,7 @@ export default [ name: 'Nomad', lang: 'golang', desc: 'Nomad is a flexible, enterprise-grade cluster scheduler designed to easily integrate into existing workflows. Nomad can run a diverse workload of micro-service, batch, containerized and non-containerized applications.', - link: 'https://www.nomadproject.io/', + link: 'https://developer.hashicorp.com/nomad/', }, { name: 'Terraform', diff --git a/website/README.md b/website/README.md index 44746b90f..6661977cc 100644 --- a/website/README.md +++ b/website/README.md @@ -1,6 +1,6 @@ # Nomad Documentation Website -This subdirectory contains the content for the [Nomad Website](https://nomadproject.io/). +This subdirectory contains the content for the [Nomad Website](https://developer.hashicorp.com/nomad/).