Make gva run with Poetry and logging
This commit is contained in:
parent
3ab7cc2e4c
commit
18f0061ee4
7 changed files with 81 additions and 104 deletions
22
states/python/poetry.sls
Normal file
22
states/python/poetry.sls
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
curl:
|
||||
pkg.installed
|
||||
|
||||
python3:
|
||||
pkg.installed
|
||||
|
||||
poetry-preconditions:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- python3-wheel
|
||||
- python3-pip
|
||||
- python3-setuptools
|
||||
|
||||
install_poetry:
|
||||
cmd.run:
|
||||
- name: curl -sSL https://install.python-poetry.org | POETRY_VERSION={{ salt['grains.get']('python:poetry:version', '1.4.2') }} POETRY_HOME=/usr/local/poetry /usr/bin/python3 -
|
||||
- creates: /usr/local/poetry/bin/poetry
|
||||
- require:
|
||||
- id: poetry-preconditions
|
||||
- pkg: curl
|
||||
- pkg: python3
|
Loading…
Add table
Add a link
Reference in a new issue