Add Vagrantfile for development

Signed-off-by: Mattia Verga <mattia.verga@proton.me>
This commit is contained in:
Mattia Verga 2022-08-28 10:12:26 +02:00
parent d580f4b498
commit 0722694344
4 changed files with 93 additions and 1 deletions

8
ansible/playbook.yml Normal file
View file

@ -0,0 +1,8 @@
---
- hosts: toddlers
become: true
become_method: sudo
vars:
ansible_python_interpreter: /usr/bin/python3
roles:
- toddlers

View file

@ -0,0 +1,48 @@
---
- name: Upgrade all packages
dnf:
name: "*"
state: latest
- name: Install dependencies
dnf:
name:
- fedora-messaging
- python3-arrow
- python3-beanbag
- python3-beautifulsoup4
- python3-bugzilla
- python3-defusedxml
- python3-fasjson-client
- python3-fedora
- python3-GitPython
- python3-gobject
- python3-pagure-messages
- python3-pdc-client
- python3-requests
- python3-koji
state: present
- name: Install tests dependencies
dnf:
name:
- cairo-devel
- cairo-gobject-devel
- gobject-introspection-devel
- krb5-devel
- libmodulemd1
- python3.10-devel
- python3-tox
state: present
# These aren't available from Koji
- name: Install dependencies from PIP
pip:
name:
- pgi
- name: Create the config file
shell: sed -e "s/[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}/$(uuidgen)/g" toddlers.toml.example > toddlers.toml
args:
chdir: /home/vagrant/toddlers/
creates: /home/vagrant/toddlers/toddlers.toml