copr-be: better document pools.yaml.expand.sh

This commit is contained in:
Pavel Raiskup 2025-01-20 14:43:05 +01:00
parent 5f10a45efb
commit b21ba1a873
2 changed files with 9 additions and 4 deletions

View file

@ -1,6 +1,10 @@
#! /bin/bash
# Helper script to expand pools.yaml jinja.
# Helper script to expand the pools.yaml.j2 file locally (on your box, not on
# Batcave), before you push the pools.yaml.j2 changes. How to use:
# 1. execute this script for the first time to initiate $outdir
# 2. change the template
# 3. re-execute the script, and check `git show` in $outdir
pfx=pools-yaml-expander
pbook=/tmp/playbook-$pfx.yaml

View file

@ -2,14 +2,15 @@
#
# Notes for Resalloc configuration file:
#
# - You do NOT need to restart resalloc server after changing this file, it
# automatically reloads this 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
#
{% endif %}
# - You do NOT need to restart resalloc server after changing this file, it
# automatically reloads this configuration file.
#
# - higher priority pools are used first
# default priority is 0
# reserved instances in cloud has > 0