ddb084697d
Change-Id: I5cbbaecd932eb55e4e3c54cc2922c65d2cf0ff75
39 lines
1.2 KiB
YAML
39 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: mini-mon
|
|
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
|
|
- name: Add mini-mon to hosts file
|
|
lineinfile: dest=/etc/hosts regexp="^{{ mini_mon }}" line="{{ mini_mon }} mini-mon" state=present
|
|
tasks:
|
|
- name: Setup the monasca cli credentials in the default environment
|
|
copy: src=env.sh dest=/etc/profile.d/monasca_cli.sh owner=root group=root mode=0644
|
|
tags:
|
|
- cli
|
|
roles:
|
|
- {role: monasca-ui, tags: [ui]}
|
|
- {role: monasca-keystone, tags: [devstack, keystone]}
|
|
- {role: monasca-devstack, tags: [devstack]}
|
|
- {role: monasca-agent, tags: [agent]}
|