Skip to content

Instantly share code, notes, and snippets.

@aaronlelevier
Created December 3, 2015 14:34
Show Gist options
  • Select an option

  • Save aaronlelevier/7be59abce9c142f18196 to your computer and use it in GitHub Desktop.

Select an option

Save aaronlelevier/7be59abce9c142f18196 to your computer and use it in GitHub Desktop.
Trying to install Python 2.7.10 in a Salt State
### previous SLS
install-python-2.7.10-from-tarball:
cmd.run:
- names:
- cd /usr/src
- wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
- tar xzf Python-2.7.10.tgz
- cd Python-2.7.10
- ./configure
- make altinstall
### proposed SLS
cmd.run:
- name: wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
- cwd: /usr/src
- creates: Python-2.7.10
cmd.run:
- name: ./configure
- cwd: /usr/src/Python-2.7.10
cmd.run:
- name: make altinstall
- cwd: /usr/src/Python-2.7.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment