1
0
Fork 0
forked from infra/ansible

copr-be: pools: normalreserved => reserved

This commit is contained in:
Pavel Raiskup 2026-04-20 15:21:34 +02:00
commit cea0a27b73

View file

@ -3,9 +3,14 @@
# Notes for Resalloc configuration file:
#
{% if False %}
# - This is rather a complex Jinja template. Feel free to use the helper
# script to expand locally before you commit any change to this file:
# ./roles/copr/backend/templates/resalloc/pools.yaml.expand.sh
#
# ===================================================================
# ===================================================================
# This is rather a complex Jinja template. PLEASE use the helper
# script to expand locally before you commit any change to this file:
# ./roles/copr/backend/templates/resalloc/pools.yaml.expand.sh
# ===================================================================
# ===================================================================
#
{% endif %}
# - You do NOT need to restart resalloc server after changing this file, it
@ -25,7 +30,7 @@
# d) remove the pool in PostgreSQL database.
{% macro aws(arch, max, max_starting, max_prealloc, spot=False, on_demand=none, priority=0, reserved=False) %}
aws_{{ arch }}_{{ on_demand + '_' if on_demand is not none else '' }}{% if spot %}spot{% else %}normal{% endif %}{% if reserved %}reserved{% endif %}_{% if devel %}dev{% else %}prod{% endif %}:
aws_{{ arch }}_{{ on_demand + '_' if on_demand is not none else '' }}{% if spot %}spot{% elif reserved %}reserved{% else %}normal{% endif %}_{% if devel %}dev{% else %}prod{% endif %}:
{% if on_demand and not reserved %}
max: 10
max_starting: 4