Make gva run with Poetry and logging

This commit is contained in:
Jan Dittberner 2023-05-06 14:42:50 +02:00
parent 3ab7cc2e4c
commit 18f0061ee4
7 changed files with 81 additions and 104 deletions

22
states/python/poetry.sls Normal file
View 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