summaryrefslogtreecommitdiff
path: root/configure-info-beamer.sh
blob: 2d290872bc89e35d8a917c92d8dce41247098ab0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

if [ -z "$1" ]; then
  echo "$0 <hostname>"
  exit 1
fi
name=$1
shift

cd "${BASH_SOURCE%/*}"
source common/utils.sh
ansible_variable__get env_group "$name" || exit 1
vault_environment__set "$env_group" || exit 1

echo "configuring $name in environment '$env_group'"
echo ""

echo "######## running the info-beamer playbook ########"
exec ansible-playbook -e "hostname=$name" $@ "$env_group/info-beamer.yml"