Skip to content

Instantly share code, notes, and snippets.

View marthag's full-sized avatar

Martha Greenberg marthag

  • Tel Aviv, Israel
View GitHub Profile
@marthag
marthag / create_zone.rb
Created July 22, 2012 17:14
Zone creation script
#!/usr/bin/env ruby
%w(erb git net/ssh resolv chef chef/knife/cookbook_upload chef/cookbook_uploader chef/knife/node_run_list_add chef/knife/bootstrap net/ssh/multi chef/knife/core/bootstrap_context chef/knife/ssh mixlib/cli).each do |gem|
begin
require gem
rescue LoadError
raise "Could not load gem #{gem}, please install with sudo gem install #{gem}"
end
end
@marthag
marthag / solaris.erb
Created July 22, 2012 14:15
knife bootstrap file for chef on solaris 5.10 x86
bash -c '
export PATH=/opt/csw/bin:/usr/sfw/bin:/usr/local/bin:/usr/sbin:/usr/bin
if [ ! -f /.profile ] ; then
echo "creating initial .profile"
echo -e "PATH=/opt/csw/bin:/usr/sfw/bin:/usr/local/bin:/usr/sbin:/usr/bin\nexport PATH" >> /.profile
fi
if [ ! -f /var/ld/ld.config ]; then