-
Install Vagrant
-
Install SmartOS guest detection
vagrant plugin install vagrant-smartos-guest- Install zones support
Install Vagrant
Install SmartOS guest detection
vagrant plugin install vagrant-smartos-guest| pkgin -y install ruby193 gmake build-essential ; | |
| gem install bundler --no-ri --no-rdoc | |
| pushd /root | |
| git clone https://github.com/opscode/omnibus-ruby | |
| git clone https://github.com/opscode/omnibus-software | |
| git clone https://github.com/opscode/omnibus-chef | |
| pushd omnibus-chef | |
| bundle install --binstubs | |
| /root/omnibus-chef/bin/omnibus build project chef |
UPDATE: this has been made slightly more official by way of turning it into a repo: https://github.com/sax/vagrant-smartos-packager
Notes:
On local machine, download the latest SmartOS platform image and turn it into a virtualbox image:
| [health_check] *** Health Check Failed, Summary follows: | |
| [health_check] *** The following Omnibus-built libraries have unsafe or unmet dependencies: | |
| [health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/readline.so | |
| [health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/psych.so | |
| [health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/openssl.so | |
| [health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/iconv.so | |
| [health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/digest/sha2.so | |
| [health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/digest/sha1.so | |
| [health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/digest/rmd160.so | |
| [health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/digest/md5.so |
| #!/bin/bash | |
| # Simple Ad Hoc Carbon Cache Service | |
| # | |
| # put in /opt/custom/share/svc/carbon-cache.sh | |
| set -o xtrace | |
| . /lib/svc/share/smf_include.sh | |
| cd / | |
| PATH=/usr/sbin:/usr/bin:/opt/custom/bin:/opt/custom/sbin; export PATH |
| export NOKOGIRI_USE_SYSTEM_LIBRARIES=1 |
| pkgin -y in build-essential gcc47 gcc47-libs libyaml | |
| wget -N http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz | |
| tar xvf ruby-2.0.0-p247.tar.gz | |
| cd ruby-2.0.0-p247 | |
| export LDFLAGS='-R/opt/local -L/opt/local/lib' | |
| CXXFLAGS="-m64 -O3 -g -Wall" bash ./configure --prefix=$HOME/ruby-2.0.0 --with-opt-dir=/opt/local --enable-shared ac_cv_func_dl_iterate_phdr=no CFLAGS="-R -fPIC" rb_cv_have_signbit=no | |
| make |
| # Wanelo Universal Bootstrap Script (W.U.B.S.) | |
| bash -c ' | |
| # Linux Distros: | |
| if [ $(uname -s | grep Linux) ]; then | |
| true && curl -s -L https://www.opscode.com/chef/install.sh | bash | |
| # Illumos Distros: | |
| elif [ $(uname -s | grep SunOS) ]; then |
| { | |
| "brand": "joyent", | |
| "dataset_uuid": "60a3b1fa-0674-11e2-abf5-cb82934a8e24", | |
| "alias": "base64", | |
| "hostname": "base64", | |
| "max_physical_memory": 512, | |
| "quota": 20, | |
| "nics": [ | |
| { | |
| "interface": "net0", |
| gem install vagrant | |
| vagrant box add omnios http://omnios.omniti.com/media/omnios-latest.box | |
| vagrant init omnios | |
| vagrant up |