From 4f55df83065c492d98f724b8dc9a1543229782f8 Mon Sep 17 00:00:00 2001 From: "hashicorp-copywrite[bot]" <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Date: Wed, 16 Aug 2023 09:59:07 -0500 Subject: [PATCH] Adding explicit MPL license for sub-package (#18219) This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> --- demo/LICENSE | 365 ++++++++++++++++++ demo/csi/ceph-csi-plugin/ceph-csi-id.tf | 2 +- demo/csi/ceph-csi-plugin/ceph.nomad | 2 +- .../plugin-cephrbd-controller-vagrant.nomad | 2 +- .../plugin-cephrbd-controller.nomad | 2 +- .../ceph-csi-plugin/plugin-cephrbd-node.nomad | 2 +- demo/csi/ceph-csi-plugin/run-ceph.sh | 2 +- demo/csi/ceph-csi-plugin/volume.hcl | 2 +- .../cinder-csi-plugin/cinder-csi-plugin.hcl | 2 +- demo/csi/cinder-csi-plugin/example_volume.hcl | 2 +- demo/csi/digitalocean/main.tf | 2 +- demo/csi/digitalocean/plugin.nomad | 2 +- demo/csi/digitalocean/terraform.tf | 2 +- demo/csi/digitalocean/variables.tf | 2 +- demo/csi/digitalocean/versions.tf | 2 +- demo/csi/digitalocean/volume-job.nomad | 2 +- demo/csi/hostpath/hostpath.hcl | 2 +- demo/csi/hostpath/plugin.nomad | 2 +- demo/csi/hostpath/redis.nomad | 2 +- demo/csi/hostpath/run.sh | 2 +- demo/csi/kadalu-csi/app.nomad | 2 +- demo/csi/kadalu-csi/controller.nomad | 2 +- demo/csi/kadalu-csi/nodeplugin.nomad | 2 +- demo/csi/kadalu-csi/volume.hcl | 2 +- demo/csi/nfs/agent.hcl | 2 +- demo/csi/nfs/jobs/controller-plugin.nomad.hcl | 2 +- demo/csi/nfs/jobs/nfs.nomad.hcl | 2 +- demo/csi/nfs/jobs/node-plugin.nomad.hcl | 2 +- demo/csi/nfs/jobs/web.nomad.hcl | 2 +- demo/csi/nfs/setup.sh | 2 +- demo/csi/nfs/teardown.sh | 2 +- demo/csi/nfs/volume.hcl | 2 +- .../portworx-csi-plugin.hcl | 2 +- .../portworx-csi-plugin/portworx-volume.hcl | 2 +- demo/digitalocean/app/bench.go | 2 +- demo/digitalocean/packer/nomad/default.hcl | 2 +- demo/digitalocean/packer/nomad/upstart.nomad | 2 +- demo/digitalocean/terraform/client/main.tf | 2 +- demo/digitalocean/terraform/main.tf | 2 +- demo/digitalocean/terraform/server/main.tf | 2 +- demo/digitalocean/terraform/statsite/main.tf | 2 +- demo/digitalocean/terraform/terraform.tfvars | 2 +- demo/tls/tls-client.hcl | 2 +- demo/tls/tls-dev.hcl | 2 +- demo/tls/tls-server.hcl | 2 +- demo/vagrant/client1.hcl | 2 +- demo/vagrant/client2.hcl | 2 +- demo/vagrant/server.hcl | 2 +- jobspec/LICENSE | 365 ++++++++++++++++++ jobspec/helper.go | 2 +- jobspec/helper_test.go | 2 +- jobspec/parse.go | 2 +- jobspec/parse_group.go | 2 +- jobspec/parse_job.go | 2 +- jobspec/parse_multiregion.go | 2 +- jobspec/parse_network.go | 2 +- jobspec/parse_service.go | 2 +- jobspec/parse_task.go | 2 +- jobspec/parse_test.go | 2 +- jobspec/test-fixtures/artifacts.hcl | 2 +- jobspec/test-fixtures/bad-artifact.hcl | 2 +- jobspec/test-fixtures/bad-ports.hcl | 2 +- jobspec/test-fixtures/basic.hcl | 2 +- jobspec/test-fixtures/basic_wrong_key.hcl | 2 +- jobspec/test-fixtures/consul-namespace.hcl | 2 +- jobspec/test-fixtures/csi-plugin.hcl | 2 +- jobspec/test-fixtures/default-job.hcl | 2 +- .../distinctHosts-constraint.hcl | 2 +- .../distinctProperty-constraint.hcl | 2 +- .../test-fixtures/incorrect-service-def.hcl | 2 +- .../test-fixtures/job-with-kill-signal.hcl | 2 +- jobspec/test-fixtures/migrate-job.hcl | 2 +- jobspec/test-fixtures/multi-network.hcl | 2 +- jobspec/test-fixtures/multi-resource.hcl | 2 +- jobspec/test-fixtures/multi-vault.hcl | 2 +- jobspec/test-fixtures/multiregion.hcl | 2 +- jobspec/test-fixtures/overlapping-ports.hcl | 2 +- jobspec/test-fixtures/parameterized_job.hcl | 2 +- jobspec/test-fixtures/parse-ports.hcl | 2 +- jobspec/test-fixtures/periodic-cron.hcl | 2 +- jobspec/test-fixtures/regexp-constraint.hcl | 2 +- .../reschedule-job-unlimited.hcl | 2 +- jobspec/test-fixtures/reschedule-job.hcl | 2 +- jobspec/test-fixtures/resources-cores.hcl | 2 +- .../service-check-bad-header-2.hcl | 2 +- .../service-check-bad-header.hcl | 2 +- .../service-check-driver-address.hcl | 2 +- .../service-check-initial-status.hcl | 2 +- .../test-fixtures/service-check-pass-fail.hcl | 2 +- .../test-fixtures/service-check-restart.hcl | 2 +- .../service-enable-tag-override.hcl | 2 +- jobspec/test-fixtures/service-meta.hcl | 2 +- jobspec/test-fixtures/service-provider.hcl | 2 +- .../test-fixtures/service-tagged-address.hcl | 2 +- .../test-fixtures/set-contains-constraint.hcl | 2 +- jobspec/test-fixtures/specify-job.hcl | 2 +- jobspec/test-fixtures/task-nested-config.hcl | 2 +- .../task-scaling-policy-invalid-resource.hcl | 2 +- .../task-scaling-policy-invalid-type.hcl | 2 +- .../task-scaling-policy-missing-name.hcl | 2 +- .../task-scaling-policy-multi-cpu.hcl | 2 +- .../task-scaling-policy-multi-name.hcl | 2 +- jobspec/test-fixtures/task-scaling-policy.hcl | 2 +- .../tg-network-with-hostname.hcl | 2 +- jobspec/test-fixtures/tg-network.hcl | 2 +- .../tg-scaling-policy-invalid-type.hcl | 2 +- .../tg-scaling-policy-minimal.hcl | 2 +- .../tg-scaling-policy-missing-max.hcl | 2 +- .../tg-scaling-policy-multi-policy.hcl | 2 +- .../tg-scaling-policy-with-label.hcl | 2 +- jobspec/test-fixtures/tg-scaling-policy.hcl | 2 +- .../test-fixtures/tg-service-check-expose.hcl | 2 +- jobspec/test-fixtures/tg-service-check.hcl | 2 +- .../tg-service-connect-gateway-ingress.hcl | 2 +- .../tg-service-connect-gateway-mesh.hcl | 2 +- ...tg-service-connect-gateway-terminating.hcl | 2 +- .../tg-service-connect-local-service.hcl | 2 +- .../tg-service-connect-native.hcl | 2 +- .../tg-service-connect-proxy.hcl | 2 +- .../tg-service-connect-resources.hcl | 2 +- ...g-service-connect-sidecar_disablecheck.hcl | 2 +- .../tg-service-connect-sidecar_meta.hcl | 2 +- .../tg-service-connect-sidecar_task-name.hcl | 2 +- .../tg-service-enable-tag-override.hcl | 2 +- .../test-fixtures/tg-service-proxy-expose.hcl | 2 +- jobspec/test-fixtures/vault_inheritance.hcl | 2 +- jobspec/test-fixtures/version-constraint.hcl | 2 +- jobspec/utils.go | 2 +- jobspec/utils_test.go | 2 +- jobspec2/LICENSE | 365 ++++++++++++++++++ jobspec2/addrs/doc.go | 2 +- jobspec2/addrs/input_variable.go | 2 +- jobspec2/addrs/parse_ref.go | 2 +- jobspec2/addrs/referenceable.go | 2 +- jobspec2/functions.go | 2 +- jobspec2/hcl_conversions.go | 2 +- jobspec2/hclutil/blockattrs.go | 2 +- jobspec2/helper_test.go | 2 +- jobspec2/parse.go | 2 +- jobspec2/parse_job.go | 2 +- jobspec2/parse_map.go | 2 +- jobspec2/parse_test.go | 2 +- .../test-fixtures/config-compatibility.hcl | 2 +- jobspec2/test-fixtures/connect-example.hcl | 2 +- .../test-fixtures/identity-compat.nomad.hcl | 2 +- .../restart-render-templates.hcl | 2 +- .../template-err-missing-key.hcl | 2 +- .../test-fixtures/template-wait-config.hcl | 2 +- jobspec2/types.config.go | 2 +- jobspec2/types.variables.go | 2 +- 150 files changed, 1242 insertions(+), 147 deletions(-) create mode 100644 demo/LICENSE create mode 100644 jobspec/LICENSE create mode 100644 jobspec2/LICENSE diff --git a/demo/LICENSE b/demo/LICENSE new file mode 100644 index 000000000..f4f97ee58 --- /dev/null +++ b/demo/LICENSE @@ -0,0 +1,365 @@ +Copyright (c) 2015 HashiCorp, Inc. + +Mozilla Public License, version 2.0 + +1. Definitions + +1.1. "Contributor" + + means each individual or legal entity that creates, contributes to the + creation of, or owns Covered Software. + +1.2. "Contributor Version" + + means the combination of the Contributions of others (if any) used by a + Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + + means Source Code Form to which the initial Contributor has attached the + notice in Exhibit A, the Executable Form of such Source Code Form, and + Modifications of such Source Code Form, in each case including portions + thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + a. that the initial Contributor has attached the notice described in + Exhibit B to the Covered Software; or + + b. that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the terms of + a Secondary License. + +1.6. "Executable Form" + + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + + means a work that combines Covered Software with other material, in a + separate file or files, that is not Covered Software. + +1.8. "License" + + means this document. + +1.9. "Licensable" + + means having the right to grant, to the maximum extent possible, whether + at the time of the initial grant or subsequently, any and all of the + rights conveyed by this License. + +1.10. "Modifications" + + means any of the following: + + a. any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered Software; or + + b. any new file in Source Code Form that contains any Covered Software. + +1.11. "Patent Claims" of a Contributor + + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the License, + by the making, using, selling, offering for sale, having made, import, + or transfer of either its Contributions or its Contributor Version. + +1.12. "Secondary License" + + means either the GNU General Public License, Version 2.0, the GNU Lesser + General Public License, Version 2.1, the GNU Affero General Public + License, Version 3.0, or any later versions of those licenses. + +1.13. "Source Code Form" + + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that controls, is + controlled by, or is under common control with You. For purposes of this + definition, "control" means (a) the power, direct or indirect, to cause + the direction or management of such entity, whether by contract or + otherwise, or (b) ownership of more than fifty percent (50%) of the + outstanding shares or beneficial ownership of such entity. + + +2. License Grants and Conditions + +2.1. Grants + + Each Contributor hereby grants You a world-wide, royalty-free, + non-exclusive license: + + a. under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + + b. under Patent Claims of such Contributor to make, use, sell, offer for + sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + + The licenses granted in Section 2.1 with respect to any Contribution + become effective for each Contribution on the date the Contributor first + distributes such Contribution. + +2.3. Limitations on Grant Scope + + The licenses granted in this Section 2 are the only rights granted under + this License. No additional rights or licenses will be implied from the + distribution or licensing of Covered Software under this License. + Notwithstanding Section 2.1(b) above, no patent license is granted by a + Contributor: + + a. for any code that a Contributor has removed from Covered Software; or + + b. for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + + c. under Patent Claims infringed by Covered Software in the absence of + its Contributions. + + This License does not grant any rights in the trademarks, service marks, + or logos of any Contributor (except as may be necessary to comply with + the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + + No Contributor makes additional grants as a result of Your choice to + distribute the Covered Software under a subsequent version of this + License (see Section 10.2) or under the terms of a Secondary License (if + permitted under the terms of Section 3.3). + +2.5. Representation + + Each Contributor represents that the Contributor believes its + Contributions are its original creation(s) or it has sufficient rights to + grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + + This License is not intended to limit any rights You have under + applicable copyright doctrines of fair use, fair dealing, or other + equivalents. + +2.7. Conditions + + Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in + Section 2.1. + + +3. Responsibilities + +3.1. Distribution of Source Form + + All distribution of Covered Software in Source Code Form, including any + Modifications that You create or to which You contribute, must be under + the terms of this License. You must inform recipients that the Source + Code Form of the Covered Software is governed by the terms of this + License, and how they can obtain a copy of this License. You may not + attempt to alter or restrict the recipients' rights in the Source Code + Form. + +3.2. Distribution of Executable Form + + If You distribute Covered Software in Executable Form then: + + a. such Covered Software must also be made available in Source Code Form, + as described in Section 3.1, and You must inform recipients of the + Executable Form how they can obtain a copy of such Source Code Form by + reasonable means in a timely manner, at a charge no more than the cost + of distribution to the recipient; and + + b. You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter the + recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + + You may create and distribute a Larger Work under terms of Your choice, + provided that You also comply with the requirements of this License for + the Covered Software. If the Larger Work is a combination of Covered + Software with a work governed by one or more Secondary Licenses, and the + Covered Software is not Incompatible With Secondary Licenses, this + License permits You to additionally distribute such Covered Software + under the terms of such Secondary License(s), so that the recipient of + the Larger Work may, at their option, further distribute the Covered + Software under the terms of either this License or such Secondary + License(s). + +3.4. Notices + + You may not remove or alter the substance of any license notices + (including copyright notices, patent notices, disclaimers of warranty, or + limitations of liability) contained within the Source Code Form of the + Covered Software, except that You may alter any license notices to the + extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + + You may choose to offer, and to charge a fee for, warranty, support, + indemnity or liability obligations to one or more recipients of Covered + Software. However, You may do so only on Your own behalf, and not on + behalf of any Contributor. You must make it absolutely clear that any + such warranty, support, indemnity, or liability obligation is offered by + You alone, and You hereby agree to indemnify every Contributor for any + liability incurred by such Contributor as a result of warranty, support, + indemnity or liability terms You offer. You may include additional + disclaimers of warranty and limitations of liability specific to any + jurisdiction. + +4. Inability to Comply Due to Statute or Regulation + + If it is impossible for You to comply with any of the terms of this License + with respect to some or all of the Covered Software due to statute, + judicial order, or regulation then You must: (a) comply with the terms of + this License to the maximum extent possible; and (b) describe the + limitations and the code they affect. Such description must be placed in a + text file included with all distributions of the Covered Software under + this License. Except to the extent prohibited by statute or regulation, + such description must be sufficiently detailed for a recipient of ordinary + skill to be able to understand it. + +5. Termination + +5.1. The rights granted under this License will terminate automatically if You + fail to comply with any of its terms. However, if You become compliant, + then the rights granted under this License from a particular Contributor + are reinstated (a) provisionally, unless and until such Contributor + explicitly and finally terminates Your grants, and (b) on an ongoing + basis, if such Contributor fails to notify You of the non-compliance by + some reasonable means prior to 60 days after You have come back into + compliance. Moreover, Your grants from a particular Contributor are + reinstated on an ongoing basis if such Contributor notifies You of the + non-compliance by some reasonable means, this is the first time You have + received notice of non-compliance with this License from such + Contributor, and You become compliant prior to 30 days after Your receipt + of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent + infringement claim (excluding declaratory judgment actions, + counter-claims, and cross-claims) alleging that a Contributor Version + directly or indirectly infringes any patent, then the rights granted to + You by any and all Contributors for the Covered Software under Section + 2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user + license agreements (excluding distributors and resellers) which have been + validly granted by You or Your distributors under this License prior to + termination shall survive termination. + +6. Disclaimer of Warranty + + Covered Software is provided under this License on an "as is" basis, + without warranty of any kind, either expressed, implied, or statutory, + including, without limitation, warranties that the Covered Software is free + of defects, merchantable, fit for a particular purpose or non-infringing. + The entire risk as to the quality and performance of the Covered Software + is with You. Should any Covered Software prove defective in any respect, + You (not any Contributor) assume the cost of any necessary servicing, + repair, or correction. This disclaimer of warranty constitutes an essential + part of this License. No use of any Covered Software is authorized under + this License except under this disclaimer. + +7. Limitation of Liability + + Under no circumstances and under no legal theory, whether tort (including + negligence), contract, or otherwise, shall any Contributor, or anyone who + distributes Covered Software as permitted above, be liable to You for any + direct, indirect, special, incidental, or consequential damages of any + character including, without limitation, damages for lost profits, loss of + goodwill, work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses, even if such party shall have been + informed of the possibility of such damages. This limitation of liability + shall not apply to liability for death or personal injury resulting from + such party's negligence to the extent applicable law prohibits such + limitation. Some jurisdictions do not allow the exclusion or limitation of + incidental or consequential damages, so this exclusion and limitation may + not apply to You. + +8. Litigation + + Any litigation relating to this License may be brought only in the courts + of a jurisdiction where the defendant maintains its principal place of + business and such litigation shall be governed by laws of that + jurisdiction, without reference to its conflict-of-law provisions. Nothing + in this Section shall prevent a party's ability to bring cross-claims or + counter-claims. + +9. Miscellaneous + + This License represents the complete agreement concerning the subject + matter hereof. If any provision of this License is held to be + unenforceable, such provision shall be reformed only to the extent + necessary to make it enforceable. Any law or regulation which provides that + the language of a contract shall be construed against the drafter shall not + be used to construe this License against a Contributor. + + +10. Versions of the License + +10.1. New Versions + + Mozilla Foundation is the license steward. Except as provided in Section + 10.3, no one other than the license steward has the right to modify or + publish new versions of this License. Each version will be given a + distinguishing version number. + +10.2. Effect of New Versions + + You may distribute the Covered Software under the terms of the version + of the License under which You originally received the Covered Software, + or under the terms of any subsequent version published by the license + steward. + +10.3. Modified Versions + + If you create software not governed by this License, and you want to + create a new license for such software, you may create and use a + modified version of this License if you rename the license and remove + any references to the name of the license steward (except to note that + such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary + Licenses If You choose to distribute Source Code Form that is + Incompatible With Secondary Licenses under the terms of this version of + the License, the notice described in Exhibit B of this License must be + attached. + +Exhibit A - Source Code Form License Notice + + This Source Code Form is subject to the + terms of the Mozilla Public License, v. + 2.0. If a copy of the MPL was not + distributed with this file, You can + obtain one at + http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular file, +then You may include the notice in a location (such as a LICENSE file in a +relevant directory) where a recipient would be likely to look for such a +notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice + + This Source Code Form is "Incompatible + With Secondary Licenses", as defined by + the Mozilla Public License, v. 2.0. + diff --git a/demo/csi/ceph-csi-plugin/ceph-csi-id.tf b/demo/csi/ceph-csi-plugin/ceph-csi-id.tf index 6964d1d8c..2c46a1507 100644 --- a/demo/csi/ceph-csi-plugin/ceph-csi-id.tf +++ b/demo/csi/ceph-csi-plugin/ceph-csi-id.tf @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 locals { # ClusterID: Is a unique ID per cluster that the CSI instance is serving and is restricted to diff --git a/demo/csi/ceph-csi-plugin/ceph.nomad b/demo/csi/ceph-csi-plugin/ceph.nomad index 4b8feae7e..f4e13ed46 100644 --- a/demo/csi/ceph-csi-plugin/ceph.nomad +++ b/demo/csi/ceph-csi-plugin/ceph.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # This job deploys Ceph as a Docker container in "demo mode"; it runs all its # processes in a single task and doesn't will not persist data after a restart diff --git a/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller-vagrant.nomad b/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller-vagrant.nomad index 93b35384a..ebd9f78c8 100644 --- a/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller-vagrant.nomad +++ b/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller-vagrant.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 variable "cluster_id" { type = string diff --git a/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller.nomad b/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller.nomad index 5692632d7..b2fcb0c87 100644 --- a/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller.nomad +++ b/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 variable "cluster_id" { type = string diff --git a/demo/csi/ceph-csi-plugin/plugin-cephrbd-node.nomad b/demo/csi/ceph-csi-plugin/plugin-cephrbd-node.nomad index 0457bb6f7..416b5e894 100644 --- a/demo/csi/ceph-csi-plugin/plugin-cephrbd-node.nomad +++ b/demo/csi/ceph-csi-plugin/plugin-cephrbd-node.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "plugin-cephrbd-node" { datacenters = ["dc1", "dc2"] diff --git a/demo/csi/ceph-csi-plugin/run-ceph.sh b/demo/csi/ceph-csi-plugin/run-ceph.sh index e7a3c19a5..18b3e27b6 100755 --- a/demo/csi/ceph-csi-plugin/run-ceph.sh +++ b/demo/csi/ceph-csi-plugin/run-ceph.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 CONSUL_HTTP_ADDR=${CONSUL_HTTP_ADDR:-http://localhost:8500} diff --git a/demo/csi/ceph-csi-plugin/volume.hcl b/demo/csi/ceph-csi-plugin/volume.hcl index 1686b9c18..c852831b1 100644 --- a/demo/csi/ceph-csi-plugin/volume.hcl +++ b/demo/csi/ceph-csi-plugin/volume.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 id = "testvolume" name = "test1" diff --git a/demo/csi/cinder-csi-plugin/cinder-csi-plugin.hcl b/demo/csi/cinder-csi-plugin/cinder-csi-plugin.hcl index 56cf74d5c..c5e1e7d98 100644 --- a/demo/csi/cinder-csi-plugin/cinder-csi-plugin.hcl +++ b/demo/csi/cinder-csi-plugin/cinder-csi-plugin.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "cinder-csi-plugin" { datacenters = ["dc1"] diff --git a/demo/csi/cinder-csi-plugin/example_volume.hcl b/demo/csi/cinder-csi-plugin/example_volume.hcl index 5deab63d3..0e6fa10fd 100644 --- a/demo/csi/cinder-csi-plugin/example_volume.hcl +++ b/demo/csi/cinder-csi-plugin/example_volume.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 type = "csi" id = "testvol" diff --git a/demo/csi/digitalocean/main.tf b/demo/csi/digitalocean/main.tf index 43b51d24e..529766627 100644 --- a/demo/csi/digitalocean/main.tf +++ b/demo/csi/digitalocean/main.tf @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Terraform configuration for creating a volume in DigitalOcean and # registering it with Nomad diff --git a/demo/csi/digitalocean/plugin.nomad b/demo/csi/digitalocean/plugin.nomad index 70ff7b6b2..d6b1a7f76 100644 --- a/demo/csi/digitalocean/plugin.nomad +++ b/demo/csi/digitalocean/plugin.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "digitalocean" { diff --git a/demo/csi/digitalocean/terraform.tf b/demo/csi/digitalocean/terraform.tf index bb31fe0f7..43e7b589c 100644 --- a/demo/csi/digitalocean/terraform.tf +++ b/demo/csi/digitalocean/terraform.tf @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 provider "digitalocean" { token = var.do_token diff --git a/demo/csi/digitalocean/variables.tf b/demo/csi/digitalocean/variables.tf index 72aa40704..b0d488804 100644 --- a/demo/csi/digitalocean/variables.tf +++ b/demo/csi/digitalocean/variables.tf @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 variable "do_token" { description = "API key" diff --git a/demo/csi/digitalocean/versions.tf b/demo/csi/digitalocean/versions.tf index ccaa325ce..b6a5479c1 100644 --- a/demo/csi/digitalocean/versions.tf +++ b/demo/csi/digitalocean/versions.tf @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 terraform { required_providers { diff --git a/demo/csi/digitalocean/volume-job.nomad b/demo/csi/digitalocean/volume-job.nomad index fc1721c90..bd62f9dd5 100644 --- a/demo/csi/digitalocean/volume-job.nomad +++ b/demo/csi/digitalocean/volume-job.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "example" { datacenters = ["dc1"] diff --git a/demo/csi/hostpath/hostpath.hcl b/demo/csi/hostpath/hostpath.hcl index 8e23c30b4..6d7ba056c 100644 --- a/demo/csi/hostpath/hostpath.hcl +++ b/demo/csi/hostpath/hostpath.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 id = "VOLUME_NAME" name = "VOLUME_NAME" diff --git a/demo/csi/hostpath/plugin.nomad b/demo/csi/hostpath/plugin.nomad index d92bc99ad..3bf322149 100644 --- a/demo/csi/hostpath/plugin.nomad +++ b/demo/csi/hostpath/plugin.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "csi-plugin" { type = "system" diff --git a/demo/csi/hostpath/redis.nomad b/demo/csi/hostpath/redis.nomad index c551065cd..1841cd47f 100644 --- a/demo/csi/hostpath/redis.nomad +++ b/demo/csi/hostpath/redis.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "example" { datacenters = ["dc1"] diff --git a/demo/csi/hostpath/run.sh b/demo/csi/hostpath/run.sh index efaa373e8..525ac0321 100755 --- a/demo/csi/hostpath/run.sh +++ b/demo/csi/hostpath/run.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Run the hostpath plugin and create some volumes, and then claim them. set -e diff --git a/demo/csi/kadalu-csi/app.nomad b/demo/csi/kadalu-csi/app.nomad index f02a28346..5159bd7dc 100644 --- a/demo/csi/kadalu-csi/app.nomad +++ b/demo/csi/kadalu-csi/app.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 variable "cn_network" { default = "dc1" diff --git a/demo/csi/kadalu-csi/controller.nomad b/demo/csi/kadalu-csi/controller.nomad index 35fe501bb..ea29bcaf1 100644 --- a/demo/csi/kadalu-csi/controller.nomad +++ b/demo/csi/kadalu-csi/controller.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 variable "cn_network" { default = "dc1" diff --git a/demo/csi/kadalu-csi/nodeplugin.nomad b/demo/csi/kadalu-csi/nodeplugin.nomad index e26effea3..729d04e31 100644 --- a/demo/csi/kadalu-csi/nodeplugin.nomad +++ b/demo/csi/kadalu-csi/nodeplugin.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Please refer 'controller.nomad' file for variable and job descriptions variable "cn_network" { diff --git a/demo/csi/kadalu-csi/volume.hcl b/demo/csi/kadalu-csi/volume.hcl index 1a943334f..974696857 100644 --- a/demo/csi/kadalu-csi/volume.hcl +++ b/demo/csi/kadalu-csi/volume.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Unfortunately 'variable' interpolation isn't supported in volume spec # so, parameters has to be supplied again diff --git a/demo/csi/nfs/agent.hcl b/demo/csi/nfs/agent.hcl index 01fb4cb72..2245bdc04 100644 --- a/demo/csi/nfs/agent.hcl +++ b/demo/csi/nfs/agent.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 data_dir = "/tmp/nomad/data" diff --git a/demo/csi/nfs/jobs/controller-plugin.nomad.hcl b/demo/csi/nfs/jobs/controller-plugin.nomad.hcl index 758835aee..1bc404211 100644 --- a/demo/csi/nfs/jobs/controller-plugin.nomad.hcl +++ b/demo/csi/nfs/jobs/controller-plugin.nomad.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Controller plugins create and manage CSI volumes. # This one just creates folders within the NFS mount. diff --git a/demo/csi/nfs/jobs/nfs.nomad.hcl b/demo/csi/nfs/jobs/nfs.nomad.hcl index 63095b01d..212652587 100644 --- a/demo/csi/nfs/jobs/nfs.nomad.hcl +++ b/demo/csi/nfs/jobs/nfs.nomad.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # A test NFS server that serves a host volume for persistent state. job "nfs" { diff --git a/demo/csi/nfs/jobs/node-plugin.nomad.hcl b/demo/csi/nfs/jobs/node-plugin.nomad.hcl index 6f17ec1cc..8cffeb8aa 100644 --- a/demo/csi/nfs/jobs/node-plugin.nomad.hcl +++ b/demo/csi/nfs/jobs/node-plugin.nomad.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Node plugins mount the volume on the host to present to other tasks. job "node" { diff --git a/demo/csi/nfs/jobs/web.nomad.hcl b/demo/csi/nfs/jobs/web.nomad.hcl index bf960cef5..163815ba8 100644 --- a/demo/csi/nfs/jobs/web.nomad.hcl +++ b/demo/csi/nfs/jobs/web.nomad.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Serve the contents of our CSI volume with a little web server. job "web" { diff --git a/demo/csi/nfs/setup.sh b/demo/csi/nfs/setup.sh index 9168309d2..c7373cb46 100755 --- a/demo/csi/nfs/setup.sh +++ b/demo/csi/nfs/setup.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Set up all the demo components. diff --git a/demo/csi/nfs/teardown.sh b/demo/csi/nfs/teardown.sh index 4f65388b6..d380cbe20 100755 --- a/demo/csi/nfs/teardown.sh +++ b/demo/csi/nfs/teardown.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Clean up all demo components. diff --git a/demo/csi/nfs/volume.hcl b/demo/csi/nfs/volume.hcl index 0288736a2..5458af5d9 100644 --- a/demo/csi/nfs/volume.hcl +++ b/demo/csi/nfs/volume.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 id = "csi-nfs" name = "csi-nfs" diff --git a/demo/csi/portworx-csi-plugin/portworx-csi-plugin.hcl b/demo/csi/portworx-csi-plugin/portworx-csi-plugin.hcl index e878cfa19..4578f6eb6 100644 --- a/demo/csi/portworx-csi-plugin/portworx-csi-plugin.hcl +++ b/demo/csi/portworx-csi-plugin/portworx-csi-plugin.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "portworx" { type = "service" diff --git a/demo/csi/portworx-csi-plugin/portworx-volume.hcl b/demo/csi/portworx-csi-plugin/portworx-volume.hcl index 58f2af091..94be14c4f 100644 --- a/demo/csi/portworx-csi-plugin/portworx-volume.hcl +++ b/demo/csi/portworx-csi-plugin/portworx-volume.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 id = "px-volume-1" name = "database" diff --git a/demo/digitalocean/app/bench.go b/demo/digitalocean/app/bench.go index b411b205d..5649eaeb4 100644 --- a/demo/digitalocean/app/bench.go +++ b/demo/digitalocean/app/bench.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package main diff --git a/demo/digitalocean/packer/nomad/default.hcl b/demo/digitalocean/packer/nomad/default.hcl index d40d8eca6..da207584c 100644 --- a/demo/digitalocean/packer/nomad/default.hcl +++ b/demo/digitalocean/packer/nomad/default.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 data_dir = "/opt/nomad" diff --git a/demo/digitalocean/packer/nomad/upstart.nomad b/demo/digitalocean/packer/nomad/upstart.nomad index c0e678171..bfb75bff3 100644 --- a/demo/digitalocean/packer/nomad/upstart.nomad +++ b/demo/digitalocean/packer/nomad/upstart.nomad @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 description "Nomad by HashiCorp" diff --git a/demo/digitalocean/terraform/client/main.tf b/demo/digitalocean/terraform/client/main.tf index ac95449eb..dabbfe554 100644 --- a/demo/digitalocean/terraform/client/main.tf +++ b/demo/digitalocean/terraform/client/main.tf @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 variable "count" {} variable "image" {} diff --git a/demo/digitalocean/terraform/main.tf b/demo/digitalocean/terraform/main.tf index 8556ee2a4..25e866a61 100644 --- a/demo/digitalocean/terraform/main.tf +++ b/demo/digitalocean/terraform/main.tf @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 variable "ssh_keys" {} diff --git a/demo/digitalocean/terraform/server/main.tf b/demo/digitalocean/terraform/server/main.tf index 11317dc07..08382daef 100644 --- a/demo/digitalocean/terraform/server/main.tf +++ b/demo/digitalocean/terraform/server/main.tf @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 variable "image" {} variable "region" {} diff --git a/demo/digitalocean/terraform/statsite/main.tf b/demo/digitalocean/terraform/statsite/main.tf index 61b2777a6..ed10e1fe9 100644 --- a/demo/digitalocean/terraform/statsite/main.tf +++ b/demo/digitalocean/terraform/statsite/main.tf @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 variable "size" { default = "1gb" } variable "region" {} diff --git a/demo/digitalocean/terraform/terraform.tfvars b/demo/digitalocean/terraform/terraform.tfvars index 1589db6cb..b2162bb3c 100644 --- a/demo/digitalocean/terraform/terraform.tfvars +++ b/demo/digitalocean/terraform/terraform.tfvars @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # This is a comma-separated list of SSH key ID's or fingerprints # available in your DigitalOcean account. These keys will be granted diff --git a/demo/tls/tls-client.hcl b/demo/tls/tls-client.hcl index 6d6f3eb46..2e3e57630 100644 --- a/demo/tls/tls-client.hcl +++ b/demo/tls/tls-client.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 tls { http = true diff --git a/demo/tls/tls-dev.hcl b/demo/tls/tls-dev.hcl index 1604f116a..2bee41bc3 100644 --- a/demo/tls/tls-dev.hcl +++ b/demo/tls/tls-dev.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 tls { http = true diff --git a/demo/tls/tls-server.hcl b/demo/tls/tls-server.hcl index 27deb1ae3..af682e31b 100644 --- a/demo/tls/tls-server.hcl +++ b/demo/tls/tls-server.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 tls { http = true diff --git a/demo/vagrant/client1.hcl b/demo/vagrant/client1.hcl index e02bdf616..1a5fb411c 100644 --- a/demo/vagrant/client1.hcl +++ b/demo/vagrant/client1.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Increase log verbosity log_level = "DEBUG" diff --git a/demo/vagrant/client2.hcl b/demo/vagrant/client2.hcl index 717e0b25c..a29afdcbb 100644 --- a/demo/vagrant/client2.hcl +++ b/demo/vagrant/client2.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Increase log verbosity log_level = "DEBUG" diff --git a/demo/vagrant/server.hcl b/demo/vagrant/server.hcl index 97f059cb5..17c65356f 100644 --- a/demo/vagrant/server.hcl +++ b/demo/vagrant/server.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 # Increase log verbosity log_level = "DEBUG" diff --git a/jobspec/LICENSE b/jobspec/LICENSE new file mode 100644 index 000000000..f4f97ee58 --- /dev/null +++ b/jobspec/LICENSE @@ -0,0 +1,365 @@ +Copyright (c) 2015 HashiCorp, Inc. + +Mozilla Public License, version 2.0 + +1. Definitions + +1.1. "Contributor" + + means each individual or legal entity that creates, contributes to the + creation of, or owns Covered Software. + +1.2. "Contributor Version" + + means the combination of the Contributions of others (if any) used by a + Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + + means Source Code Form to which the initial Contributor has attached the + notice in Exhibit A, the Executable Form of such Source Code Form, and + Modifications of such Source Code Form, in each case including portions + thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + a. that the initial Contributor has attached the notice described in + Exhibit B to the Covered Software; or + + b. that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the terms of + a Secondary License. + +1.6. "Executable Form" + + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + + means a work that combines Covered Software with other material, in a + separate file or files, that is not Covered Software. + +1.8. "License" + + means this document. + +1.9. "Licensable" + + means having the right to grant, to the maximum extent possible, whether + at the time of the initial grant or subsequently, any and all of the + rights conveyed by this License. + +1.10. "Modifications" + + means any of the following: + + a. any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered Software; or + + b. any new file in Source Code Form that contains any Covered Software. + +1.11. "Patent Claims" of a Contributor + + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the License, + by the making, using, selling, offering for sale, having made, import, + or transfer of either its Contributions or its Contributor Version. + +1.12. "Secondary License" + + means either the GNU General Public License, Version 2.0, the GNU Lesser + General Public License, Version 2.1, the GNU Affero General Public + License, Version 3.0, or any later versions of those licenses. + +1.13. "Source Code Form" + + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that controls, is + controlled by, or is under common control with You. For purposes of this + definition, "control" means (a) the power, direct or indirect, to cause + the direction or management of such entity, whether by contract or + otherwise, or (b) ownership of more than fifty percent (50%) of the + outstanding shares or beneficial ownership of such entity. + + +2. License Grants and Conditions + +2.1. Grants + + Each Contributor hereby grants You a world-wide, royalty-free, + non-exclusive license: + + a. under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + + b. under Patent Claims of such Contributor to make, use, sell, offer for + sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + + The licenses granted in Section 2.1 with respect to any Contribution + become effective for each Contribution on the date the Contributor first + distributes such Contribution. + +2.3. Limitations on Grant Scope + + The licenses granted in this Section 2 are the only rights granted under + this License. No additional rights or licenses will be implied from the + distribution or licensing of Covered Software under this License. + Notwithstanding Section 2.1(b) above, no patent license is granted by a + Contributor: + + a. for any code that a Contributor has removed from Covered Software; or + + b. for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + + c. under Patent Claims infringed by Covered Software in the absence of + its Contributions. + + This License does not grant any rights in the trademarks, service marks, + or logos of any Contributor (except as may be necessary to comply with + the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + + No Contributor makes additional grants as a result of Your choice to + distribute the Covered Software under a subsequent version of this + License (see Section 10.2) or under the terms of a Secondary License (if + permitted under the terms of Section 3.3). + +2.5. Representation + + Each Contributor represents that the Contributor believes its + Contributions are its original creation(s) or it has sufficient rights to + grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + + This License is not intended to limit any rights You have under + applicable copyright doctrines of fair use, fair dealing, or other + equivalents. + +2.7. Conditions + + Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in + Section 2.1. + + +3. Responsibilities + +3.1. Distribution of Source Form + + All distribution of Covered Software in Source Code Form, including any + Modifications that You create or to which You contribute, must be under + the terms of this License. You must inform recipients that the Source + Code Form of the Covered Software is governed by the terms of this + License, and how they can obtain a copy of this License. You may not + attempt to alter or restrict the recipients' rights in the Source Code + Form. + +3.2. Distribution of Executable Form + + If You distribute Covered Software in Executable Form then: + + a. such Covered Software must also be made available in Source Code Form, + as described in Section 3.1, and You must inform recipients of the + Executable Form how they can obtain a copy of such Source Code Form by + reasonable means in a timely manner, at a charge no more than the cost + of distribution to the recipient; and + + b. You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter the + recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + + You may create and distribute a Larger Work under terms of Your choice, + provided that You also comply with the requirements of this License for + the Covered Software. If the Larger Work is a combination of Covered + Software with a work governed by one or more Secondary Licenses, and the + Covered Software is not Incompatible With Secondary Licenses, this + License permits You to additionally distribute such Covered Software + under the terms of such Secondary License(s), so that the recipient of + the Larger Work may, at their option, further distribute the Covered + Software under the terms of either this License or such Secondary + License(s). + +3.4. Notices + + You may not remove or alter the substance of any license notices + (including copyright notices, patent notices, disclaimers of warranty, or + limitations of liability) contained within the Source Code Form of the + Covered Software, except that You may alter any license notices to the + extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + + You may choose to offer, and to charge a fee for, warranty, support, + indemnity or liability obligations to one or more recipients of Covered + Software. However, You may do so only on Your own behalf, and not on + behalf of any Contributor. You must make it absolutely clear that any + such warranty, support, indemnity, or liability obligation is offered by + You alone, and You hereby agree to indemnify every Contributor for any + liability incurred by such Contributor as a result of warranty, support, + indemnity or liability terms You offer. You may include additional + disclaimers of warranty and limitations of liability specific to any + jurisdiction. + +4. Inability to Comply Due to Statute or Regulation + + If it is impossible for You to comply with any of the terms of this License + with respect to some or all of the Covered Software due to statute, + judicial order, or regulation then You must: (a) comply with the terms of + this License to the maximum extent possible; and (b) describe the + limitations and the code they affect. Such description must be placed in a + text file included with all distributions of the Covered Software under + this License. Except to the extent prohibited by statute or regulation, + such description must be sufficiently detailed for a recipient of ordinary + skill to be able to understand it. + +5. Termination + +5.1. The rights granted under this License will terminate automatically if You + fail to comply with any of its terms. However, if You become compliant, + then the rights granted under this License from a particular Contributor + are reinstated (a) provisionally, unless and until such Contributor + explicitly and finally terminates Your grants, and (b) on an ongoing + basis, if such Contributor fails to notify You of the non-compliance by + some reasonable means prior to 60 days after You have come back into + compliance. Moreover, Your grants from a particular Contributor are + reinstated on an ongoing basis if such Contributor notifies You of the + non-compliance by some reasonable means, this is the first time You have + received notice of non-compliance with this License from such + Contributor, and You become compliant prior to 30 days after Your receipt + of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent + infringement claim (excluding declaratory judgment actions, + counter-claims, and cross-claims) alleging that a Contributor Version + directly or indirectly infringes any patent, then the rights granted to + You by any and all Contributors for the Covered Software under Section + 2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user + license agreements (excluding distributors and resellers) which have been + validly granted by You or Your distributors under this License prior to + termination shall survive termination. + +6. Disclaimer of Warranty + + Covered Software is provided under this License on an "as is" basis, + without warranty of any kind, either expressed, implied, or statutory, + including, without limitation, warranties that the Covered Software is free + of defects, merchantable, fit for a particular purpose or non-infringing. + The entire risk as to the quality and performance of the Covered Software + is with You. Should any Covered Software prove defective in any respect, + You (not any Contributor) assume the cost of any necessary servicing, + repair, or correction. This disclaimer of warranty constitutes an essential + part of this License. No use of any Covered Software is authorized under + this License except under this disclaimer. + +7. Limitation of Liability + + Under no circumstances and under no legal theory, whether tort (including + negligence), contract, or otherwise, shall any Contributor, or anyone who + distributes Covered Software as permitted above, be liable to You for any + direct, indirect, special, incidental, or consequential damages of any + character including, without limitation, damages for lost profits, loss of + goodwill, work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses, even if such party shall have been + informed of the possibility of such damages. This limitation of liability + shall not apply to liability for death or personal injury resulting from + such party's negligence to the extent applicable law prohibits such + limitation. Some jurisdictions do not allow the exclusion or limitation of + incidental or consequential damages, so this exclusion and limitation may + not apply to You. + +8. Litigation + + Any litigation relating to this License may be brought only in the courts + of a jurisdiction where the defendant maintains its principal place of + business and such litigation shall be governed by laws of that + jurisdiction, without reference to its conflict-of-law provisions. Nothing + in this Section shall prevent a party's ability to bring cross-claims or + counter-claims. + +9. Miscellaneous + + This License represents the complete agreement concerning the subject + matter hereof. If any provision of this License is held to be + unenforceable, such provision shall be reformed only to the extent + necessary to make it enforceable. Any law or regulation which provides that + the language of a contract shall be construed against the drafter shall not + be used to construe this License against a Contributor. + + +10. Versions of the License + +10.1. New Versions + + Mozilla Foundation is the license steward. Except as provided in Section + 10.3, no one other than the license steward has the right to modify or + publish new versions of this License. Each version will be given a + distinguishing version number. + +10.2. Effect of New Versions + + You may distribute the Covered Software under the terms of the version + of the License under which You originally received the Covered Software, + or under the terms of any subsequent version published by the license + steward. + +10.3. Modified Versions + + If you create software not governed by this License, and you want to + create a new license for such software, you may create and use a + modified version of this License if you rename the license and remove + any references to the name of the license steward (except to note that + such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary + Licenses If You choose to distribute Source Code Form that is + Incompatible With Secondary Licenses under the terms of this version of + the License, the notice described in Exhibit B of this License must be + attached. + +Exhibit A - Source Code Form License Notice + + This Source Code Form is subject to the + terms of the Mozilla Public License, v. + 2.0. If a copy of the MPL was not + distributed with this file, You can + obtain one at + http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular file, +then You may include the notice in a location (such as a LICENSE file in a +relevant directory) where a recipient would be likely to look for such a +notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice + + This Source Code Form is "Incompatible + With Secondary Licenses", as defined by + the Mozilla Public License, v. 2.0. + diff --git a/jobspec/helper.go b/jobspec/helper.go index 0d160af36..f83408abc 100644 --- a/jobspec/helper.go +++ b/jobspec/helper.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec/helper_test.go b/jobspec/helper_test.go index 78a121a32..0cbe0f862 100644 --- a/jobspec/helper_test.go +++ b/jobspec/helper_test.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec/parse.go b/jobspec/parse.go index cf3d1703e..7286b6e33 100644 --- a/jobspec/parse.go +++ b/jobspec/parse.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec/parse_group.go b/jobspec/parse_group.go index 2c6b30b27..94dc3008d 100644 --- a/jobspec/parse_group.go +++ b/jobspec/parse_group.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec/parse_job.go b/jobspec/parse_job.go index fe00499af..46c3dd757 100644 --- a/jobspec/parse_job.go +++ b/jobspec/parse_job.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec/parse_multiregion.go b/jobspec/parse_multiregion.go index b5989583c..fb7154a31 100644 --- a/jobspec/parse_multiregion.go +++ b/jobspec/parse_multiregion.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec/parse_network.go b/jobspec/parse_network.go index c5bfa81cb..bd583661c 100644 --- a/jobspec/parse_network.go +++ b/jobspec/parse_network.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec/parse_service.go b/jobspec/parse_service.go index e12246902..463ca8a97 100644 --- a/jobspec/parse_service.go +++ b/jobspec/parse_service.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec/parse_task.go b/jobspec/parse_task.go index 3cb97626c..5d596738d 100644 --- a/jobspec/parse_task.go +++ b/jobspec/parse_task.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec/parse_test.go b/jobspec/parse_test.go index dab032934..8a7342e41 100644 --- a/jobspec/parse_test.go +++ b/jobspec/parse_test.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec/test-fixtures/artifacts.hcl b/jobspec/test-fixtures/artifacts.hcl index 3539e6ea3..191e1fc37 100644 --- a/jobspec/test-fixtures/artifacts.hcl +++ b/jobspec/test-fixtures/artifacts.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "binstore-storagelocker" { group "binsl" { diff --git a/jobspec/test-fixtures/bad-artifact.hcl b/jobspec/test-fixtures/bad-artifact.hcl index c470e9bab..f62520120 100644 --- a/jobspec/test-fixtures/bad-artifact.hcl +++ b/jobspec/test-fixtures/bad-artifact.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "binstore-storagelocker" { group "binsl" { diff --git a/jobspec/test-fixtures/bad-ports.hcl b/jobspec/test-fixtures/bad-ports.hcl index 4d6acf3a2..9dfe1e30a 100644 --- a/jobspec/test-fixtures/bad-ports.hcl +++ b/jobspec/test-fixtures/bad-ports.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "binstore-storagelocker" { region = "global" diff --git a/jobspec/test-fixtures/basic.hcl b/jobspec/test-fixtures/basic.hcl index 201e432f8..aba8ea342 100644 --- a/jobspec/test-fixtures/basic.hcl +++ b/jobspec/test-fixtures/basic.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "binstore-storagelocker" { region = "fooregion" diff --git a/jobspec/test-fixtures/basic_wrong_key.hcl b/jobspec/test-fixtures/basic_wrong_key.hcl index f8ee8cd99..6150cfde2 100644 --- a/jobspec/test-fixtures/basic_wrong_key.hcl +++ b/jobspec/test-fixtures/basic_wrong_key.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "binstore-storagelocker" { region = "global" diff --git a/jobspec/test-fixtures/consul-namespace.hcl b/jobspec/test-fixtures/consul-namespace.hcl index 5228251fa..4d8a166bd 100644 --- a/jobspec/test-fixtures/consul-namespace.hcl +++ b/jobspec/test-fixtures/consul-namespace.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "consul-namespace" { group "group" { diff --git a/jobspec/test-fixtures/csi-plugin.hcl b/jobspec/test-fixtures/csi-plugin.hcl index 49f9aec91..9daf3d096 100644 --- a/jobspec/test-fixtures/csi-plugin.hcl +++ b/jobspec/test-fixtures/csi-plugin.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "binstore-storagelocker" { group "binsl" { diff --git a/jobspec/test-fixtures/default-job.hcl b/jobspec/test-fixtures/default-job.hcl index ba2466a8f..379f4c34c 100644 --- a/jobspec/test-fixtures/default-job.hcl +++ b/jobspec/test-fixtures/default-job.hcl @@ -1,4 +1,4 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" {} diff --git a/jobspec/test-fixtures/distinctHosts-constraint.hcl b/jobspec/test-fixtures/distinctHosts-constraint.hcl index 58facd2cd..69cc051cc 100644 --- a/jobspec/test-fixtures/distinctHosts-constraint.hcl +++ b/jobspec/test-fixtures/distinctHosts-constraint.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { constraint { diff --git a/jobspec/test-fixtures/distinctProperty-constraint.hcl b/jobspec/test-fixtures/distinctProperty-constraint.hcl index d1ae6bf74..e7851e1e2 100644 --- a/jobspec/test-fixtures/distinctProperty-constraint.hcl +++ b/jobspec/test-fixtures/distinctProperty-constraint.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { constraint { diff --git a/jobspec/test-fixtures/incorrect-service-def.hcl b/jobspec/test-fixtures/incorrect-service-def.hcl index 91d38d005..3c8177ad6 100644 --- a/jobspec/test-fixtures/incorrect-service-def.hcl +++ b/jobspec/test-fixtures/incorrect-service-def.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "binstore-storagelocker" { region = "global" diff --git a/jobspec/test-fixtures/job-with-kill-signal.hcl b/jobspec/test-fixtures/job-with-kill-signal.hcl index f598c80cf..2e35dd3ab 100644 --- a/jobspec/test-fixtures/job-with-kill-signal.hcl +++ b/jobspec/test-fixtures/job-with-kill-signal.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { task "bar" { diff --git a/jobspec/test-fixtures/migrate-job.hcl b/jobspec/test-fixtures/migrate-job.hcl index 263206aea..dd423e2bd 100644 --- a/jobspec/test-fixtures/migrate-job.hcl +++ b/jobspec/test-fixtures/migrate-job.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { datacenters = ["dc1"] diff --git a/jobspec/test-fixtures/multi-network.hcl b/jobspec/test-fixtures/multi-network.hcl index f0ddb144e..7c8dca7a9 100644 --- a/jobspec/test-fixtures/multi-network.hcl +++ b/jobspec/test-fixtures/multi-network.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "binstore-storagelocker" { group "binsl" { diff --git a/jobspec/test-fixtures/multi-resource.hcl b/jobspec/test-fixtures/multi-resource.hcl index f5198a8dc..7938c6b22 100644 --- a/jobspec/test-fixtures/multi-resource.hcl +++ b/jobspec/test-fixtures/multi-resource.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "binstore-storagelocker" { group "binsl" { diff --git a/jobspec/test-fixtures/multi-vault.hcl b/jobspec/test-fixtures/multi-vault.hcl index 81ad13b5e..18d0842c1 100644 --- a/jobspec/test-fixtures/multi-vault.hcl +++ b/jobspec/test-fixtures/multi-vault.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "binstore-storagelocker" { datacenters = ["us2", "eu1"] diff --git a/jobspec/test-fixtures/multiregion.hcl b/jobspec/test-fixtures/multiregion.hcl index 1eaca9e28..a610cb8d0 100644 --- a/jobspec/test-fixtures/multiregion.hcl +++ b/jobspec/test-fixtures/multiregion.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "multiregion_job" { diff --git a/jobspec/test-fixtures/overlapping-ports.hcl b/jobspec/test-fixtures/overlapping-ports.hcl index 32c462e91..192bbda41 100644 --- a/jobspec/test-fixtures/overlapping-ports.hcl +++ b/jobspec/test-fixtures/overlapping-ports.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "binstore-storagelocker" { region = "global" diff --git a/jobspec/test-fixtures/parameterized_job.hcl b/jobspec/test-fixtures/parameterized_job.hcl index 040a14729..1a5b911ea 100644 --- a/jobspec/test-fixtures/parameterized_job.hcl +++ b/jobspec/test-fixtures/parameterized_job.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "parameterized_job" { parameterized { diff --git a/jobspec/test-fixtures/parse-ports.hcl b/jobspec/test-fixtures/parse-ports.hcl index 0603e7f36..3879c27e8 100644 --- a/jobspec/test-fixtures/parse-ports.hcl +++ b/jobspec/test-fixtures/parse-ports.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "parse-ports" { group "group" { diff --git a/jobspec/test-fixtures/periodic-cron.hcl b/jobspec/test-fixtures/periodic-cron.hcl index 0309682c8..af789e238 100644 --- a/jobspec/test-fixtures/periodic-cron.hcl +++ b/jobspec/test-fixtures/periodic-cron.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { periodic { diff --git a/jobspec/test-fixtures/regexp-constraint.hcl b/jobspec/test-fixtures/regexp-constraint.hcl index 017692cff..8f76db365 100644 --- a/jobspec/test-fixtures/regexp-constraint.hcl +++ b/jobspec/test-fixtures/regexp-constraint.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { constraint { diff --git a/jobspec/test-fixtures/reschedule-job-unlimited.hcl b/jobspec/test-fixtures/reschedule-job-unlimited.hcl index e69d0f0ae..eaaf736fc 100644 --- a/jobspec/test-fixtures/reschedule-job-unlimited.hcl +++ b/jobspec/test-fixtures/reschedule-job-unlimited.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { datacenters = ["dc1"] diff --git a/jobspec/test-fixtures/reschedule-job.hcl b/jobspec/test-fixtures/reschedule-job.hcl index b6ff948a0..5b15f638b 100644 --- a/jobspec/test-fixtures/reschedule-job.hcl +++ b/jobspec/test-fixtures/reschedule-job.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { datacenters = ["dc1"] diff --git a/jobspec/test-fixtures/resources-cores.hcl b/jobspec/test-fixtures/resources-cores.hcl index c6a9b2046..71bf13b55 100644 --- a/jobspec/test-fixtures/resources-cores.hcl +++ b/jobspec/test-fixtures/resources-cores.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "cores-test" { group "group" { diff --git a/jobspec/test-fixtures/service-check-bad-header-2.hcl b/jobspec/test-fixtures/service-check-bad-header-2.hcl index b4980b23b..e81a94b5b 100644 --- a/jobspec/test-fixtures/service-check-bad-header-2.hcl +++ b/jobspec/test-fixtures/service-check-bad-header-2.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "check_bad_header" { type = "service" diff --git a/jobspec/test-fixtures/service-check-bad-header.hcl b/jobspec/test-fixtures/service-check-bad-header.hcl index 28c0162ff..3e97a2674 100644 --- a/jobspec/test-fixtures/service-check-bad-header.hcl +++ b/jobspec/test-fixtures/service-check-bad-header.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "check_bad_header" { type = "service" diff --git a/jobspec/test-fixtures/service-check-driver-address.hcl b/jobspec/test-fixtures/service-check-driver-address.hcl index b2d0beab0..877af770b 100644 --- a/jobspec/test-fixtures/service-check-driver-address.hcl +++ b/jobspec/test-fixtures/service-check-driver-address.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "address_mode_driver" { type = "service" diff --git a/jobspec/test-fixtures/service-check-initial-status.hcl b/jobspec/test-fixtures/service-check-initial-status.hcl index acf35c276..07f02c422 100644 --- a/jobspec/test-fixtures/service-check-initial-status.hcl +++ b/jobspec/test-fixtures/service-check-initial-status.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "check_initial_status" { type = "service" diff --git a/jobspec/test-fixtures/service-check-pass-fail.hcl b/jobspec/test-fixtures/service-check-pass-fail.hcl index 530e15d3a..7232c880e 100644 --- a/jobspec/test-fixtures/service-check-pass-fail.hcl +++ b/jobspec/test-fixtures/service-check-pass-fail.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "check_pass_fail" { type = "service" diff --git a/jobspec/test-fixtures/service-check-restart.hcl b/jobspec/test-fixtures/service-check-restart.hcl index 2c4074f57..79c088ad7 100644 --- a/jobspec/test-fixtures/service-check-restart.hcl +++ b/jobspec/test-fixtures/service-check-restart.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "service_check_restart" { type = "service" diff --git a/jobspec/test-fixtures/service-enable-tag-override.hcl b/jobspec/test-fixtures/service-enable-tag-override.hcl index 1852627d5..7e2492a5d 100644 --- a/jobspec/test-fixtures/service-enable-tag-override.hcl +++ b/jobspec/test-fixtures/service-enable-tag-override.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "service_eto" { type = "service" diff --git a/jobspec/test-fixtures/service-meta.hcl b/jobspec/test-fixtures/service-meta.hcl index 3dff085d9..2bcb15b1b 100644 --- a/jobspec/test-fixtures/service-meta.hcl +++ b/jobspec/test-fixtures/service-meta.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "service_meta" { type = "service" diff --git a/jobspec/test-fixtures/service-provider.hcl b/jobspec/test-fixtures/service-provider.hcl index 2cef5e195..81b11c47c 100644 --- a/jobspec/test-fixtures/service-provider.hcl +++ b/jobspec/test-fixtures/service-provider.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "service-provider" { group "group" { diff --git a/jobspec/test-fixtures/service-tagged-address.hcl b/jobspec/test-fixtures/service-tagged-address.hcl index f608b08f8..764021562 100644 --- a/jobspec/test-fixtures/service-tagged-address.hcl +++ b/jobspec/test-fixtures/service-tagged-address.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "service_tagged_address" { type = "service" diff --git a/jobspec/test-fixtures/set-contains-constraint.hcl b/jobspec/test-fixtures/set-contains-constraint.hcl index 3612d7435..ce08bd83b 100644 --- a/jobspec/test-fixtures/set-contains-constraint.hcl +++ b/jobspec/test-fixtures/set-contains-constraint.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { constraint { diff --git a/jobspec/test-fixtures/specify-job.hcl b/jobspec/test-fixtures/specify-job.hcl index f8dd6586d..998aa374a 100644 --- a/jobspec/test-fixtures/specify-job.hcl +++ b/jobspec/test-fixtures/specify-job.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "default" { id = "job1" diff --git a/jobspec/test-fixtures/task-nested-config.hcl b/jobspec/test-fixtures/task-nested-config.hcl index a73917ef7..441a5d5a3 100644 --- a/jobspec/test-fixtures/task-nested-config.hcl +++ b/jobspec/test-fixtures/task-nested-config.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { task "bar" { diff --git a/jobspec/test-fixtures/task-scaling-policy-invalid-resource.hcl b/jobspec/test-fixtures/task-scaling-policy-invalid-resource.hcl index 40af218cb..30955d804 100644 --- a/jobspec/test-fixtures/task-scaling-policy-invalid-resource.hcl +++ b/jobspec/test-fixtures/task-scaling-policy-invalid-resource.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { task "bar" { diff --git a/jobspec/test-fixtures/task-scaling-policy-invalid-type.hcl b/jobspec/test-fixtures/task-scaling-policy-invalid-type.hcl index caaba7b20..6a8265ae2 100644 --- a/jobspec/test-fixtures/task-scaling-policy-invalid-type.hcl +++ b/jobspec/test-fixtures/task-scaling-policy-invalid-type.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { task "bar" { diff --git a/jobspec/test-fixtures/task-scaling-policy-missing-name.hcl b/jobspec/test-fixtures/task-scaling-policy-missing-name.hcl index ce5ffe8fa..e35494047 100644 --- a/jobspec/test-fixtures/task-scaling-policy-missing-name.hcl +++ b/jobspec/test-fixtures/task-scaling-policy-missing-name.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { task "bar" { diff --git a/jobspec/test-fixtures/task-scaling-policy-multi-cpu.hcl b/jobspec/test-fixtures/task-scaling-policy-multi-cpu.hcl index cfd1797df..ca5ff4a1b 100644 --- a/jobspec/test-fixtures/task-scaling-policy-multi-cpu.hcl +++ b/jobspec/test-fixtures/task-scaling-policy-multi-cpu.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { task "bar" { diff --git a/jobspec/test-fixtures/task-scaling-policy-multi-name.hcl b/jobspec/test-fixtures/task-scaling-policy-multi-name.hcl index 3ed5a34d8..bcbb84d58 100644 --- a/jobspec/test-fixtures/task-scaling-policy-multi-name.hcl +++ b/jobspec/test-fixtures/task-scaling-policy-multi-name.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { task "bar" { diff --git a/jobspec/test-fixtures/task-scaling-policy.hcl b/jobspec/test-fixtures/task-scaling-policy.hcl index 4750e8532..f8f70d4d5 100644 --- a/jobspec/test-fixtures/task-scaling-policy.hcl +++ b/jobspec/test-fixtures/task-scaling-policy.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { task "bar" { diff --git a/jobspec/test-fixtures/tg-network-with-hostname.hcl b/jobspec/test-fixtures/tg-network-with-hostname.hcl index 27c4e8664..3951dd795 100644 --- a/jobspec/test-fixtures/tg-network-with-hostname.hcl +++ b/jobspec/test-fixtures/tg-network-with-hostname.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { datacenters = ["dc1"] diff --git a/jobspec/test-fixtures/tg-network.hcl b/jobspec/test-fixtures/tg-network.hcl index ef242afa1..dcc84647f 100644 --- a/jobspec/test-fixtures/tg-network.hcl +++ b/jobspec/test-fixtures/tg-network.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { datacenters = ["dc1"] diff --git a/jobspec/test-fixtures/tg-scaling-policy-invalid-type.hcl b/jobspec/test-fixtures/tg-scaling-policy-invalid-type.hcl index 1ca03a06b..b8e0257c3 100644 --- a/jobspec/test-fixtures/tg-scaling-policy-invalid-type.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy-invalid-type.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "elastic" { group "group" { diff --git a/jobspec/test-fixtures/tg-scaling-policy-minimal.hcl b/jobspec/test-fixtures/tg-scaling-policy-minimal.hcl index 0466c1604..8e4386709 100644 --- a/jobspec/test-fixtures/tg-scaling-policy-minimal.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy-minimal.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "elastic" { group "group" { diff --git a/jobspec/test-fixtures/tg-scaling-policy-missing-max.hcl b/jobspec/test-fixtures/tg-scaling-policy-missing-max.hcl index 0f60231d3..9760983c5 100644 --- a/jobspec/test-fixtures/tg-scaling-policy-missing-max.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy-missing-max.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "elastic" { group "group" { diff --git a/jobspec/test-fixtures/tg-scaling-policy-multi-policy.hcl b/jobspec/test-fixtures/tg-scaling-policy-multi-policy.hcl index 88c48f4dc..69c1a75e5 100644 --- a/jobspec/test-fixtures/tg-scaling-policy-multi-policy.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy-multi-policy.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "elastic" { group "group" { diff --git a/jobspec/test-fixtures/tg-scaling-policy-with-label.hcl b/jobspec/test-fixtures/tg-scaling-policy-with-label.hcl index 586690890..db9a05117 100644 --- a/jobspec/test-fixtures/tg-scaling-policy-with-label.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy-with-label.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "elastic" { group "group" { diff --git a/jobspec/test-fixtures/tg-scaling-policy.hcl b/jobspec/test-fixtures/tg-scaling-policy.hcl index 7643db7d0..ada22c1db 100644 --- a/jobspec/test-fixtures/tg-scaling-policy.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "elastic" { group "group" { diff --git a/jobspec/test-fixtures/tg-service-check-expose.hcl b/jobspec/test-fixtures/tg-service-check-expose.hcl index a21ec5d79..3183bb30a 100644 --- a/jobspec/test-fixtures/tg-service-check-expose.hcl +++ b/jobspec/test-fixtures/tg-service-check-expose.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "group_service_proxy_expose" { group "group" { diff --git a/jobspec/test-fixtures/tg-service-check.hcl b/jobspec/test-fixtures/tg-service-check.hcl index 82b732190..6e183ac3e 100644 --- a/jobspec/test-fixtures/tg-service-check.hcl +++ b/jobspec/test-fixtures/tg-service-check.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "group_service_check_script" { group "group" { diff --git a/jobspec/test-fixtures/tg-service-connect-gateway-ingress.hcl b/jobspec/test-fixtures/tg-service-connect-gateway-ingress.hcl index da9be3a9e..a3e371144 100644 --- a/jobspec/test-fixtures/tg-service-connect-gateway-ingress.hcl +++ b/jobspec/test-fixtures/tg-service-connect-gateway-ingress.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "connect_gateway_ingress" { group "group" { diff --git a/jobspec/test-fixtures/tg-service-connect-gateway-mesh.hcl b/jobspec/test-fixtures/tg-service-connect-gateway-mesh.hcl index b68e1eb7e..81741142f 100644 --- a/jobspec/test-fixtures/tg-service-connect-gateway-mesh.hcl +++ b/jobspec/test-fixtures/tg-service-connect-gateway-mesh.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "connect_gateway_mesh" { group "group" { diff --git a/jobspec/test-fixtures/tg-service-connect-gateway-terminating.hcl b/jobspec/test-fixtures/tg-service-connect-gateway-terminating.hcl index a92162afe..671fb9815 100644 --- a/jobspec/test-fixtures/tg-service-connect-gateway-terminating.hcl +++ b/jobspec/test-fixtures/tg-service-connect-gateway-terminating.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "connect_gateway_terminating" { group "group" { diff --git a/jobspec/test-fixtures/tg-service-connect-local-service.hcl b/jobspec/test-fixtures/tg-service-connect-local-service.hcl index 0b8789aaa..be9fc402c 100644 --- a/jobspec/test-fixtures/tg-service-connect-local-service.hcl +++ b/jobspec/test-fixtures/tg-service-connect-local-service.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "connect-proxy-local-service" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-connect-native.hcl b/jobspec/test-fixtures/tg-service-connect-native.hcl index 15695ec57..2eaa157c9 100644 --- a/jobspec/test-fixtures/tg-service-connect-native.hcl +++ b/jobspec/test-fixtures/tg-service-connect-native.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "connect_native_service" { group "group" { diff --git a/jobspec/test-fixtures/tg-service-connect-proxy.hcl b/jobspec/test-fixtures/tg-service-connect-proxy.hcl index 8f7643de1..138d58943 100644 --- a/jobspec/test-fixtures/tg-service-connect-proxy.hcl +++ b/jobspec/test-fixtures/tg-service-connect-proxy.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "service-connect-proxy" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-connect-resources.hcl b/jobspec/test-fixtures/tg-service-connect-resources.hcl index 3c34669f7..59306404d 100644 --- a/jobspec/test-fixtures/tg-service-connect-resources.hcl +++ b/jobspec/test-fixtures/tg-service-connect-resources.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "sidecar_task_resources" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-connect-sidecar_disablecheck.hcl b/jobspec/test-fixtures/tg-service-connect-sidecar_disablecheck.hcl index 940aa8767..99f4780d6 100644 --- a/jobspec/test-fixtures/tg-service-connect-sidecar_disablecheck.hcl +++ b/jobspec/test-fixtures/tg-service-connect-sidecar_disablecheck.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "sidecar_disablecheck" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-connect-sidecar_meta.hcl b/jobspec/test-fixtures/tg-service-connect-sidecar_meta.hcl index a8aa9c920..bb8164d8d 100644 --- a/jobspec/test-fixtures/tg-service-connect-sidecar_meta.hcl +++ b/jobspec/test-fixtures/tg-service-connect-sidecar_meta.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "sidecar_meta" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-connect-sidecar_task-name.hcl b/jobspec/test-fixtures/tg-service-connect-sidecar_task-name.hcl index 4f7834b51..f103536f7 100644 --- a/jobspec/test-fixtures/tg-service-connect-sidecar_task-name.hcl +++ b/jobspec/test-fixtures/tg-service-connect-sidecar_task-name.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "sidecar_task_name" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-enable-tag-override.hcl b/jobspec/test-fixtures/tg-service-enable-tag-override.hcl index 2ab09eadd..ddef2f98b 100644 --- a/jobspec/test-fixtures/tg-service-enable-tag-override.hcl +++ b/jobspec/test-fixtures/tg-service-enable-tag-override.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "group_service_eto" { group "group" { diff --git a/jobspec/test-fixtures/tg-service-proxy-expose.hcl b/jobspec/test-fixtures/tg-service-proxy-expose.hcl index 814d88f46..05b182aa5 100644 --- a/jobspec/test-fixtures/tg-service-proxy-expose.hcl +++ b/jobspec/test-fixtures/tg-service-proxy-expose.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "group_service_proxy_expose" { group "group" { diff --git a/jobspec/test-fixtures/vault_inheritance.hcl b/jobspec/test-fixtures/vault_inheritance.hcl index 698873f6d..4ee592187 100644 --- a/jobspec/test-fixtures/vault_inheritance.hcl +++ b/jobspec/test-fixtures/vault_inheritance.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "example" { vault { diff --git a/jobspec/test-fixtures/version-constraint.hcl b/jobspec/test-fixtures/version-constraint.hcl index 8039ddc6f..e26184bd3 100644 --- a/jobspec/test-fixtures/version-constraint.hcl +++ b/jobspec/test-fixtures/version-constraint.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "foo" { constraint { diff --git a/jobspec/utils.go b/jobspec/utils.go index c66d5fdc5..c35cf3b5e 100644 --- a/jobspec/utils.go +++ b/jobspec/utils.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec/utils_test.go b/jobspec/utils_test.go index 9a94076c5..bd345c19e 100644 --- a/jobspec/utils_test.go +++ b/jobspec/utils_test.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec diff --git a/jobspec2/LICENSE b/jobspec2/LICENSE new file mode 100644 index 000000000..f4f97ee58 --- /dev/null +++ b/jobspec2/LICENSE @@ -0,0 +1,365 @@ +Copyright (c) 2015 HashiCorp, Inc. + +Mozilla Public License, version 2.0 + +1. Definitions + +1.1. "Contributor" + + means each individual or legal entity that creates, contributes to the + creation of, or owns Covered Software. + +1.2. "Contributor Version" + + means the combination of the Contributions of others (if any) used by a + Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + + means Source Code Form to which the initial Contributor has attached the + notice in Exhibit A, the Executable Form of such Source Code Form, and + Modifications of such Source Code Form, in each case including portions + thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + a. that the initial Contributor has attached the notice described in + Exhibit B to the Covered Software; or + + b. that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the terms of + a Secondary License. + +1.6. "Executable Form" + + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + + means a work that combines Covered Software with other material, in a + separate file or files, that is not Covered Software. + +1.8. "License" + + means this document. + +1.9. "Licensable" + + means having the right to grant, to the maximum extent possible, whether + at the time of the initial grant or subsequently, any and all of the + rights conveyed by this License. + +1.10. "Modifications" + + means any of the following: + + a. any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered Software; or + + b. any new file in Source Code Form that contains any Covered Software. + +1.11. "Patent Claims" of a Contributor + + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the License, + by the making, using, selling, offering for sale, having made, import, + or transfer of either its Contributions or its Contributor Version. + +1.12. "Secondary License" + + means either the GNU General Public License, Version 2.0, the GNU Lesser + General Public License, Version 2.1, the GNU Affero General Public + License, Version 3.0, or any later versions of those licenses. + +1.13. "Source Code Form" + + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that controls, is + controlled by, or is under common control with You. For purposes of this + definition, "control" means (a) the power, direct or indirect, to cause + the direction or management of such entity, whether by contract or + otherwise, or (b) ownership of more than fifty percent (50%) of the + outstanding shares or beneficial ownership of such entity. + + +2. License Grants and Conditions + +2.1. Grants + + Each Contributor hereby grants You a world-wide, royalty-free, + non-exclusive license: + + a. under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + + b. under Patent Claims of such Contributor to make, use, sell, offer for + sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + + The licenses granted in Section 2.1 with respect to any Contribution + become effective for each Contribution on the date the Contributor first + distributes such Contribution. + +2.3. Limitations on Grant Scope + + The licenses granted in this Section 2 are the only rights granted under + this License. No additional rights or licenses will be implied from the + distribution or licensing of Covered Software under this License. + Notwithstanding Section 2.1(b) above, no patent license is granted by a + Contributor: + + a. for any code that a Contributor has removed from Covered Software; or + + b. for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + + c. under Patent Claims infringed by Covered Software in the absence of + its Contributions. + + This License does not grant any rights in the trademarks, service marks, + or logos of any Contributor (except as may be necessary to comply with + the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + + No Contributor makes additional grants as a result of Your choice to + distribute the Covered Software under a subsequent version of this + License (see Section 10.2) or under the terms of a Secondary License (if + permitted under the terms of Section 3.3). + +2.5. Representation + + Each Contributor represents that the Contributor believes its + Contributions are its original creation(s) or it has sufficient rights to + grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + + This License is not intended to limit any rights You have under + applicable copyright doctrines of fair use, fair dealing, or other + equivalents. + +2.7. Conditions + + Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in + Section 2.1. + + +3. Responsibilities + +3.1. Distribution of Source Form + + All distribution of Covered Software in Source Code Form, including any + Modifications that You create or to which You contribute, must be under + the terms of this License. You must inform recipients that the Source + Code Form of the Covered Software is governed by the terms of this + License, and how they can obtain a copy of this License. You may not + attempt to alter or restrict the recipients' rights in the Source Code + Form. + +3.2. Distribution of Executable Form + + If You distribute Covered Software in Executable Form then: + + a. such Covered Software must also be made available in Source Code Form, + as described in Section 3.1, and You must inform recipients of the + Executable Form how they can obtain a copy of such Source Code Form by + reasonable means in a timely manner, at a charge no more than the cost + of distribution to the recipient; and + + b. You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter the + recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + + You may create and distribute a Larger Work under terms of Your choice, + provided that You also comply with the requirements of this License for + the Covered Software. If the Larger Work is a combination of Covered + Software with a work governed by one or more Secondary Licenses, and the + Covered Software is not Incompatible With Secondary Licenses, this + License permits You to additionally distribute such Covered Software + under the terms of such Secondary License(s), so that the recipient of + the Larger Work may, at their option, further distribute the Covered + Software under the terms of either this License or such Secondary + License(s). + +3.4. Notices + + You may not remove or alter the substance of any license notices + (including copyright notices, patent notices, disclaimers of warranty, or + limitations of liability) contained within the Source Code Form of the + Covered Software, except that You may alter any license notices to the + extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + + You may choose to offer, and to charge a fee for, warranty, support, + indemnity or liability obligations to one or more recipients of Covered + Software. However, You may do so only on Your own behalf, and not on + behalf of any Contributor. You must make it absolutely clear that any + such warranty, support, indemnity, or liability obligation is offered by + You alone, and You hereby agree to indemnify every Contributor for any + liability incurred by such Contributor as a result of warranty, support, + indemnity or liability terms You offer. You may include additional + disclaimers of warranty and limitations of liability specific to any + jurisdiction. + +4. Inability to Comply Due to Statute or Regulation + + If it is impossible for You to comply with any of the terms of this License + with respect to some or all of the Covered Software due to statute, + judicial order, or regulation then You must: (a) comply with the terms of + this License to the maximum extent possible; and (b) describe the + limitations and the code they affect. Such description must be placed in a + text file included with all distributions of the Covered Software under + this License. Except to the extent prohibited by statute or regulation, + such description must be sufficiently detailed for a recipient of ordinary + skill to be able to understand it. + +5. Termination + +5.1. The rights granted under this License will terminate automatically if You + fail to comply with any of its terms. However, if You become compliant, + then the rights granted under this License from a particular Contributor + are reinstated (a) provisionally, unless and until such Contributor + explicitly and finally terminates Your grants, and (b) on an ongoing + basis, if such Contributor fails to notify You of the non-compliance by + some reasonable means prior to 60 days after You have come back into + compliance. Moreover, Your grants from a particular Contributor are + reinstated on an ongoing basis if such Contributor notifies You of the + non-compliance by some reasonable means, this is the first time You have + received notice of non-compliance with this License from such + Contributor, and You become compliant prior to 30 days after Your receipt + of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent + infringement claim (excluding declaratory judgment actions, + counter-claims, and cross-claims) alleging that a Contributor Version + directly or indirectly infringes any patent, then the rights granted to + You by any and all Contributors for the Covered Software under Section + 2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user + license agreements (excluding distributors and resellers) which have been + validly granted by You or Your distributors under this License prior to + termination shall survive termination. + +6. Disclaimer of Warranty + + Covered Software is provided under this License on an "as is" basis, + without warranty of any kind, either expressed, implied, or statutory, + including, without limitation, warranties that the Covered Software is free + of defects, merchantable, fit for a particular purpose or non-infringing. + The entire risk as to the quality and performance of the Covered Software + is with You. Should any Covered Software prove defective in any respect, + You (not any Contributor) assume the cost of any necessary servicing, + repair, or correction. This disclaimer of warranty constitutes an essential + part of this License. No use of any Covered Software is authorized under + this License except under this disclaimer. + +7. Limitation of Liability + + Under no circumstances and under no legal theory, whether tort (including + negligence), contract, or otherwise, shall any Contributor, or anyone who + distributes Covered Software as permitted above, be liable to You for any + direct, indirect, special, incidental, or consequential damages of any + character including, without limitation, damages for lost profits, loss of + goodwill, work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses, even if such party shall have been + informed of the possibility of such damages. This limitation of liability + shall not apply to liability for death or personal injury resulting from + such party's negligence to the extent applicable law prohibits such + limitation. Some jurisdictions do not allow the exclusion or limitation of + incidental or consequential damages, so this exclusion and limitation may + not apply to You. + +8. Litigation + + Any litigation relating to this License may be brought only in the courts + of a jurisdiction where the defendant maintains its principal place of + business and such litigation shall be governed by laws of that + jurisdiction, without reference to its conflict-of-law provisions. Nothing + in this Section shall prevent a party's ability to bring cross-claims or + counter-claims. + +9. Miscellaneous + + This License represents the complete agreement concerning the subject + matter hereof. If any provision of this License is held to be + unenforceable, such provision shall be reformed only to the extent + necessary to make it enforceable. Any law or regulation which provides that + the language of a contract shall be construed against the drafter shall not + be used to construe this License against a Contributor. + + +10. Versions of the License + +10.1. New Versions + + Mozilla Foundation is the license steward. Except as provided in Section + 10.3, no one other than the license steward has the right to modify or + publish new versions of this License. Each version will be given a + distinguishing version number. + +10.2. Effect of New Versions + + You may distribute the Covered Software under the terms of the version + of the License under which You originally received the Covered Software, + or under the terms of any subsequent version published by the license + steward. + +10.3. Modified Versions + + If you create software not governed by this License, and you want to + create a new license for such software, you may create and use a + modified version of this License if you rename the license and remove + any references to the name of the license steward (except to note that + such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary + Licenses If You choose to distribute Source Code Form that is + Incompatible With Secondary Licenses under the terms of this version of + the License, the notice described in Exhibit B of this License must be + attached. + +Exhibit A - Source Code Form License Notice + + This Source Code Form is subject to the + terms of the Mozilla Public License, v. + 2.0. If a copy of the MPL was not + distributed with this file, You can + obtain one at + http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular file, +then You may include the notice in a location (such as a LICENSE file in a +relevant directory) where a recipient would be likely to look for such a +notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice + + This Source Code Form is "Incompatible + With Secondary Licenses", as defined by + the Mozilla Public License, v. 2.0. + diff --git a/jobspec2/addrs/doc.go b/jobspec2/addrs/doc.go index 783284822..9768f453d 100644 --- a/jobspec2/addrs/doc.go +++ b/jobspec2/addrs/doc.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 // Package addrs contains types that represent "addresses", which are // references to specific objects within a Packer configuration. diff --git a/jobspec2/addrs/input_variable.go b/jobspec2/addrs/input_variable.go index 9ffbf6fb0..e2821e7e5 100644 --- a/jobspec2/addrs/input_variable.go +++ b/jobspec2/addrs/input_variable.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package addrs diff --git a/jobspec2/addrs/parse_ref.go b/jobspec2/addrs/parse_ref.go index 3f6c73201..866ced8f4 100644 --- a/jobspec2/addrs/parse_ref.go +++ b/jobspec2/addrs/parse_ref.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package addrs diff --git a/jobspec2/addrs/referenceable.go b/jobspec2/addrs/referenceable.go index 2b11d6008..9b54c5bac 100644 --- a/jobspec2/addrs/referenceable.go +++ b/jobspec2/addrs/referenceable.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package addrs diff --git a/jobspec2/functions.go b/jobspec2/functions.go index 9e1ab8ae9..4350cde78 100644 --- a/jobspec2/functions.go +++ b/jobspec2/functions.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec2 diff --git a/jobspec2/hcl_conversions.go b/jobspec2/hcl_conversions.go index 0810e8613..8ce337a54 100644 --- a/jobspec2/hcl_conversions.go +++ b/jobspec2/hcl_conversions.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec2 diff --git a/jobspec2/hclutil/blockattrs.go b/jobspec2/hclutil/blockattrs.go index a92c0a692..e1953b128 100644 --- a/jobspec2/hclutil/blockattrs.go +++ b/jobspec2/hclutil/blockattrs.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package hclutil diff --git a/jobspec2/helper_test.go b/jobspec2/helper_test.go index 868fe8cd8..a317d8661 100644 --- a/jobspec2/helper_test.go +++ b/jobspec2/helper_test.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec2 diff --git a/jobspec2/parse.go b/jobspec2/parse.go index cc37cdbc2..4b91ba76f 100644 --- a/jobspec2/parse.go +++ b/jobspec2/parse.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec2 diff --git a/jobspec2/parse_job.go b/jobspec2/parse_job.go index 0d3c5803d..c60875545 100644 --- a/jobspec2/parse_job.go +++ b/jobspec2/parse_job.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec2 diff --git a/jobspec2/parse_map.go b/jobspec2/parse_map.go index 34f3017bd..fcaabdfcd 100644 --- a/jobspec2/parse_map.go +++ b/jobspec2/parse_map.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec2 diff --git a/jobspec2/parse_test.go b/jobspec2/parse_test.go index 6d3035a67..3a858918c 100644 --- a/jobspec2/parse_test.go +++ b/jobspec2/parse_test.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec2 diff --git a/jobspec2/test-fixtures/config-compatibility.hcl b/jobspec2/test-fixtures/config-compatibility.hcl index a5901e0d7..13dade371 100644 --- a/jobspec2/test-fixtures/config-compatibility.hcl +++ b/jobspec2/test-fixtures/config-compatibility.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "example" { group "group" { diff --git a/jobspec2/test-fixtures/connect-example.hcl b/jobspec2/test-fixtures/connect-example.hcl index a88086e3a..eca86d361 100644 --- a/jobspec2/test-fixtures/connect-example.hcl +++ b/jobspec2/test-fixtures/connect-example.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "web" { datacenters = ["dc1"] diff --git a/jobspec2/test-fixtures/identity-compat.nomad.hcl b/jobspec2/test-fixtures/identity-compat.nomad.hcl index 452048fd9..e6b8ce338 100644 --- a/jobspec2/test-fixtures/identity-compat.nomad.hcl +++ b/jobspec2/test-fixtures/identity-compat.nomad.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "identitycompat" { group "cache" { diff --git a/jobspec2/test-fixtures/restart-render-templates.hcl b/jobspec2/test-fixtures/restart-render-templates.hcl index 34497e2c8..71e82c641 100644 --- a/jobspec2/test-fixtures/restart-render-templates.hcl +++ b/jobspec2/test-fixtures/restart-render-templates.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "example" { group "group" { diff --git a/jobspec2/test-fixtures/template-err-missing-key.hcl b/jobspec2/test-fixtures/template-err-missing-key.hcl index 7c3813416..3077a1884 100644 --- a/jobspec2/test-fixtures/template-err-missing-key.hcl +++ b/jobspec2/test-fixtures/template-err-missing-key.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "example" { group "group" { diff --git a/jobspec2/test-fixtures/template-wait-config.hcl b/jobspec2/test-fixtures/template-wait-config.hcl index 5324b2831..d332db446 100644 --- a/jobspec2/test-fixtures/template-wait-config.hcl +++ b/jobspec2/test-fixtures/template-wait-config.hcl @@ -1,5 +1,5 @@ # Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 +# SPDX-License-Identifier: MPL-2.0 job "example" { group "group" { diff --git a/jobspec2/types.config.go b/jobspec2/types.config.go index 221b6f0c0..f183be970 100644 --- a/jobspec2/types.config.go +++ b/jobspec2/types.config.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec2 diff --git a/jobspec2/types.variables.go b/jobspec2/types.variables.go index 58f6d2468..facd34ca6 100644 --- a/jobspec2/types.variables.go +++ b/jobspec2/types.variables.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MPL-2.0 package jobspec2