Change credentials;Prevent/Delay SSH connectivity
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
64ecc33dcb
commit
94e1624180
@ -1,7 +1,9 @@
|
|||||||
#cloud-config
|
#cloud-config
|
||||||
autoinstall:
|
autoinstall:
|
||||||
version: 1
|
version: 1
|
||||||
locale: en_US
|
early-commands:
|
||||||
|
# Block inbound SSH to stop Packer trying to connect during initial install
|
||||||
|
- iptables -A INPUT -p tcp --dport 22 -j DROP locale: en_US
|
||||||
keyboard:
|
keyboard:
|
||||||
layout: en
|
layout: en
|
||||||
variant: us
|
variant: us
|
||||||
@ -16,7 +18,7 @@ autoinstall:
|
|||||||
name: lvm
|
name: lvm
|
||||||
identity:
|
identity:
|
||||||
hostname: packer-template
|
hostname: packer-template
|
||||||
username: root
|
username: ubuntu
|
||||||
password: <<ssh-password>>
|
password: <<ssh-password>>
|
||||||
ssh:
|
ssh:
|
||||||
install-server: yes
|
install-server: yes
|
||||||
@ -25,5 +27,5 @@ autoinstall:
|
|||||||
# - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCi9eAu6KBaShdcL4pxi6/sJp+IS6nCKexcjQdwFLxg+EoiT2MTAnMsjnfi570het+VV+iOigcZLuRwEcAPh6rSQOtpikmpV6WFjzToWq9aUxDrxWsp/iEPHp+sbjrlsdnGvLGY9XhmPs9s5I8xFQbwF6ilhMIQm+RxtGJJuPUWaF+uXo+3CB91A6bK/rjs97iAjrPZRs0vo5hJGqrIGFi3WP9hf8hF9oWz2BiLRYBib3il6lsAl4Ca0sI//gNM0Ztj4gB7qv1+uPz157bk0IZoN285/72l/rUZVSPIwO+QFZFK07FsyVrpAgMlHk65BiSAO4DtolZEArfXRE1g1DH/ mail@example.com
|
# - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCi9eAu6KBaShdcL4pxi6/sJp+IS6nCKexcjQdwFLxg+EoiT2MTAnMsjnfi570het+VV+iOigcZLuRwEcAPh6rSQOtpikmpV6WFjzToWq9aUxDrxWsp/iEPHp+sbjrlsdnGvLGY9XhmPs9s5I8xFQbwF6ilhMIQm+RxtGJJuPUWaF+uXo+3CB91A6bK/rjs97iAjrPZRs0vo5hJGqrIGFi3WP9hf8hF9oWz2BiLRYBib3il6lsAl4Ca0sI//gNM0Ztj4gB7qv1+uPz157bk0IZoN285/72l/rUZVSPIwO+QFZFK07FsyVrpAgMlHk65BiSAO4DtolZEArfXRE1g1DH/ mail@example.com
|
||||||
user-data:
|
user-data:
|
||||||
disable_root: false
|
disable_root: false
|
||||||
# late-commands:
|
late-commands:
|
||||||
# - echo 'ubnt ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/ubuntu
|
- echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/ubuntu
|
||||||
|
@ -26,9 +26,11 @@ source "vsphere-iso" "ubuntuserver" {
|
|||||||
boot_wait = "2s"
|
boot_wait = "2s"
|
||||||
|
|
||||||
communicator = "ssh"
|
communicator = "ssh"
|
||||||
ssh_username = "root"
|
ssh_username = "ubuntu"
|
||||||
ssh_password = var.ssh_password
|
ssh_password = var.ssh_password
|
||||||
ssh_timeout = "10m"
|
ssh_timeout = "20m"
|
||||||
|
ssh_handshake_attempts = "100"
|
||||||
|
ssh_pty = true
|
||||||
|
|
||||||
CPUs = 2
|
CPUs = 2
|
||||||
RAM = 4096
|
RAM = 4096
|
||||||
|
Loading…
Reference in New Issue
Block a user