Files
zulip/servers/update-server
Zev Benjamin 98add6efa2 puppet: Store the machine's type in /etc and add script to reapply the appropriate puppet config
Fixes #815

(imported from commit 0c90b74b9b11e4abcc875fbd7a2f0c48356678b2)
2013-02-11 13:19:41 -05:00

11 lines
294 B
Bash
Executable File

#!/bin/bash
machinetype=$(cat /etc/humbug-machinetype | sed -e 's/\n$//')
if [ -z "$machinetype" ]; then
echo "No /etc/humbug-machinetype file found."
echo "Please create it and then re-run this script."
exit 1
fi
puppet apply -e "class {'humbug': machinetype => '$machinetype'}"