- name: Installs DBs, kafka and other core dependencies. hosts: mini-mon sudo: yes vars: influxdb: version: 0.8.8 raft_port: 9090 seed_servers: [] replication_factor: 1 mini_mon_host: 192.168.10.4 zookeeper_hosts: "{{mini_mon_host}}:2181" pre_tasks: - name: apt-get update apt: update_cache=yes tasks: - name: Install postfix, needed by notification engine apt: name=postfix state=present - name: Install pip from apt apt: name=python-pip state=present - name: pip upgrade pip pip: name=pip state=latest - name: Install python-dev apt: name=python-dev state=present roles: - {role: zookeeper, tags: [zookeeper]} - {role: kafka, kafka_listen_address: "{{mini_mon_host}}", tags: [kafka]} - {role: influxdb, tags: [influxdb]} - {role: percona, mysql_root_password: password, percona_package: percona-xtradb-cluster-56, tags: [mysql, percona]} - name: Sets up schema and Installs Monasca apps hosts: mini-mon sudo: yes vars: mini_mon_host: 192.168.10.4 influxdb_url: "http://{{mini_mon_host}}:8086" influxdb_users: mon_api: password mon_persister: password kafka_topics: metrics: { replicas: 1, partitions: 4 } events: { replicas: 1, partitions: 4 } raw-events: { replicas: 1, partitions: 4 } transformed-events: { replicas: 1, partitions: 4 } alarm-state-transitions: { replicas: 1, partitions: 4 } alarm-notifications: { replicas: 1, partitions: 4 } retry-notifications: { replicas: 1, partitions: 4 } kafka_hosts: "{{mini_mon_host}}:9092" keystone_url: http://192.168.10.5:35357/v3 monasca_agent: user: monasca-agent password: password project: mini-mon service: monitoring monasca_api_url: http://192.168.10.4:8080/v2.0 monasca_checks: host_alive: init_config: ssh_port: 22 ssh_timeout: 0.5 ping_timeout: 1 instances: - name: devstack host_name: 192.168.10.5 alive_test: ssh mysql_host: "{{mini_mon_host}}" mysql_users: notification: password monapi: password thresh: password storm_worker_ports: [6701, 6702] zookeeper_hosts: "{{mini_mon_host}}:2181" 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 tags: - cli roles: - {role: monasca-schema, mysql_admin_password: password, tags: [schema]} - {role: monasca-api, api_region: useast, influxdb_user: mon_api, influxdb_password: password, keystone_host: 192.168.10.5, keystone_auth_method: token, keystone_admin: admin, keystone_admin_password: "", keystone_admin_token: ADMIN, mysql_user: monapi, mysql_password: password, tags: [api]} - {role: monasca-persister, influxdb_user: mon_persister, influxdb_password: password, tags: [persister]} - {role: monasca-notification, mysql_user: notification, mysql_password: password, smtp_host: localhost, tags: [notification]} - {role: storm, nimbus_host: "{{mini_mon_host}}", storm_nimbus_enabled: true, storm_supervisor_enabled: true, tags: [storm]} - {role: monasca-thresh, mysql_user: thresh, mysql_password: password, tags: [thresh]} - {role: monasca-agent, tags: [agent]} - name: Define default alarms hosts: mini-mon gather_facts: no vars: keystone_url: http://192.168.10.5:35357/v3/ keystone_user: mini-mon keystone_password: password roles: - {role: monasca-default-alarms, tags: [alarms]}