]> git.immae.eu Git - github/fretlink/ansible-clever.git/blame - files/clever-set-scalability.sh
Bump clever waiting time to 1 hour
[github/fretlink/ansible-clever.git] / files / clever-set-scalability.sh
CommitLineData
96f02eb1
CD
1#!/usr/bin/env bash
2
3set -eo pipefail
4params=()
5if [ -n "$INSTANCES" ]; then
6 params+=("--instances" "${INSTANCES}")
7elif [ -n "$MIN_INSTANCES" ] && [ -n "$MAX_INSTANCES" ]; then
8 params+=("--min-instances" "${MIN_INSTANCES}")
9 params+=("--max-instances" "${MAX_INSTANCES}")
10
11fi
12if [ -n "$FLAVOR" ]; then
13 params+=("--flavor" "${FLAVOR}")
14elif [ -n "$MIN_FLAVOR" ] && [ -n "$MAX_FLAVOR" ]; then
15 params+=("--min-flavor" "${MIN_FLAVOR}")
16 params+=("--max-flavor" "${MAX_FLAVOR}")
17fi
18
19clever scale "${params[@]}"