Skip to content

Commit

Permalink
fix relative path to terraform modules
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher A. Snapp <[email protected]>
  • Loading branch information
snapp committed Nov 19, 2019
1 parent 67ff848 commit 4084e82
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ steps:

- label: lint-terraform
command:
- cd /workdir/terraform
- cd /workdir/terraform/aws
- make lint
expeditor:
executor:
Expand Down
6 changes: 3 additions & 3 deletions terraform/aws/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,19 @@ endif

create-vpc: verify-aws
@set -e; \
cd aws_vpc && \
cd modules/aws_vpc && \
rm -rf .terraform && \
terraform init && \
terraform apply -auto-approve

show-vpc: verify-aws
@set -e; \
cd aws_vpc && \
cd modules/aws_vpc && \
terraform show

destroy-vpc: verify-aws
@set -e; \
cd aws_vpc && \
cd modules/aws_vpc && \
terraform destroy -auto-approve && \
rm -rf .terraform terraform.tfstate*

Expand Down
6 changes: 3 additions & 3 deletions terraform/aws/scenarios/omnibus-external-openldap/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "chef_server" {
source = "../../aws_instance"
source = "../../modules/aws_instance"

aws_profile = "${var.aws_profile}"
aws_region = "${var.aws_region}"
Expand All @@ -14,7 +14,7 @@ module "chef_server" {
}

module "ldap" {
source = "../../aws_instance"
source = "../../modules/aws_instance"

aws_profile = "${var.aws_profile}"
aws_region = "${var.aws_region}"
Expand Down Expand Up @@ -66,7 +66,7 @@ resource "null_resource" "ldap_cookbook" {
depends_on = ["null_resource.ldap_config"]

provisioner "local-exec" {
command = "chef-run --user ${module.ldap.ssh_username} ${module.ldap.public_ipv4_dns} ${path.module}/../../../dev/cookbooks/provisioning/recipes/ldap-server.rb"
command = "chef-run --user ${module.ldap.ssh_username} ${module.ldap.public_ipv4_dns} ${path.module}/../../../../dev/cookbooks/provisioning/recipes/ldap-server.rb"
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "chef_server" {
source = "../../aws_instance"
source = "../../modules/aws_instance"

aws_profile = "${var.aws_profile}"
aws_region = "${var.aws_region}"
Expand Down
4 changes: 2 additions & 2 deletions terraform/aws/scenarios/omnibus-tiered-fresh-install/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "back_end" {
source = "../../aws_instance"
source = "../../modules/aws_instance"

aws_profile = "${var.aws_profile}"
aws_region = "${var.aws_region}"
Expand All @@ -14,7 +14,7 @@ module "back_end" {
}

module "front_end" {
source = "../../aws_instance"
source = "../../modules/aws_instance"

aws_profile = "${var.aws_profile}"
aws_region = "${var.aws_region}"
Expand Down

0 comments on commit 4084e82

Please sign in to comment.