copr-be: don't start reserved instances on stage
While it is OK to start powerful on-demand instances on stage (upon an explicit request), reserved instances are meant to be used by production only.
This commit is contained in:
parent
a0746f6663
commit
8c55a92abd
1 changed files with 6 additions and 4 deletions
|
@ -11,13 +11,15 @@
|
|||
|
||||
{% 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 %}:
|
||||
{% if not on_demand %}
|
||||
{% if on_demand %}
|
||||
max: 10
|
||||
max_starting: 1
|
||||
{% elif reserved and devel %}
|
||||
max: 0
|
||||
{% else %}
|
||||
max: {{ max }}
|
||||
max_starting: {{ max_starting }}
|
||||
max_prealloc: {{ max_prealloc }}
|
||||
{% else %}
|
||||
max: 10
|
||||
max_starting: 1
|
||||
{% endif %}
|
||||
tags:
|
||||
- name: copr_builder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue