diff --git a/.copywrite.hcl b/.copywrite.hcl new file mode 100644 index 0000000..ef65b58 --- /dev/null +++ b/.copywrite.hcl @@ -0,0 +1,7 @@ +schema_version = 1 + +project { + license = "MPL-2.0" + copyright_year = 2024 + header_ignore = [] +} diff --git a/.github/workflows/copywrite.yml b/.github/workflows/copywrite.yml new file mode 100644 index 0000000..eefd8aa --- /dev/null +++ b/.github/workflows/copywrite.yml @@ -0,0 +1,20 @@ +name: Check Copywrite Headers + +on: + push: {} + +jobs: + copywrite: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 + - uses: hashicorp/setup-copywrite@867a1a2a064a0626db322392806428f7dc59cb3e # v1.1.2 + name: Setup Copywrite + with: + version: v0.16.4 + archive-checksum: c299f830e6eef7e126a3c6ef99ac6f43a3c132d830c769e0d36fa347fa1af254 + - name: Check Copywrite Headers + run: copywrite headers --plan + +permissions: + contents: read diff --git a/infra/eu-west-2/core-nomad/aws_ebs_csi.tf b/infra/eu-west-2/core-nomad/aws_ebs_csi.tf index d4596c8..17ab1d4 100644 --- a/infra/eu-west-2/core-nomad/aws_ebs_csi.tf +++ b/infra/eu-west-2/core-nomad/aws_ebs_csi.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + locals { aws_ebs_csi_plugin_id = "aws-ebs" } diff --git a/infra/eu-west-2/core-nomad/influxdb.tf b/infra/eu-west-2/core-nomad/influxdb.tf index 3e64434..fa210e8 100644 --- a/infra/eu-west-2/core-nomad/influxdb.tf +++ b/infra/eu-west-2/core-nomad/influxdb.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + locals { influxdb_org_name = "nomad-eng" } diff --git a/infra/eu-west-2/core-nomad/main.tf b/infra/eu-west-2/core-nomad/main.tf index 9e89517..36b36bb 100644 --- a/infra/eu-west-2/core-nomad/main.tf +++ b/infra/eu-west-2/core-nomad/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + data "terraform_remote_state" "core" { backend = "local" diff --git a/infra/eu-west-2/core-nomad/output.tf b/infra/eu-west-2/core-nomad/output.tf index 1855af5..0ff5cb1 100644 --- a/infra/eu-west-2/core-nomad/output.tf +++ b/infra/eu-west-2/core-nomad/output.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + output "influxdb_org_name" { value = local.influxdb_org_name } diff --git a/infra/eu-west-2/core-nomad/provider.tf b/infra/eu-west-2/core-nomad/provider.tf index ed0c8da..7165ec9 100644 --- a/infra/eu-west-2/core-nomad/provider.tf +++ b/infra/eu-west-2/core-nomad/provider.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + terraform { backend "local" { path = "terraform.tfstate" diff --git a/infra/eu-west-2/core/ansible/inventory.yaml b/infra/eu-west-2/core/ansible/inventory.yaml index 364bc10..a7b442f 100644 --- a/infra/eu-west-2/core/ansible/inventory.yaml +++ b/infra/eu-west-2/core/ansible/inventory.yaml @@ -1,2 +1,5 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + plugin: "cloud.terraform.terraform_provider" project_path: "./.." diff --git a/infra/eu-west-2/core/ansible/playbook.yaml b/infra/eu-west-2/core/ansible/playbook.yaml index 8fa73e6..de8af2a 100644 --- a/infra/eu-west-2/core/ansible/playbook.yaml +++ b/infra/eu-west-2/core/ansible/playbook.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + - ansible.builtin.import_playbook: "playbook_bastion.yaml" - ansible.builtin.import_playbook: "playbook_server.yaml" - ansible.builtin.import_playbook: "playbook_client.yaml" diff --git a/infra/eu-west-2/core/ansible/playbook_bastion.yaml b/infra/eu-west-2/core/ansible/playbook_bastion.yaml index 0d898e2..76bf80c 100644 --- a/infra/eu-west-2/core/ansible/playbook_bastion.yaml +++ b/infra/eu-west-2/core/ansible/playbook_bastion.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + - hosts: bastion roles: - role: common diff --git a/infra/eu-west-2/core/ansible/playbook_client.yaml b/infra/eu-west-2/core/ansible/playbook_client.yaml index 0c92f1c..4ffbe96 100644 --- a/infra/eu-west-2/core/ansible/playbook_client.yaml +++ b/infra/eu-west-2/core/ansible/playbook_client.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + - hosts: client roles: - role: common diff --git a/infra/eu-west-2/core/ansible/playbook_lb.yaml b/infra/eu-west-2/core/ansible/playbook_lb.yaml index 37d7a92..3037e0a 100644 --- a/infra/eu-west-2/core/ansible/playbook_lb.yaml +++ b/infra/eu-west-2/core/ansible/playbook_lb.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + - hosts: lb roles: - role: common diff --git a/infra/eu-west-2/core/ansible/playbook_nuke_state.yaml b/infra/eu-west-2/core/ansible/playbook_nuke_state.yaml index bb0eced..202f7ee 100644 --- a/infra/eu-west-2/core/ansible/playbook_nuke_state.yaml +++ b/infra/eu-west-2/core/ansible/playbook_nuke_state.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + - hosts: server:client gather_facts: false tasks: diff --git a/infra/eu-west-2/core/ansible/playbook_server.yaml b/infra/eu-west-2/core/ansible/playbook_server.yaml index 6c06f14..8ab0214 100644 --- a/infra/eu-west-2/core/ansible/playbook_server.yaml +++ b/infra/eu-west-2/core/ansible/playbook_server.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + - hosts: server roles: - role: common diff --git a/infra/eu-west-2/core/bastion.tf b/infra/eu-west-2/core/bastion.tf index 23f0367..f6f2e32 100644 --- a/infra/eu-west-2/core/bastion.tf +++ b/infra/eu-west-2/core/bastion.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "bastion" { source = "../../../shared/terraform/modules/bastion" diff --git a/infra/eu-west-2/core/lb.tf b/infra/eu-west-2/core/lb.tf index 90c8cdf..15f153a 100644 --- a/infra/eu-west-2/core/lb.tf +++ b/infra/eu-west-2/core/lb.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "core_cluster_lb" { source = "../../../shared/terraform/modules/nomad-lb" diff --git a/infra/eu-west-2/core/main.tf b/infra/eu-west-2/core/main.tf index 1500155..bc54a06 100644 --- a/infra/eu-west-2/core/main.tf +++ b/infra/eu-west-2/core/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + locals { allowed_cidrs = [for ip in var.allowed_ip_addresses : "${ip}/32"] diff --git a/infra/eu-west-2/core/output.tf b/infra/eu-west-2/core/output.tf index e7bc95b..0baf316 100644 --- a/infra/eu-west-2/core/output.tf +++ b/infra/eu-west-2/core/output.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + output "message" { value = <<-EOM Your ${var.project_name} cluster has been provisioned! diff --git a/infra/eu-west-2/core/provider.tf b/infra/eu-west-2/core/provider.tf index 99620a8..63bd1e7 100644 --- a/infra/eu-west-2/core/provider.tf +++ b/infra/eu-west-2/core/provider.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + terraform { backend "local" { path = "terraform.tfstate" diff --git a/infra/eu-west-2/core/terraform.tfvars b/infra/eu-west-2/core/terraform.tfvars index f050565..48952fa 100644 --- a/infra/eu-west-2/core/terraform.tfvars +++ b/infra/eu-west-2/core/terraform.tfvars @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + region = "eu-west-2" project_name = "bench-core-jrasell-test" diff --git a/infra/eu-west-2/core/variables.tf b/infra/eu-west-2/core/variables.tf index df48aac..81e8d8e 100644 --- a/infra/eu-west-2/core/variables.tf +++ b/infra/eu-west-2/core/variables.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "region" {} variable "project_name" {} variable "allowed_ip_addresses" {} diff --git a/infra/eu-west-2/test-cluster-template/ansible/inventory.yaml b/infra/eu-west-2/test-cluster-template/ansible/inventory.yaml index 364bc10..a7b442f 100644 --- a/infra/eu-west-2/test-cluster-template/ansible/inventory.yaml +++ b/infra/eu-west-2/test-cluster-template/ansible/inventory.yaml @@ -1,2 +1,5 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + plugin: "cloud.terraform.terraform_provider" project_path: "./.." diff --git a/infra/eu-west-2/test-cluster-template/ansible/playbook.yaml b/infra/eu-west-2/test-cluster-template/ansible/playbook.yaml index 8c8b15a..8add941 100644 --- a/infra/eu-west-2/test-cluster-template/ansible/playbook.yaml +++ b/infra/eu-west-2/test-cluster-template/ansible/playbook.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + - hosts: bastion roles: - role: build diff --git a/infra/eu-west-2/test-cluster-template/main.tf b/infra/eu-west-2/test-cluster-template/main.tf index 19664bc..2a45880 100644 --- a/infra/eu-west-2/test-cluster-template/main.tf +++ b/infra/eu-west-2/test-cluster-template/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + locals { test_clusters = { "${var.project_name}-cluster-1" = { diff --git a/infra/eu-west-2/test-cluster-template/outputs.tf b/infra/eu-west-2/test-cluster-template/outputs.tf index 5a1eed8..e563001 100644 --- a/infra/eu-west-2/test-cluster-template/outputs.tf +++ b/infra/eu-west-2/test-cluster-template/outputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + output "message" { value = < templatefile( "${path.module}/nomad-nodesim.nomad.hcl.tpl", diff --git a/shared/terraform/modules/test-bench-bootstrap/outputs.tf b/shared/terraform/modules/test-bench-bootstrap/outputs.tf index f378fb1..446c453 100644 --- a/shared/terraform/modules/test-bench-bootstrap/outputs.tf +++ b/shared/terraform/modules/test-bench-bootstrap/outputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + output "influxdb_buckets" { value = { for k, v in influxdb-v2_bucket.clusters : k => v.name } } diff --git a/shared/terraform/modules/test-bench-bootstrap/providers.tf b/shared/terraform/modules/test-bench-bootstrap/providers.tf index 411c314..d8debea 100644 --- a/shared/terraform/modules/test-bench-bootstrap/providers.tf +++ b/shared/terraform/modules/test-bench-bootstrap/providers.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + terraform { required_providers { ansible = { diff --git a/shared/terraform/modules/test-bench-bootstrap/variables.tf b/shared/terraform/modules/test-bench-bootstrap/variables.tf index 0dd2098..b3a1d2a 100644 --- a/shared/terraform/modules/test-bench-bootstrap/variables.tf +++ b/shared/terraform/modules/test-bench-bootstrap/variables.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "project_name" { description = "The project name to use for creation of all bootstrap resources." type = string diff --git a/tools/nomad-load/cmd/nomad-load/main.go b/tools/nomad-load/cmd/nomad-load/main.go index 21a6942..2fe2a09 100644 --- a/tools/nomad-load/cmd/nomad-load/main.go +++ b/tools/nomad-load/cmd/nomad-load/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/tools/nomad-load/internal/consts.go b/tools/nomad-load/internal/consts.go index 8e4cfe8..1315b4f 100644 --- a/tools/nomad-load/internal/consts.go +++ b/tools/nomad-load/internal/consts.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package internal type JobType string diff --git a/tools/nomad-load/internal/http/error.go b/tools/nomad-load/internal/http/error.go index 853e59e..6d4b4b3 100644 --- a/tools/nomad-load/internal/http/error.go +++ b/tools/nomad-load/internal/http/error.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package http // errInvalidMethod is the error message used when a HTTP request is sent using diff --git a/tools/nomad-load/internal/http/http.go b/tools/nomad-load/internal/http/http.go index af71d6e..cd2aa64 100644 --- a/tools/nomad-load/internal/http/http.go +++ b/tools/nomad-load/internal/http/http.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package http import ( diff --git a/tools/nomad-load/internal/http/metrics.go b/tools/nomad-load/internal/http/metrics.go index d02adc0..16eff1a 100644 --- a/tools/nomad-load/internal/http/metrics.go +++ b/tools/nomad-load/internal/http/metrics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package http import ( diff --git a/tools/nomad-load/internal/job.go b/tools/nomad-load/internal/job.go index f335756..ce57690 100644 --- a/tools/nomad-load/internal/job.go +++ b/tools/nomad-load/internal/job.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package internal import ( diff --git a/tools/nomad-load/internal/telemetry/telemetry.go b/tools/nomad-load/internal/telemetry/telemetry.go index bf877b5..21a8964 100644 --- a/tools/nomad-load/internal/telemetry/telemetry.go +++ b/tools/nomad-load/internal/telemetry/telemetry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package telemetry import ( diff --git a/tools/nomad-load/version/version.go b/tools/nomad-load/version/version.go index c91f8aa..70ea761 100644 --- a/tools/nomad-load/version/version.go +++ b/tools/nomad-load/version/version.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package version var ( diff --git a/tools/nomad-metrics/internal/archive/archive.go b/tools/nomad-metrics/internal/archive/archive.go index 3dd11ae..54724ad 100644 --- a/tools/nomad-metrics/internal/archive/archive.go +++ b/tools/nomad-metrics/internal/archive/archive.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package archive import ( diff --git a/tools/nomad-metrics/internal/cmd/archive/archive.go b/tools/nomad-metrics/internal/cmd/archive/archive.go index 22d652b..1eca1a4 100644 --- a/tools/nomad-metrics/internal/cmd/archive/archive.go +++ b/tools/nomad-metrics/internal/cmd/archive/archive.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package archive import ( diff --git a/tools/nomad-metrics/internal/cmd/archive/create.go b/tools/nomad-metrics/internal/cmd/archive/create.go index fabe7a1..cfab8a2 100644 --- a/tools/nomad-metrics/internal/cmd/archive/create.go +++ b/tools/nomad-metrics/internal/cmd/archive/create.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package archive import ( diff --git a/tools/nomad-metrics/internal/cmd/cmd.go b/tools/nomad-metrics/internal/cmd/cmd.go index 88ed37e..0cd2416 100644 --- a/tools/nomad-metrics/internal/cmd/cmd.go +++ b/tools/nomad-metrics/internal/cmd/cmd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cmd import ( diff --git a/tools/nomad-metrics/internal/cmd/telemetry/collect.go b/tools/nomad-metrics/internal/cmd/telemetry/collect.go index 0f9e70e..8b80225 100644 --- a/tools/nomad-metrics/internal/cmd/telemetry/collect.go +++ b/tools/nomad-metrics/internal/cmd/telemetry/collect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package telemetry import ( diff --git a/tools/nomad-metrics/internal/cmd/telemetry/load.go b/tools/nomad-metrics/internal/cmd/telemetry/load.go index 7200c2e..720388e 100644 --- a/tools/nomad-metrics/internal/cmd/telemetry/load.go +++ b/tools/nomad-metrics/internal/cmd/telemetry/load.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package telemetry import ( diff --git a/tools/nomad-metrics/internal/cmd/telemetry/telemetry.go b/tools/nomad-metrics/internal/cmd/telemetry/telemetry.go index 408f2f7..22590e3 100644 --- a/tools/nomad-metrics/internal/cmd/telemetry/telemetry.go +++ b/tools/nomad-metrics/internal/cmd/telemetry/telemetry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package telemetry import ( diff --git a/tools/nomad-metrics/internal/cmd/telemetry/transform.go b/tools/nomad-metrics/internal/cmd/telemetry/transform.go index 17b1175..a0c7d5b 100644 --- a/tools/nomad-metrics/internal/cmd/telemetry/transform.go +++ b/tools/nomad-metrics/internal/cmd/telemetry/transform.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package telemetry import ( diff --git a/tools/nomad-metrics/internal/collector/collector.go b/tools/nomad-metrics/internal/collector/collector.go index 8751398..96d9924 100644 --- a/tools/nomad-metrics/internal/collector/collector.go +++ b/tools/nomad-metrics/internal/collector/collector.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package collector import ( diff --git a/tools/nomad-metrics/internal/config/archive.go b/tools/nomad-metrics/internal/config/archive.go index 9d212f8..13874ff 100644 --- a/tools/nomad-metrics/internal/config/archive.go +++ b/tools/nomad-metrics/internal/config/archive.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/tools/nomad-metrics/internal/config/collect.go b/tools/nomad-metrics/internal/config/collect.go index 091761b..bfbde94 100644 --- a/tools/nomad-metrics/internal/config/collect.go +++ b/tools/nomad-metrics/internal/config/collect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import "time" diff --git a/tools/nomad-metrics/internal/config/config.go b/tools/nomad-metrics/internal/config/config.go index 0fed644..664a4e7 100644 --- a/tools/nomad-metrics/internal/config/config.go +++ b/tools/nomad-metrics/internal/config/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config const ( diff --git a/tools/nomad-metrics/internal/config/flags.go b/tools/nomad-metrics/internal/config/flags.go index f2912f3..6eaf056 100644 --- a/tools/nomad-metrics/internal/config/flags.go +++ b/tools/nomad-metrics/internal/config/flags.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import "time" diff --git a/tools/nomad-metrics/internal/config/load.go b/tools/nomad-metrics/internal/config/load.go index 205911d..2356b51 100644 --- a/tools/nomad-metrics/internal/config/load.go +++ b/tools/nomad-metrics/internal/config/load.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/tools/nomad-metrics/internal/config/log.go b/tools/nomad-metrics/internal/config/log.go index ef9d73b..3578c3d 100644 --- a/tools/nomad-metrics/internal/config/log.go +++ b/tools/nomad-metrics/internal/config/log.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config type Log struct { diff --git a/tools/nomad-metrics/internal/config/transform.go b/tools/nomad-metrics/internal/config/transform.go index e63ead4..88272ab 100644 --- a/tools/nomad-metrics/internal/config/transform.go +++ b/tools/nomad-metrics/internal/config/transform.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/tools/nomad-metrics/internal/log/log.go b/tools/nomad-metrics/internal/log/log.go index 070fe39..4d7b504 100644 --- a/tools/nomad-metrics/internal/log/log.go +++ b/tools/nomad-metrics/internal/log/log.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package log import ( diff --git a/tools/nomad-metrics/internal/metadata/metadata.go b/tools/nomad-metrics/internal/metadata/metadata.go index 9c6e778..f3aa9fb 100644 --- a/tools/nomad-metrics/internal/metadata/metadata.go +++ b/tools/nomad-metrics/internal/metadata/metadata.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package metadata import ( diff --git a/tools/nomad-metrics/internal/store/influxdb/load.go b/tools/nomad-metrics/internal/store/influxdb/load.go index e048475..36637fd 100644 --- a/tools/nomad-metrics/internal/store/influxdb/load.go +++ b/tools/nomad-metrics/internal/store/influxdb/load.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package influxdb import ( diff --git a/tools/nomad-metrics/internal/store/influxdb/transform.go b/tools/nomad-metrics/internal/store/influxdb/transform.go index 8a43df4..0affbc2 100644 --- a/tools/nomad-metrics/internal/store/influxdb/transform.go +++ b/tools/nomad-metrics/internal/store/influxdb/transform.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package influxdb import ( diff --git a/tools/nomad-metrics/internal/store/store.go b/tools/nomad-metrics/internal/store/store.go index a787ddc..a174bd0 100644 --- a/tools/nomad-metrics/internal/store/store.go +++ b/tools/nomad-metrics/internal/store/store.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package store type Load interface{ Run() error } diff --git a/tools/nomad-metrics/internal/write/write.go b/tools/nomad-metrics/internal/write/write.go index 1c75370..4971b86 100644 --- a/tools/nomad-metrics/internal/write/write.go +++ b/tools/nomad-metrics/internal/write/write.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package write import ( diff --git a/tools/nomad-metrics/main.go b/tools/nomad-metrics/main.go index 9be836e..f0f5d3f 100644 --- a/tools/nomad-metrics/main.go +++ b/tools/nomad-metrics/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import (