monasca-vagrant/devstack.yml
David Schroeder 10f9469424 Satisfy some dependencies for Agent plugins
This change enables use of the mysql and libvrit plugins to the
Monasca agent by adding dependencies to the virtualenv

Change-Id: If4e8170b5b6aed232d5a2074107aab9dc0c91d89
2015-06-29 17:19:29 -06:00

41 lines
1.2 KiB
YAML

- hosts: devstack
sudo: yes
vars:
monasca_checks:
host_alive:
init_config:
ssh_port: 22
ssh_timeout: 0.5
ping_timeout: 1
instances:
- name: mini-mon
host_name: 192.168.10.4
alive_test: ssh
pre_tasks:
- name: apt-get update
apt: update_cache=yes
ignore_errors: true
- name: Install virtualenv
apt: name=python-virtualenv
- name: Install Agent plugin dependencies in virtualenv
pip: name={{item}} state=latest virtualenv="{{monasca_virtualenv_dir}}"
with_items:
- lxml
- libvirt-python
- mysql-python
- python-novaclient
tasks:
- name: Setup the monasca cli credentials in the default environment
copy: src=tests/env.sh dest=/etc/profile.d/monasca_cli.sh owner=root group=root mode=0644
tags:
- cli
- name: Update cli
pip: name=python-monascaclient state=latest virtualenv="{{monasca_virtualenv_dir}}"
tags:
- cli
roles:
- {role: monasca-ui, tags: [ui]}
- {role: monasca-keystone, tags: [devstack, keystone]}
- {role: monasca-devstack, tags: [devstack]}
- {role: monasca-agent, tags: [agent]}