blob: a4afeecb890b458f1b9fd3bede7136caca020764 (
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 "infobeamer_hostname=$name" $@ "$env_group/info-beamer.yml"
|