forked from infra/ansible
copr-be: pools: normalreserved => reserved
This commit is contained in:
parent
6585e9506e
commit
cea0a27b73
1 changed files with 9 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue