I would like to manage my Django project with Salt (http://saltstack.com). In my states I have
/srv/MyProject/venv:
virtualenv.managed:
- no_site_packages: True
- runas: myproject
- requirements: /srv/MyProject/src/requirements.txt
- require:
- user: myproject
And in requirements.txt I load other files (production.txt, local.txt...):
-r requirements/production.txt
When I run salt, it fails:
Could not open requirements file: [Errno 2] No such file or directory: '/tmp/requirements/production.txt'
How can I change path from /tmp/
to /srv/MyProject/src/
? I tried to use cwd
option, but it is the same.