Skip to content

Instantly share code, notes, and snippets.

@mgwilliams
Created February 10, 2012 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgwilliams/088aab0ed8bd3ee8dc75 to your computer and use it in GitHub Desktop.
Save mgwilliams/088aab0ed8bd3ee8dc75 to your computer and use it in GitHub Desktop.
d-i preseed/late_command string in-target chage -d 0 ubuntu \
&& in-target /bin/bash -c "mkdir -p /var/opt/foobar/; cd /var/opt/foobar; if [ -d puppet ]; then cd puppet; git pull; else git clone git://172.x.x.x/puppet.git; cd puppet; fi; ./install.sh; apt-get -q update; puppet apply /etc/puppet/manifests/site.pp; killall orchestra-import-isos" \ && wget "http://172.x.x.x:80/cblr/svc/op/nopxe/system/foo" -O /dev/null \
&& true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment