Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 40 lines (33 sloc) 1.31 kb
#!/bin/bash
# Copyright 2012 Tim Ellis
# CTO: PalominoDB
# The Palomino Cluster Tool
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# TODO: Convert this to a playbook as well. Ansible supports playbooks-of-playbooks
if [ $USER == "root" ] ; then
echo "This script does NOT need to be run as root (probably). If you disagree, edit the script"
echo "and remove the code that quits when you're root. Exiting abnormally."
echo ""
exit 255
fi
# check input is a clusterName
clusterName=$1
if [ "xxx$clusterName" == "xxx" ] ; then
echo " E Usage: $0 <clusterName>"
echo " E Currently configured clusters:"
find /etc/mha -mindepth 1 -type d -printf "%f\n" | awk '{print " - "$_}'
exit 255
fi
ansibleHosts="/etc/ansible/$clusterName.ini"
./lib-WrapPlaybooks.sh $clusterName Nagios
Jump to Line
Something went wrong with that request. Please try again.