Salt-dev prelinminaries

This commit is contained in:
unman 2022-11-14 15:14:03 +00:00
parent 4304a5b517
commit 7b73542b90
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
2 changed files with 36 additions and 0 deletions

14
salt-dev/setup_pyenv.sls Normal file
View 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
View 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 %}