Skip to content

Commit eb774f0

Browse files
committed
Add password to user (packer)
1 parent cfe9fd9 commit eb774f0

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

.packer/debian-cloud/machine.pkr.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ build {
4141
script = ".packer/machinefile.sh"
4242
environment_vars = [
4343
"TARGET=debian-cloud",
44+
"USER_PASSWORD=password",
4445
"SSH_HOST=${build.Host}",
4546
"SSH_PORT=${build.Port}"]
4647
}

.packer/fedora-cloud/machine.pkr.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ build {
4141
script = ".packer/machinefile.sh"
4242
environment_vars = [
4343
"TARGET=fedora-cloud",
44+
"USER_PASSWORD=password",
4445
"SSH_HOST=${build.Host}",
4546
"SSH_PORT=${build.Port}"]
4647
}

.packer/machinefile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
machinefile --host ${SSH_HOST} --port ${SSH_PORT} --user root --password password .packer/${TARGET}/Machinefile .
3+
machinefile --host ${SSH_HOST} --port ${SSH_PORT} --user root --password password .packer/${TARGET}/Machinefile --arg USER_PASSWD=${USER_PASSWORD} .

.packer/ubuntu-cloud/machine.pkr.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ build {
4141
script = ".packer/machinefile.sh"
4242
environment_vars = [
4343
"TARGET=ubuntu-cloud",
44+
"USER_PASSWORD=password",
4445
"SSH_HOST=${build.Host}",
4546
"SSH_PORT=${build.Port}"]
4647
}

0 commit comments

Comments
 (0)