Skip to content

Latest commit

 

History

History
87 lines (72 loc) · 1.88 KB

README.md

File metadata and controls

87 lines (72 loc) · 1.88 KB

smartosx

Salt Packer SmartOS OSX VMWare

Install xcode command line tools

xcode-select --install

Install brew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor

Salt OSX

brew install saltstack

Install Cask

brew install caskroom/cask/brew-cask

Tap additional older version

brew tap caskroom/versions

Install Cask Applications

brew cask install vmware-fusion6
brew cask install packer

Run packer to create vm

  • install pkgsrc
  • install salt
packer build vmware.json

Getting salt master+minion operational

  • get salt master running on osx.local
sudo mkdir /etc/salt/
sudo ln -s /opt/smartosx/minion /etc/salt/minion
sudo ln -s /opt/smartosx/master /etc/salt/master

sudo hostname osx.local
sudo cp /opt/smartosx/srv_salt/workstation/vmnet.conf /Library/Preferences/VMware\ Fusion/networking

note: minion config needs to be empty when not using --local
  • get salt minion running inside gz.local
ssh [email protected]
pkgin -y install zeromq py27-m2crypto py27-crypto py27-msgpack py27-yaml py27-jinja2 py27-zmq py27-requests git-base
git clone git://github.com/kevpie/salt.git /opt/salt_install
cd /opt/salt_install
git checkout smartos_vmadm_optional_args
./setup.py build
./setup.py install
salt-minion -l info
ssh [email protected]
pkgin -y install zeromq py27-m2crypto py27-crypto py27-msgpack py27-yaml py27-jinja2 py27-zmq py27-requests git-base
git clone git://github.com/kevpie/salt.git /opt/salt_install
cd /opt/salt_install
git checkout smartos_vmadm_optional_args
./setup.py build
./setup.py install
salt-minion -l info

Get opts salt set up in osx

sudo mkdir -p /opt/salt
sudo chown 501:20 /opt/salt
git clone https://github.com/{opt_salt_repo}.git /opt/salt/