Skip to content

Commit

Permalink
update packer region
Browse files Browse the repository at this point in the history
  • Loading branch information
star3am committed Nov 10, 2023
1 parent 234d1cf commit 43506d4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ jobs:

- name: Terraform auto tfvars
run: |
echo "use_packer_image = true" >> terraform.auto.tfvars
echo "ssh_public_key = \"${{ vars.TF_VAR_SSH_PUBLIC_KEY }}\"" >> terraform.auto.tfvars
echo "ssh_private_key = <<EOF\n${{ secrets.TF_VAR_SSH_PRIVATE_KEY }}\nEOF" >> terraform.auto.tfvars
ls -la
Expand Down Expand Up @@ -291,6 +292,7 @@ jobs:

- name: Terraform auto tfvars
run: |
echo "use_packer_image = true" >> terraform.auto.tfvars
echo "ssh_public_key = \"${{ vars.TF_VAR_SSH_PUBLIC_KEY }}\"" >> terraform.auto.tfvars
echo "ssh_private_key = <<EOF\n${{ secrets.TF_VAR_SSH_PRIVATE_KEY }}\nEOF" >> terraform.auto.tfvars
ls -la
Expand Down
6 changes: 6 additions & 0 deletions terraform/awx-ansible-tower-instance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Description: Content of your SSH public key, matching the private key below

Type: `string`

### <a name="input_use_packer_image"></a> [use_packer_image](#input_use_packer_image)

Description: Use your Packer build image

Type: `bool`

## Optional Inputs

No optional inputs.
Expand Down
2 changes: 1 addition & 1 deletion terraform/awx-ansible-tower-instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module "awx_ansible_tower" {
source = "github.com/star3am/terraform-hashicorp-hashiqube.git?ref=riaan"
deploy_to_aws = true
aws_instance_type = "t2.large"
use_packer_image = true
use_packer_image = var.use_packer_image
deploy_to_azure = false
deploy_to_gcp = false
debug_user_data = true
Expand Down
2 changes: 1 addition & 1 deletion terraform/awx-ansible-tower-instance/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ variable "ssh_private_key" {
variable "use_packer_image" {
type = bool
description = "Use your Packer build image"
}
}

0 comments on commit 43506d4

Please sign in to comment.