Commit b73bdc84 authored by Flávio Ramalho's avatar Flávio Ramalho
Browse files

Updated to reflect changes on the monasca project

parent 7904a35c
......@@ -40,4 +40,4 @@ mysql_root_pass: "secretdatabase"
ntp_servers:
- ntp.lsd.ufcg.edu.br
agent_ntp_servers:
- "{{ monasca_ip_address }}"
- "{{ monasca_ip_address }}"
......@@ -60,7 +60,7 @@ base_kafka_version: "0.8.1.1"
kafka_version: "2.9.2-{{ base_kafka_version }}"
## Storm
storm_version: "1.0.1"
storm_version: "1.0.2"
storm_logback_dir: "log4j2"
## Go
......
......@@ -3,17 +3,20 @@
export PATH=$PATH:/usr/local/go/bin
export GOPATH=`pwd`
go get -d github.com/grafana/grafana/...
mkdir -p $GOPATH/src/github.com/grafana
cd $GOPATH/src/github.com/grafana
sudo rm -r grafana
cp -r /opt/cloned-repos/grafana .
cd grafana
cp -r /opt/cloned-repos/grafana-plugins/datasources/monasca ./public/app/plugins/datasource/
cp /opt/cloned-repos/monasca-ui/grafana-dashboards/* ./public/dashboards/
go run build.go setup
$GOPATH/bin/godep restore
go run build.go build
$GOPATH/bin/godep go run build.go build
source /root/.nvm/nvm.sh
nvm install 4.0.0
nvm use 4.0.0
npm config set unsafe-perm true
npm install
sudo npm install -g grunt-cli
npm install -g grunt-cli
grunt --force
......@@ -45,7 +45,6 @@
pip:
name: "file://{{ tarball.stdout }}"
virtualenv: "/opt/venvs/monasca-notification"
extra_args: "--allow-unverified simport"
tags:
- monasca-notification-install
- monasca-install-notification
......
......@@ -63,11 +63,6 @@
group: "{{ item.group }}"
mode: "{{ item.mode|default('0644') }}"
with_items:
- src: "storm/cluster.xml.j2"
dest: "/opt/storm/{{ storm_logback_dir }}/cluster.xml"
owner: "storm"
group: "storm"
mode: "0644"
- src: "storm/storm.yaml.j2"
dest: "/opt/apache-storm-{{ storm_version }}/conf/storm.yaml"
owner: "storm"
......
......@@ -13,20 +13,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Download nodejs apt source script
- name: Download NVM install script
get_url:
url: "http://deb.nodesource.com/setup_4.x"
dest: "/root/nodejs-setup_4.x"
url: "https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh"
dest: "/root/nvm_install.sh"
mode: 0750
register: nodejs_apt
register: nvm_script
tags:
- monasca-nodejs
- monasca-nvm
- name: Run nodejs script
command: "/root/nodejs-setup_4.x"
when: nodejs_apt.changed
- name: Run NVM install script
command: "/root/nvm_install.sh"
when: nvm_script.changed
tags:
- monasca-nodejs
- monasca-nvm
- name: Check apt last update file
stat:
......
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<configuration scan="true" scanPeriod="60 seconds">
<appender name="A1" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${storm.home}/logs/${logfile.name}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${storm.home}/logs/${logfile.name}.%i</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>9</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n</pattern>
</encoder>
</appender>
<appender name="ACCESS" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${storm.home}/logs/access.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${storm.home}/logs/access.log.%i</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>9</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n</pattern>
</encoder>
</appender>
<appender name="METRICS" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${storm.home}/logs/metrics.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${storm.home}/logs/metrics.log.%i</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>9</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>2MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%d %-8r %m%n</pattern>
</encoder>
</appender>
<root level="WARN">
<appender-ref ref="A1"/>
</root>
<logger name="backtype.storm.security.auth.authorizer" additivity="false">
<level value="INFO" />
<appender-ref ref="ACCESS" />
</logger>
<logger name="backtype.storm.metric.LoggingMetricsConsumer" additivity="false" >
<level value="INFO"/>
<appender-ref ref="METRICS"/>
</logger>
</configuration>
......@@ -26,7 +26,6 @@ monasca_apt_packages:
- mariadb-server
- mariadb-client
- maven
- nodejs
- openjdk-7-jdk
- python-dev
- python-mysqldb
......
......@@ -4,5 +4,5 @@ init_config:
ssh_timeout: 0.5
instances:
- alive_test: ssh
host_name: 127.0.0.1
name: 127.0.0.1
host_name: {{ ansible_hostname }}
name: {{ ansible_hostname }}
......@@ -11,3 +11,4 @@
\
--log_level 'WARN' \
--overwrite \
--system_only
......@@ -21,11 +21,11 @@
- include: system.yml
tags: system_alarms
- include: monasca.yml
tags: monasca_alarms
#- include: monasca.yml
# tags: monasca_alarms
#
- include: openstack.yml
tags: openstack_alarms
- include: misc_services.yml
tags: service_alarms
#
#- include: misc_services.yml
# tags: service_alarms
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment