From a327894d0b65d7edbda59862551fd343bf950ba9 Mon Sep 17 00:00:00 2001 From: "hashicorp-copywrite[bot]" <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Date: Wed, 1 Feb 2023 17:05:53 +0000 Subject: [PATCH] [COMPLIANCE] Add Copyright and License Headers --- Gemfile | 3 +++ aws-local-env.sh | 3 +++ azure-local-env.sh | 3 +++ ci-functions.sh | 3 +++ consul-template/scripts/install-consul-template.sh | 3 +++ consul/init/systemd/consul-online.sh | 3 +++ consul/scripts/install-consul-systemd.sh | 3 +++ consul/scripts/install-consul.sh | 3 +++ envconsul/scripts/install-envconsul.sh | 3 +++ gcp-local-env.sh | 3 +++ nomad/init/systemd/nomad-force-leave-missing-peers-ec2.sh | 3 +++ nomad/init/systemd/nomad-online.sh | 3 +++ nomad/init/systemd/vault-token-ready.sh | 3 +++ nomad/scripts/install-docker.sh | 3 +++ nomad/scripts/install-java.sh | 3 +++ nomad/scripts/install-nomad-systemd.sh | 3 +++ nomad/scripts/install-nomad.sh | 3 +++ shared/scripts/Gemfile | 3 +++ shared/scripts/base-aws.sh | 3 +++ shared/scripts/base-azure.sh | 3 +++ shared/scripts/base.sh | 3 +++ shared/scripts/cleanup-aws.sh | 3 +++ shared/scripts/cleanup.sh | 3 +++ shared/scripts/disable-firewall.sh | 3 +++ shared/scripts/setup-ssh-user.sh | 3 +++ shared/scripts/setup-testing.sh | 3 +++ shared/scripts/setup-user.sh | 3 +++ shared/scripts/web-terminal.sh | 3 +++ spec/consul/consul_spec.rb | 3 +++ spec/nomad/docker_spec.rb | 3 +++ spec/nomad/java_spec.rb | 3 +++ spec/nomad/nomad_spec.rb | 3 +++ spec/shared/network_spec.rb | 3 +++ spec/shared/ntp_spec.rb | 3 +++ spec/shared/ssh_spec.rb | 3 +++ spec/spec_helper.rb | 3 +++ spec/vault/vault_spec.rb | 3 +++ vault-si/config/vault-si.hcl | 3 +++ vault-si/scripts/vault-si-install.sh | 3 +++ vault/scripts/install-vault-systemd.sh | 3 +++ vault/scripts/install-vault.sh | 3 +++ versions.sh | 3 +++ 42 files changed, 126 insertions(+) diff --git a/Gemfile b/Gemfile index 86867a2..5a7e0b5 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + source "https://rubygems.org" gem 'rake' diff --git a/aws-local-env.sh b/aws-local-env.sh index bb51f2d..e3814c7 100644 --- a/aws-local-env.sh +++ b/aws-local-env.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # aws-local-env.sh # # Disclaimer: Building AWS Packer images locally has not been tested. The Azure process has. diff --git a/azure-local-env.sh b/azure-local-env.sh index 8885036..9f396cc 100644 --- a/azure-local-env.sh +++ b/azure-local-env.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # azure-local-env.sh # # Variables you'll need to trigger Packer image builds locally diff --git a/ci-functions.sh b/ci-functions.sh index b05b586..dd90a43 100644 --- a/ci-functions.sh +++ b/ci-functions.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # This script includes a set of generic CI functions to test Packer Builds. prepare () { diff --git a/consul-template/scripts/install-consul-template.sh b/consul-template/scripts/install-consul-template.sh index 1f9a7e6..b4b2c8f 100644 --- a/consul-template/scripts/install-consul-template.sh +++ b/consul-template/scripts/install-consul-template.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/consul/init/systemd/consul-online.sh b/consul/init/systemd/consul-online.sh index 2b7bc6b..5e66bc2 100755 --- a/consul/init/systemd/consul-online.sh +++ b/consul/init/systemd/consul-online.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e set -o pipefail diff --git a/consul/scripts/install-consul-systemd.sh b/consul/scripts/install-consul-systemd.sh index 1c15fc4..ae24176 100644 --- a/consul/scripts/install-consul-systemd.sh +++ b/consul/scripts/install-consul-systemd.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/consul/scripts/install-consul.sh b/consul/scripts/install-consul.sh index e22f2ee..9a1dc73 100644 --- a/consul/scripts/install-consul.sh +++ b/consul/scripts/install-consul.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/envconsul/scripts/install-envconsul.sh b/envconsul/scripts/install-envconsul.sh index 440b620..1379be8 100644 --- a/envconsul/scripts/install-envconsul.sh +++ b/envconsul/scripts/install-envconsul.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/gcp-local-env.sh b/gcp-local-env.sh index f4b3009..414b42c 100644 --- a/gcp-local-env.sh +++ b/gcp-local-env.sh @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + export GCP_ACCOUNT_FILE_JSON="~/.gcloud/example.json" export GCP_ZONE="us-east1-b" export GCP_PROJECT_ID="ekg-image-test" diff --git a/nomad/init/systemd/nomad-force-leave-missing-peers-ec2.sh b/nomad/init/systemd/nomad-force-leave-missing-peers-ec2.sh index 7253f8d..6873875 100755 --- a/nomad/init/systemd/nomad-force-leave-missing-peers-ec2.sh +++ b/nomad/init/systemd/nomad-force-leave-missing-peers-ec2.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e diff --git a/nomad/init/systemd/nomad-online.sh b/nomad/init/systemd/nomad-online.sh index 7cf969d..2c16478 100755 --- a/nomad/init/systemd/nomad-online.sh +++ b/nomad/init/systemd/nomad-online.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + NOMAD_ADDRESS=${1:-"127.0.0.1:4646"} diff --git a/nomad/init/systemd/vault-token-ready.sh b/nomad/init/systemd/vault-token-ready.sh index d329fe4..f1bc1c1 100755 --- a/nomad/init/systemd/vault-token-ready.sh +++ b/nomad/init/systemd/vault-token-ready.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e set -o pipefail diff --git a/nomad/scripts/install-docker.sh b/nomad/scripts/install-docker.sh index ab31bf6..5141348 100644 --- a/nomad/scripts/install-docker.sh +++ b/nomad/scripts/install-docker.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x YUM=$(which yum 2>/dev/null) diff --git a/nomad/scripts/install-java.sh b/nomad/scripts/install-java.sh index 65ff2f2..f0ada7f 100644 --- a/nomad/scripts/install-java.sh +++ b/nomad/scripts/install-java.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x download_jdk() { diff --git a/nomad/scripts/install-nomad-systemd.sh b/nomad/scripts/install-nomad-systemd.sh index ef9f589..349e5be 100644 --- a/nomad/scripts/install-nomad-systemd.sh +++ b/nomad/scripts/install-nomad-systemd.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/nomad/scripts/install-nomad.sh b/nomad/scripts/install-nomad.sh index 5a973bd..e75d97d 100644 --- a/nomad/scripts/install-nomad.sh +++ b/nomad/scripts/install-nomad.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/shared/scripts/Gemfile b/shared/scripts/Gemfile index 86867a2..5a7e0b5 100644 --- a/shared/scripts/Gemfile +++ b/shared/scripts/Gemfile @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + source "https://rubygems.org" gem 'rake' diff --git a/shared/scripts/base-aws.sh b/shared/scripts/base-aws.sh index 63ae54a..bcfaaad 100644 --- a/shared/scripts/base-aws.sh +++ b/shared/scripts/base-aws.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/shared/scripts/base-azure.sh b/shared/scripts/base-azure.sh index fd4c7b7..3ead946 100644 --- a/shared/scripts/base-azure.sh +++ b/shared/scripts/base-azure.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/shared/scripts/base.sh b/shared/scripts/base.sh index 9abd0dd..96027a9 100644 --- a/shared/scripts/base.sh +++ b/shared/scripts/base.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/shared/scripts/cleanup-aws.sh b/shared/scripts/cleanup-aws.sh index ebe5f92..49bfa37 100644 --- a/shared/scripts/cleanup-aws.sh +++ b/shared/scripts/cleanup-aws.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/shared/scripts/cleanup.sh b/shared/scripts/cleanup.sh index 1e2628b..28500fb 100644 --- a/shared/scripts/cleanup.sh +++ b/shared/scripts/cleanup.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/shared/scripts/disable-firewall.sh b/shared/scripts/disable-firewall.sh index 43fd6b5..a50e13e 100644 --- a/shared/scripts/disable-firewall.sh +++ b/shared/scripts/disable-firewall.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/shared/scripts/setup-ssh-user.sh b/shared/scripts/setup-ssh-user.sh index b87b7d1..daf9b2c 100644 --- a/shared/scripts/setup-ssh-user.sh +++ b/shared/scripts/setup-ssh-user.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/shared/scripts/setup-testing.sh b/shared/scripts/setup-testing.sh index 0893ff6..2c8173e 100644 --- a/shared/scripts/setup-testing.sh +++ b/shared/scripts/setup-testing.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + echo "Running" diff --git a/shared/scripts/setup-user.sh b/shared/scripts/setup-user.sh index 0aee049..fabc0f7 100644 --- a/shared/scripts/setup-user.sh +++ b/shared/scripts/setup-user.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/shared/scripts/web-terminal.sh b/shared/scripts/web-terminal.sh index c931672..07bb305 100644 --- a/shared/scripts/web-terminal.sh +++ b/shared/scripts/web-terminal.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e echo "Running" diff --git a/spec/consul/consul_spec.rb b/spec/consul/consul_spec.rb index fa05317..18fd37d 100644 --- a/spec/consul/consul_spec.rb +++ b/spec/consul/consul_spec.rb @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + require 'spec_helper' describe file('/usr/local/bin/consul') do diff --git a/spec/nomad/docker_spec.rb b/spec/nomad/docker_spec.rb index 2764923..9d67176 100644 --- a/spec/nomad/docker_spec.rb +++ b/spec/nomad/docker_spec.rb @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + require 'spec_helper' describe command('docker --version'), :if => os[:family] == 'debian' do diff --git a/spec/nomad/java_spec.rb b/spec/nomad/java_spec.rb index 64a04d0..db18b94 100644 --- a/spec/nomad/java_spec.rb +++ b/spec/nomad/java_spec.rb @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + require 'spec_helper' describe command('java -version') do diff --git a/spec/nomad/nomad_spec.rb b/spec/nomad/nomad_spec.rb index 108ab04..f6930ee 100644 --- a/spec/nomad/nomad_spec.rb +++ b/spec/nomad/nomad_spec.rb @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + require 'spec_helper' describe file('/usr/local/bin/nomad') do diff --git a/spec/shared/network_spec.rb b/spec/shared/network_spec.rb index 52e5ed4..cc17426 100644 --- a/spec/shared/network_spec.rb +++ b/spec/shared/network_spec.rb @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + if !host_inventory['user']['vagrant'] describe interface('eth0') do it { should be_up } diff --git a/spec/shared/ntp_spec.rb b/spec/shared/ntp_spec.rb index 5516ac5..1226204 100644 --- a/spec/shared/ntp_spec.rb +++ b/spec/shared/ntp_spec.rb @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + describe package('ntp') do it { should be_installed } end diff --git a/spec/shared/ssh_spec.rb b/spec/shared/ssh_spec.rb index 541658d..e8de9fd 100644 --- a/spec/shared/ssh_spec.rb +++ b/spec/shared/ssh_spec.rb @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + describe service('sshd') do it { should be_enabled } end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7ed6c97..f48588b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + require 'serverspec' require 'serverspec_extended_types' require 'specinfra' diff --git a/spec/vault/vault_spec.rb b/spec/vault/vault_spec.rb index 86c8720..32a87e2 100644 --- a/spec/vault/vault_spec.rb +++ b/spec/vault/vault_spec.rb @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + require 'spec_helper' describe file('/usr/local/bin/vault') do diff --git a/vault-si/config/vault-si.hcl b/vault-si/config/vault-si.hcl index a2ba5a6..ed6088d 100644 --- a/vault-si/config/vault-si.hcl +++ b/vault-si/config/vault-si.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + environment "aws" { role = "nomad-server" } diff --git a/vault-si/scripts/vault-si-install.sh b/vault-si/scripts/vault-si-install.sh index 8d90a79..873b90b 100644 --- a/vault-si/scripts/vault-si-install.sh +++ b/vault-si/scripts/vault-si-install.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/vault/scripts/install-vault-systemd.sh b/vault/scripts/install-vault-systemd.sh index 174db5f..30d0004 100644 --- a/vault/scripts/install-vault-systemd.sh +++ b/vault/scripts/install-vault-systemd.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/vault/scripts/install-vault.sh b/vault/scripts/install-vault.sh index 95b0275..d7fc9b2 100644 --- a/vault/scripts/install-vault.sh +++ b/vault/scripts/install-vault.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -x echo "Running" diff --git a/versions.sh b/versions.sh index c05cbc7..240a59a 100644 --- a/versions.sh +++ b/versions.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # X.Y.Z (e.g. 0.12.3) export PACKER_VERSION="1.1.3"