Sha256: 85a505e1c1c1d6d56f289dbbf073fefe0cca37da6968cf2724f933f8a0d25b25
Contents?: true
Size: 1.68 KB
Versions: 42
Compression:
Stored size: 1.68 KB
Contents
#!/bin/bash # var to determine package source PKGSRC=net date > /etc/vagrant_box_build_time # launch automated install su -c 'aif -p automatic -c aif.cfg' # copy over the vbox version file /bin/cp -f /root/.vbox_version /mnt/root/.vbox_version # chroot into the new system mount -o bind /dev /mnt/dev mount -o bind /sys /mnt/sys mount -t proc none /mnt/proc chroot /mnt <<ENDCHROOT # make sure network is up and a nameserver is available dhcpcd eth0 # sudo setup # note: do not use tabs here, it autocompletes and borks the sudoers file cat <<EOF > /etc/sudoers root ALL=(ALL) ALL %wheel ALL=(ALL) NOPASSWD: ALL EOF # set up user accounts passwd<<EOF vagrant vagrant EOF useradd -m -G wheel -r vagrant passwd -d vagrant passwd vagrant<<EOF vagrant vagrant EOF # create puppet group groupadd puppet # make sure sshd starts sed -i 's:^DAEMONS\(.*\))$:DAEMONS\1 sshd):' /etc/rc.conf # install mitchellh's ssh key mkdir /home/vagrant/.ssh chmod 700 /home/vagrant/.ssh wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys chmod 600 /home/vagrant/.ssh/authorized_keys chown -R vagrant /home/vagrant/.ssh # choose a mirror sed -i 's/^#\(.*leaseweb.*\)/\1/' /etc/pacman.d/mirrorlist # install some packages gem install --no-ri --no-rdoc chef facter cd /tmp git clone https://github.com/puppetlabs/puppet.git cd puppet ruby install.rb --bindir=/usr/bin --sbindir=/sbin 2>/dev/null # set up networking [[ $PKGSRC == 'net' ]] && sed -i 's/^\(interface=*\)/\1eth0/' /etc/rc.conf # leave the chroot ENDCHROOT # take down network to prevent next postinstall.sh from starting too soon /etc/rc.d/network stop # and reboot! reboot
Version data entries
42 entries across 21 versions & 3 rubygems
Version | Path |
---|---|
veewee-0.2.1 | templates/archlinux-i386-netboot/postinstall.sh |
veewee-0.2.1 | templates/archlinux-x86_64-netboot/postinstall.sh |