diff --git a/README.md b/README.md index 3ac0796..fed1075 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,23 @@ - [Install VirtualBox and Vagrant](#install-virtualbox-and-vagrant) - [MacOS](#macos) - [Linux (Ubuntu)](#linux-ubuntu) -- [Using mini-mon](#using-mini-mon) +- [Using Monasca Vagrant](#using-monasca-vagrant) - [Starting mini-mon](#starting-mini-mon) - - [Mini-mon access information](#mini-mon-access-information) - - [Internal Endpoints](#internal-endpoints) + - [Basic Monasca usage](#basic-monasca-usage) + - [Smoke test](#smoke-test) - [Updating](#updating) - - [Improving Provisioning Speed](#improving-provisioning-speed) - - [Ansible Development](#ansible-development) - [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) +- [Troubleshooting](#troubleshooting) @@ -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. 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 ` will clone all code repos to the parent dir + - `./monasca-ansible-repos.sh ` will clone all of the team Ansible repos to the parent dir + # Alternate Vagrant Configurations To run any of these alternate configs, simply run the Vagrant commands from within the subdir. diff --git a/monasca-ansible-repos.sh b/monasca-ansible-repos.sh new file mode 100755 index 0000000..5545da1 --- /dev/null +++ b/monasca-ansible-repos.sh @@ -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 ' + 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 diff --git a/monasca-repos.sh b/monasca-repos.sh new file mode 100755 index 0000000..89f59b5 --- /dev/null +++ b/monasca-repos.sh @@ -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 ' + 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