summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--installer.customize16
1 files changed, 2 insertions, 14 deletions
diff --git a/installer.customize b/installer.customize
index 8649abf..e1c1d73 100644
--- a/installer.customize
+++ b/installer.customize
@@ -26,17 +26,5 @@ export LC_ALL=C
rootdir="$1"
-# Create an account for ansible.
-chroot "$rootdir" adduser --gecos 'Installer' --disabled-password installer
-
-# Install an authorize_keys file so that ansible can access the account.
-chroot "$rootdir" install -d -o ansible -g ansible -m 0700 /home/ansible/.ssh
-install -m 0600 authorized_keys "$rootdir/home/ansible/.ssh/authorized_keys"
-chroot "$rootdir" chown ansible:ansible /home/ansible/.ssh/authorized_keys
-
-# Add ansible to sudoers, without password.
-cat <<EOF >> "$rootdir/etc/sudoers.d/installer"
-installer ALL=(ALL:ALL) NOPASSWD: ALL
-EOF
-chroot "$rootdir" chown root:root /etc/sudoers.d/installer
-chroot "$rootdir" chmod 0440 /etc/sudoers.d/installer
+# Put router image on installer image.
+cp router.img.gz "$1/."