monasca-vagrant/monasca-ansible-repos.sh
Tim Kuhlman ac01274769 Added scripts to help out with cloning our numerous repos.
Change-Id: I1a6f3fb812b198188f1bcfb2bc9af25b6f8ec91c
2015-04-23 17:03:17 -06:00

33 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
#
# Clone all the ansible code repos to $1
monasca_repos='https://github.com/hpcloud-mon/ansible-monasca-agent.git
https://github.com/hpcloud-mon/ansible-monasca-api.git
https://github.com/hpcloud-mon/ansible-monasca-default-alarms.git
https://github.com/hpcloud-mon/ansible-monasca-keystone.git
https://github.com/hpcloud-mon/ansible-monasca-notification.git
https://github.com/hpcloud-mon/ansible-monasca-persister.git
https://github.com/hpcloud-mon/ansible-monasca-schema.git
https://github.com/hpcloud-mon/ansible-monasca-thresh.git
https://github.com/hpcloud-mon/ansible-monasca-ui.git
https://github.com/hpcloud-mon/ansible-influxdb.git
https://github.com/hpcloud-mon/ansible-kafka.git
https://github.com/hpcloud-mon/ansible-percona.git
https://github.com/hpcloud-mon/ansible-storm.git
https://github.com/hpcloud-mon/ansible-zookeeper.git'
# Other repos not in the standard list are found at https://github.com/hpcloud-mon and https://github.com/stackforge?query=monasca
if [ $# -ne 1 ]; then
echo 'Usage: $0 <parent_dir>'
echo 'This script will clone all Monasca ansible repos to the supplied parent_dir'
exit 1
fi
mkdir -p $1
cd $1
for repo in $monasca_repos; do
git clone $repo
done