pip.installed
ミニオンに存在する要件ファイル (以前の状態によってインストールされた) を使用して、またはvirtualenv.managed
状態を使用して virtualenv をセットアップしようとしていますgit.latest
。を使用したバージョンは次のpip.installed
とおりです。
mysite-env:
virtualenv.managed:
- name: /opt/django/mysite
- cwd: /opt/django/mysite
- user: mysite
- runas: mysite
- system_site_packages: True
mysite-reqs:
pip.installed:
- no_index: True
- find_links: http://pypi.mysite.com/
- requirements: /opt/django/mysite/requirements/production.txt
- pip_exists_action: switch
- cwd: /opt/django/mysite
- pip_bin: /opt/django/mysite/bin/pip
- bin_env: /opt/django/mysite
- user: mysite
- watch:
- git: mysite-project
この状態を実行しようとすると、次のエラーが発生します。
ID: mysite-reqs
Function: pip.installed
Result: False
Comment: Unable to process requirements file /opt/django/mysite/requirements/production.txt. Error: Ignoring indexes: https://pypi.python.org/simple/
Could not open requirements file: [Errno 2] No such file or directory: '/tmp/requirements.txt'
Storing debug log for failure in /home/mysite/.pip/pip.log
しかし、それは私が要件に渡すパスではありません。これは、ローカル ファイル パスではなく URL/tmp/requirements.txt
を使用することを期待しているため、おそらくハードコードされているようなバグのように見えます。salt://
私は何か間違ったことをしていますか?これはバグですか? 回避する良い方法はありますか?