Skip to content

Instantly share code, notes, and snippets.

@dmpeters
Created March 25, 2013 01:57
Show Gist options
  • Save dmpeters/5234459 to your computer and use it in GitHub Desktop.
Save dmpeters/5234459 to your computer and use it in GitHub Desktop.
getting started with salt on osx

getting started with salt

a little adventurous tale of setting up salt on osx...

salt osx docs: http://goo.gl/E6ZtA

overall, seemed pretty straight forward...(?)

  • preliminary steps:
    • brew update (I did this to make sure I was up to date)
    • brew upgrade (I did this to upgrade what I was not up to date with)
    • brew doctor (I did this to make sure I was 'raring to brew')
  • salt steps:
    • brew install swig zmq
    • pip install salt (note I created my own virtualenv to play)
    • sudo launchctl limit maxfiles 10000
    • Add this configuration option (max_open_files: 10000) to the /etc/salt/master file.

STOP! WHAT THE WHAT?

cd /etc/salt -bash: cd: /etc/salt: No such file or directory

well, this make sense to me b/c why would salt install to my etc dir? especially when its a pip install. do the docs mean my site-packages(?)

... 5 min later ...

no salt does not meat my site-packages; so what gives? to the google... "setting up salt on osx"

BOOM! http://goo.gl/brhHE Google +1 again!

Starting over with my virtualenv...

  • mkdir Projects/salt && cd Projects/salt/
  • git clone https://github.com/saltstack/salt.git
  • mkdir -p etc/salt
  • rmvirtualenv salt
  • mkvirtualenv salt
  • cd salt
  • pip install -r requirement.txt
  • pip install .
  • cp salt/conf/master etc/salt/master
  • cp salt/conf/minion etc/salt/minion
  • ~/Projects/salt > sudo ln -s pwd salt/
  • Edit etc/salt/master:
    • user:
    • root_dir: salt/
  • Edit etc/salt/minion
    • master: localhost
    • user:
    • root_dir: salt/
  • sudo salt-master -c ~/salt/etc/

[WARNING ] Both 'dmidecode' and 'lspci' failed to execute, either because they do not exist on the system of the user running this instance does not have the necessary permissions to execute them. Grains output might not be accurate.

WHAT THE WHAT? to #salt...

dmpeters_ "is it possible to install salt on a mac? The docs seem to get a little unclear here http://goo.gl/HTB6m" dmpeters_ "i googled around and found this http://goo.gl/brhHE" dmpeters_ "but now im having issues ~ "[WARNING ] Both 'dmidecode' and 'lspci' failed to execute..." dmpeters_ "can any one help me? Or, should i not even bother with a mac installation at this point?"

... crickets ...

FUCK THIS! Why did I think it was a good idea to try to get salt running on my mac in the first place! Moving to a vm and trying again...

@FunTimeCoding
Copy link

thanks. the salt channel is often very dead, except the crickets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment