stacklight-integration-tests/fixtures/scripts/update_controller_role.sh
Simon Pasquier 4d806b3aee Add test deploying a dedicated environment
Change-Id: I795ef004f5640b0a02ec8b2fd106a837b36ffdd9
2016-06-09 12:46:23 +00:00

11 lines
349 B
Bash

#!/bin/bash
set -e
# Hacky way to find out which release should be updated
RELEASE_ID=$(fuel rel | grep Ubuntu | grep -v UCA | awk '{print $1}')
TMP_FILE="$(mktemp).yaml"
fuel role --rel "$RELEASE_ID" --role controller --file "$TMP_FILE"
sed -i 's/ min: ./ min: 0/' "$TMP_FILE"
fuel role --rel 2 --update --file "$TMP_FILE"
rm -f "$TMP_FILE"