Created
October 23, 2008 23:16
-
-
Save kelp/19263 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Run the last bits of setup on a new autoinstalled system. | |
# | |
. /target/etc/lsb-release | |
printf "\n\t\t\tiLike - $DISTRIB_DESCRIPTION $DISTRIB_CODENAME\n\n\n" > /target/etc/motd.tail | |
wget -O /target/etc/apt/sources.list http://10.1.1.1/sources.list | |
in-target apt-get update | |
mkdir -pm 700 /target/root/.ssh/ | |
wget -O /target/root/.ssh/authorized_keys http://10.1.1.1/authorized_keys | |
wget -O /target/etc/apt/preferences http://10.1.1.1/apt-preferences | |
apt-install puppet | |
wget -O /target/etc/default/puppet http://10.1.1.1/defaults-puppet | |
in-target update-rc.d -f puppet remove | |
in-target update-rc.d puppet defaults 99 | |
touch /target/etc/puppet-firstrun | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment