Skip to content

Commit 3f12a19

Browse files
committed
Packer configuration update
1 parent 2b36be1 commit 3f12a19

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

01-jenkins-setup/jenkins-agent.pkr.hcl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
variable "ami_id" {
22
type = string
3-
default = "ami-0735c191cf914754d"
3+
default = "ami-04b4f1a9cf54c11d0"
44
}
55

66
variable "public_key_path" {
@@ -15,8 +15,8 @@ locals {
1515
source "amazon-ebs" "jenkins" {
1616
ami_name = "${local.app_name}"
1717
instance_type = "t2.micro"
18-
region = "us-west-2"
19-
availability_zone = "us-west-2a"
18+
region = "us-east-1"
19+
availability_zone = "us-east-1c"
2020
source_ami = "${var.ami_id}"
2121
ssh_username = "ubuntu"
2222
iam_instance_profile = "jenkins-instance-profile"
@@ -31,7 +31,7 @@ build {
3131

3232
provisioner "ansible" {
3333
playbook_file = "ansible/jenkins-agent.yaml"
34-
extra_arguments = [ "--extra-vars", "public_key_path=${var.public_key_path}", "--scp-extra-args", "'-O'", "--ssh-extra-args", "-o IdentitiesOnly=yes -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa" ]
34+
extra_arguments = [ "--extra-vars", "public_key_path=${var.public_key_path}", "--scp-extra-args", "'-O'", "--ssh-extra-args", "-o IdentitiesOnly=yes -o HostKeyAlgorithms=+ssh-rsa" ]
3535
}
3636

3737
post-processor "manifest" {

01-jenkins-setup/jenkins-controller.pkr.hcl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
variable "ami_id" {
22
type = string
3-
default = "ami-0735c191cf914754d"
3+
default = "ami-04b4f1a9cf54c11d0"
44
}
55

66
variable "efs_mount_point" {
@@ -9,14 +9,14 @@ variable "efs_mount_point" {
99
}
1010

1111
locals {
12-
app_name = "jenkins-controller"
12+
app_name = "jenkins-controller-updated"
1313
}
1414

1515
source "amazon-ebs" "jenkins" {
1616
ami_name = "${local.app_name}"
1717
instance_type = "t2.micro"
18-
region = "us-west-2"
19-
availability_zone = "us-west-2a"
18+
region = "us-east-1"
19+
availability_zone = "us-east-1d"
2020
source_ami = "${var.ami_id}"
2121
ssh_username = "ubuntu"
2222
tags = {
@@ -30,7 +30,7 @@ build {
3030

3131
provisioner "ansible" {
3232
playbook_file = "ansible/jenkins-controller.yaml"
33-
extra_arguments = [ "--extra-vars", "ami-id=${var.ami_id} efs_mount_point=${var.efs_mount_point}", "--scp-extra-args", "'-O'", "--ssh-extra-args", "-o IdentitiesOnly=yes -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa" ]
33+
extra_arguments = [ "--extra-vars", "ami-id=${var.ami_id} efs_mount_point=${var.efs_mount_point}", "--scp-extra-args", "'-O'", "--ssh-extra-args", "-o IdentitiesOnly=yes -o HostKeyAlgorithms=+ssh-rsa" ]
3434
}
3535

3636
post-processor "manifest" {

0 commit comments

Comments
 (0)