mirror of
https://github.com/unman/shaker.git
synced 2025-01-09 06:28:08 -05:00
31 lines
666 B
Plaintext
31 lines
666 B
Plaintext
|
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||
|
#
|
||
|
#
|
||
|
#
|
||
|
|
||
|
{% if grains['nodename'] != 'dom0' %}
|
||
|
|
||
|
pyenv_cloned:
|
||
|
git.cloned:
|
||
|
- name: https://github.com/pyenv/pyenv.git
|
||
|
- target: /home/user/.pyenv
|
||
|
- user: user
|
||
|
|
||
|
pyenv-virtual_cloned:
|
||
|
git.cloned:
|
||
|
- name: https://github.com/pyenv/pyenv-virtualenv.git
|
||
|
- target: /home/user/.pyenv/plugins/pyenv-virtualenv
|
||
|
- user: user
|
||
|
|
||
|
{% set current_path = salt['environ.get']('PATH', '/usr/local/bin:/usr/bin:/bin') %}
|
||
|
|
||
|
cmd-run:
|
||
|
cmd.script:
|
||
|
- source: salt://pyenv/setup.sh
|
||
|
- cwd: /home/user/
|
||
|
- runas: user
|
||
|
- env:
|
||
|
- PATH: {{ ['/home/user/.pyenv/bin', current_path]|join(':') }}
|
||
|
|
||
|
{% endif %}
|