Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

source "https://rubygems.org"

gem 'rake'
Expand Down
3 changes: 3 additions & 0 deletions aws-local-env.sh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions azure-local-env.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions ci-functions.sh
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
3 changes: 3 additions & 0 deletions consul-template/scripts/install-consul-template.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions consul/init/systemd/consul-online.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


set -e
set -o pipefail
Expand Down
3 changes: 3 additions & 0 deletions consul/scripts/install-consul-systemd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions consul/scripts/install-consul.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions envconsul/scripts/install-envconsul.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions gcp-local-env.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 3 additions & 0 deletions nomad/init/systemd/nomad-force-leave-missing-peers-ec2.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


set -e

Expand Down
3 changes: 3 additions & 0 deletions nomad/init/systemd/nomad-online.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


NOMAD_ADDRESS=${1:-"127.0.0.1:4646"}

Expand Down
3 changes: 3 additions & 0 deletions nomad/init/systemd/vault-token-ready.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


set -e
set -o pipefail
Expand Down
3 changes: 3 additions & 0 deletions nomad/scripts/install-docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

YUM=$(which yum 2>/dev/null)
Expand Down
3 changes: 3 additions & 0 deletions nomad/scripts/install-java.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

download_jdk() {
Expand Down
3 changes: 3 additions & 0 deletions nomad/scripts/install-nomad-systemd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions nomad/scripts/install-nomad.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions shared/scripts/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

source "https://rubygems.org"

gem 'rake'
Expand Down
3 changes: 3 additions & 0 deletions shared/scripts/base-aws.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions shared/scripts/base-azure.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions shared/scripts/base.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions shared/scripts/cleanup-aws.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions shared/scripts/cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions shared/scripts/disable-firewall.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions shared/scripts/setup-ssh-user.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions shared/scripts/setup-testing.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


echo "Running"

Expand Down
3 changes: 3 additions & 0 deletions shared/scripts/setup-user.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions shared/scripts/web-terminal.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -e

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions spec/consul/consul_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

require 'spec_helper'

describe file('/usr/local/bin/consul') do
Expand Down
3 changes: 3 additions & 0 deletions spec/nomad/docker_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions spec/nomad/java_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

require 'spec_helper'

describe command('java -version') do
Expand Down
3 changes: 3 additions & 0 deletions spec/nomad/nomad_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

require 'spec_helper'

describe file('/usr/local/bin/nomad') do
Expand Down
3 changes: 3 additions & 0 deletions spec/shared/network_spec.rb
Original file line number Diff line number Diff line change
@@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions spec/shared/ntp_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

describe package('ntp') do
it { should be_installed }
end
Expand Down
3 changes: 3 additions & 0 deletions spec/shared/ssh_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

describe service('sshd') do
it { should be_enabled }
end
Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

require 'serverspec'
require 'serverspec_extended_types'
require 'specinfra'
Expand Down
3 changes: 3 additions & 0 deletions spec/vault/vault_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

require 'spec_helper'

describe file('/usr/local/bin/vault') do
Expand Down
3 changes: 3 additions & 0 deletions vault-si/config/vault-si.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

environment "aws" {
role = "nomad-server"
}
Expand Down
3 changes: 3 additions & 0 deletions vault-si/scripts/vault-si-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions vault/scripts/install-vault-systemd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions vault/scripts/install-vault.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

set -x

echo "Running"
Expand Down
3 changes: 3 additions & 0 deletions versions.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down