-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonasca-ansible-repos.sh
executable file
·32 lines (28 loc) · 1.19 KB
/
monasca-ansible-repos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/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