Skip to content

Instantly share code, notes, and snippets.

@robertstarmer
Created October 22, 2013 06:29
Show Gist options
  • Save robertstarmer/7096044 to your computer and use it in GitHub Desktop.
Save robertstarmer/7096044 to your computer and use it in GitHub Desktop.
preseed elements to enable puppet 'openstack-installer' cobbler
d-i pkgsel/include string openssh-server vim vlan lvm2 ntp puppet
d-i preseed/early_command string wget -O /dev/null http://$http_server:$http_port/cblr/svc/op/trig/mode/pre/system/$system_name
d-i preseed/late_command string in-target puppet agent --test --waitforcert 0 || true;\
wget -O /dev/null http://$http_server:$http_port/cblr/svc/op/nopxe/system/$system_name ; \
wget -O /dev/null http://$http_server:$http_port/cblr/svc/op/trig/mode/post/system/$system_name ; \
sed -e 's/START=no/START=yes/' -i /target/etc/default/puppet ;\
sed -e "/logdir/ a pluginsync=true" -i /target/etc/puppet/puppet.conf ; \
sed -e "/logdir/ a server=alpha-build.ctocllab.cisco.com" -i /target/etc/puppet/puppet.conf ; \
build_server_ip=$http_server bash <(curl -fsS https://raw.github.com/CiscoSystems/openstack-installer/master/install-scripts/setup.sh) ;\
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment