Added scripts to help out with cloning our numerous repos.

Change-Id: I1a6f3fb812b198188f1bcfb2bc9af25b6f8ec91c
This commit is contained in:
Tim Kuhlman 2015-04-23 17:03:17 -06:00
parent e3361e10b9
commit ac01274769
3 changed files with 78 additions and 5 deletions

View File

@ -8,15 +8,23 @@
- [Install VirtualBox and Vagrant](#install-virtualbox-and-vagrant) - [Install VirtualBox and Vagrant](#install-virtualbox-and-vagrant)
- [MacOS](#macos) - [MacOS](#macos)
- [Linux (Ubuntu)](#linux-ubuntu) - [Linux (Ubuntu)](#linux-ubuntu)
- [Using mini-mon](#using-mini-mon) - [Using Monasca Vagrant](#using-monasca-vagrant)
- [Starting mini-mon](#starting-mini-mon) - [Starting mini-mon](#starting-mini-mon)
- [Mini-mon access information](#mini-mon-access-information) - [Basic Monasca usage](#basic-monasca-usage)
- [Internal Endpoints](#internal-endpoints) - [Smoke test](#smoke-test)
- [Updating](#updating) - [Updating](#updating)
- [Improving Provisioning Speed](#improving-provisioning-speed)
- [Ansible Development](#ansible-development)
- [Running behind a Web Proxy](#running-behind-a-web-proxy) - [Running behind a Web Proxy](#running-behind-a-web-proxy)
- [Advanced Usage](#advanced-usage)
- [Access information](#access-information)
- [Internal Endpoints](#internal-endpoints)
- [Improving Provisioning Speed](#improving-provisioning-speed)
- [Monasca Debugging](#monasca-debugging)
- [Ansible Development](#ansible-development)
- [Running Ansible directly](#running-ansible-directly)
- [Editing Ansible Configuration](#editing-ansible-configuration)
- [Developing Monasca](#developing-monasca)
- [Alternate Vagrant Configurations](#alternate-vagrant-configurations) - [Alternate Vagrant Configurations](#alternate-vagrant-configurations)
- [Troubleshooting](#troubleshooting)
<!-- END doctoc generated TOC please keep comment here to allow auto update --> <!-- END doctoc generated TOC please keep comment here to allow auto update -->
@ -157,6 +165,11 @@ To edit the Ansible roles I suggest downloading the full git source of the role
your ansible path. This allows you to run your changes directly from the git copy you are working on. your ansible path. This allows you to run your changes directly from the git copy you are working on.
See the [Ansible docs](http://docs.ansible.com) for more details on the exact configuration needed. See the [Ansible docs](http://docs.ansible.com) for more details on the exact configuration needed.
# Developing Monasca
In this repo there are a couple of helper scripts to aid in downloading all of the Monasca git repositories.
- `./monasca-repos.sh <parent_dir>` will clone all code repos to the parent dir
- `./monasca-ansible-repos.sh <parent_dir>` will clone all of the team Ansible repos to the parent dir
# Alternate Vagrant Configurations # Alternate Vagrant Configurations
To run any of these alternate configs, simply run the Vagrant commands from within the subdir. To run any of these alternate configs, simply run the Vagrant commands from within the subdir.

32
monasca-ansible-repos.sh Executable file
View File

@ -0,0 +1,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

28
monasca-repos.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/sh
#
# Clone all the monasca code repos to $1
monasca_repos='https://github.com/stackforge/monasca-agent.git
https://github.com/stackforge/monasca-api.git
https://github.com/stackforge/monasca-common.git
https://github.com/stackforge/monasca-notification.git
https://github.com/stackforge/monasca-persister.git
https://github.com/stackforge/monasca-thresh.git
https://github.com/stackforge/monasca-ui.git
https://github.com/stackforge/python-monascaclient.git
https://github.com/hpcloud-mon/grafana
https://github.com/hpcloud-mon/monasca-tempest.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 repos to the supplied parent_dir'
exit 1
fi
mkdir -p $1
cd $1
for repo in $monasca_repos; do
git clone $repo
done