mirror of
https://github.com/unman/shaker.git
synced 2024-10-01 01:25:41 -04:00
Salt-dev prelinminaries
This commit is contained in:
parent
4304a5b517
commit
7b73542b90
14
salt-dev/setup_pyenv.sls
Normal file
14
salt-dev/setup_pyenv.sls
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
{% if grains['nodename'] != 'dom0' %}
|
||||||
|
|
||||||
|
cmd-run:
|
||||||
|
- name: |
|
||||||
|
pyenv install 3.7.0
|
||||||
|
pyenv virtualenv 3.7.0 salt
|
||||||
|
pyenv activate salt
|
||||||
|
|
||||||
|
{% endif %}
|
22
salt-dev/source.sls
Normal file
22
salt-dev/source.sls
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
{% if grains['nodename'] != 'dom0' %}
|
||||||
|
|
||||||
|
salt_clone:
|
||||||
|
git.latest:
|
||||||
|
name: https://github.com/saltstack/salt.git
|
||||||
|
target: /home/user/salt
|
||||||
|
user: user
|
||||||
|
depth: 1
|
||||||
|
origin: salt
|
||||||
|
|
||||||
|
'python -m pip install pre-commit nox':
|
||||||
|
cmd.run
|
||||||
|
|
||||||
|
pre-commit install:
|
||||||
|
cmd.run
|
||||||
|
|
||||||
|
{% endif %}
|
Loading…
Reference in New Issue
Block a user