Skip to content

Commit

Permalink
chore: Fix packer build
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Dec 13, 2022
1 parent 5c74af0 commit 7171204
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 40 deletions.
5 changes: 5 additions & 0 deletions docker/_base/build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ build {
extra_arguments = ["-v"]
playbook_file = "ansible/playbook.yml"
user = "root"
ansible_env_vars = [
"ANSIBLE_REMOTE_TMP=/tmp/.ansible/tmp",
"ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'",
"ANSIBLE_HOST_KEY_CHECKING=False"
]
}

post-processors {
Expand Down
5 changes: 5 additions & 0 deletions docker/ansible/build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ build {
extra_arguments = ["-v"]
playbook_file = "ansible/playbook.yml"
user = "root"
ansible_env_vars = [
"ANSIBLE_REMOTE_TMP=/tmp/.ansible/tmp",
"ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'",
"ANSIBLE_HOST_KEY_CHECKING=False"
]
}

post-processors {
Expand Down
5 changes: 5 additions & 0 deletions docker/java/openjdk11.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ build {
extra_arguments = ["-v"]
playbook_file = "ansible/openjdk11.yml"
user = "root"
ansible_env_vars = [
"ANSIBLE_REMOTE_TMP=/tmp/.ansible/tmp",
"ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'",
"ANSIBLE_HOST_KEY_CHECKING=False"
]
}

post-processors {
Expand Down
5 changes: 5 additions & 0 deletions docker/java/openjdk17.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ build {
extra_arguments = ["-v"]
playbook_file = "ansible/openjdk17.yml"
user = "root"
ansible_env_vars = [
"ANSIBLE_REMOTE_TMP=/tmp/.ansible/tmp",
"ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'",
"ANSIBLE_HOST_KEY_CHECKING=False"
]
}

post-processors {
Expand Down
40 changes: 0 additions & 40 deletions docker/nodejs/build.json

This file was deleted.

5 changes: 5 additions & 0 deletions docker/nodejs/build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ build {
extra_arguments = ["-v"]
playbook_file = "ansible/playbook.yml"
user = "root"
ansible_env_vars = [
"ANSIBLE_REMOTE_TMP=/tmp/.ansible/tmp",
"ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'",
"ANSIBLE_HOST_KEY_CHECKING=False"
]
}

post-processors {
Expand Down
5 changes: 5 additions & 0 deletions docker/terraform/build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ build {
extra_arguments = ["-v"]
playbook_file = "ansible/playbook.yml"
user = "root"
ansible_env_vars = [
"ANSIBLE_REMOTE_TMP=/tmp/.ansible/tmp",
"ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'",
"ANSIBLE_HOST_KEY_CHECKING=False"
]
}

post-processors {
Expand Down

0 comments on commit 7171204

Please sign in to comment.