Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
Fix Packer and Terraform setup (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Mar 5, 2024
1 parent 73f59fe commit bce8033
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/sd-template-basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,17 @@ config:

- checkout-hashicorp-deployment-tool: git clone --depth 1 https://github.com/QubitPi/hashicorp-aws.git ../hashicorp-aws

- setup-packer: cp ../hashicorp-aws/hashicorp/webservice/images/aws-ws.pkr.hcl ../hashicorp-aws/hashicorp/webservice/images/basic
- setup-packer: |
cp ../hashicorp-aws/hashicorp/webservice/images/aws-ws.packer.pkr.hcl ../hashicorp-aws/hashicorp/webservice/images/basic
cp ../hashicorp-aws/hashicorp/webservice/images/aws-ws.source.pkr.hcl ../hashicorp-aws/hashicorp/webservice/images/basic
- load-packer-variable-file: |
echo ami_region = \"$(meta get parameters.ami-region.value)\" >> ../hashicorp-aws/hashicorp/webservice/images/basic/aws-ws.auto.pkrvars.hcl
echo ami_name = \"$(meta get parameters.ami-name.value)\" >> ../hashicorp-aws/hashicorp/webservice/images/basic/aws-ws.auto.pkrvars.hcl
echo instance_type = \"$(meta get parameters.instance-type.value)\" >> ../hashicorp-aws/hashicorp/webservice/images/basic/aws-ws.auto.pkrvars.hcl
echo ws_war_path = \"ROOT.war\" >> ../hashicorp-aws/hashicorp/webservice/images/basic/aws-ws.auto.pkrvars.hcl
echo aws_ws_filebeat_config_file_path = \"filebeat.yml\" >> ../hashicorp-aws/hashicorp/webservice/images/basic/aws-ws.auto.pkrvars.hcl
- setup-terraform: cp ../hashicorp-aws/hashicorp/webservice/instances/aws-ws.base.tf ../hashicorp-aws/hashicorp/webservice/instances/basic
- load-terraform-variable-file: |
echo aws_deploy_region = \"$(meta get parameters.aws-deploy-region.value)\" >> ../hashicorp-aws/hashicorp/webservice/instances/basic/aws-ws.auto.tfvars
echo ami_name = \"$(meta get parameters.ami-name.value)\" >> ../hashicorp-aws/hashicorp/webservice/instances/basic/aws-ws.auto.tfvars
Expand Down
1 change: 1 addition & 0 deletions templates/sd-template-jpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ config:
setup-packer,
load-packer-variable-file,

setup-terraform,
load-terraform-variable-file,

clone-webservice,
Expand Down

0 comments on commit bce8033

Please sign in to comment.