aboutsummaryrefslogtreecommitdiffstats
path: root/charms/trusty/contrail-analytics/files
diff options
context:
space:
mode:
Diffstat (limited to 'charms/trusty/contrail-analytics/files')
-rw-r--r--charms/trusty/contrail-analytics/files/contrail5
-rw-r--r--charms/trusty/contrail-analytics/files/contrail-alarm-gen.ini13
-rw-r--r--charms/trusty/contrail-analytics/files/contrail-analytics-api.ini13
-rw-r--r--charms/trusty/contrail-analytics/files/contrail-analytics-nodemgr6
-rw-r--r--charms/trusty/contrail-analytics/files/contrail-collector.ini13
-rw-r--r--charms/trusty/contrail-analytics/files/contrail-nodemgr-analytics.ini6
-rw-r--r--charms/trusty/contrail-analytics/files/contrail-snmp-collector.ini13
-rw-r--r--charms/trusty/contrail-analytics/files/contrail-topology.ini13
-rwxr-xr-xcharms/trusty/contrail-analytics/files/ntpq-nodemgr10
9 files changed, 92 insertions, 0 deletions
diff --git a/charms/trusty/contrail-analytics/files/contrail b/charms/trusty/contrail-analytics/files/contrail
new file mode 100644
index 0000000..39e20cc
--- /dev/null
+++ b/charms/trusty/contrail-analytics/files/contrail
@@ -0,0 +1,5 @@
+Explanation: Use contrail version of the package.
+Package: python-redis
+Pin: version /contrail/
+Pin-Priority: 1001
+
diff --git a/charms/trusty/contrail-analytics/files/contrail-alarm-gen.ini b/charms/trusty/contrail-analytics/files/contrail-alarm-gen.ini
new file mode 100644
index 0000000..aa3ab8a
--- /dev/null
+++ b/charms/trusty/contrail-analytics/files/contrail-alarm-gen.ini
@@ -0,0 +1,13 @@
+[program:contrail-alarm-gen]
+command=/usr/bin/contrail-alarm-gen --conf_file /etc/contrail/contrail-keystone-auth.conf --conf_file /etc/contrail/contrail-alarm-gen.conf
+priority=440
+autostart=true
+killasgroup=true
+stopsignal=KILL
+stdout_capture_maxbytes=1MB
+redirect_stderr=true
+stdout_logfile=/var/log/contrail/contrail-alarm-gen-stdout.log
+stderr_logfile=/var/log/contrail/contrail-alarm-gen-stderr.log
+startsecs=5
+exitcodes=0 ; 'expected' exit codes for process (default 0,2)
+user=contrail
diff --git a/charms/trusty/contrail-analytics/files/contrail-analytics-api.ini b/charms/trusty/contrail-analytics/files/contrail-analytics-api.ini
new file mode 100644
index 0000000..3f76d94
--- /dev/null
+++ b/charms/trusty/contrail-analytics/files/contrail-analytics-api.ini
@@ -0,0 +1,13 @@
+[program:contrail-analytics-api]
+command=/usr/bin/contrail-analytics-api --conf_file /etc/contrail/contrail-keystone-auth.conf --conf_file /etc/contrail/contrail-analytics-api.conf
+priority=440
+autostart=true
+killasgroup=true
+stopsignal=KILL
+stdout_capture_maxbytes=1MB
+redirect_stderr=true
+stdout_logfile=/var/log/contrail/contrail-analytics-api-stdout.log
+stderr_logfile=/var/log/contrail/contrail-analytics-api-stderr.log
+startsecs=5
+exitcodes=0 ; 'expected' exit codes for process (default 0,2)
+user=contrail
diff --git a/charms/trusty/contrail-analytics/files/contrail-analytics-nodemgr b/charms/trusty/contrail-analytics/files/contrail-analytics-nodemgr
new file mode 100644
index 0000000..a88aafa
--- /dev/null
+++ b/charms/trusty/contrail-analytics/files/contrail-analytics-nodemgr
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+# chkconfig: 2345 99 01
+# description: Juniper Network Analytics Node Manager
+
+supervisorctl -s unix:///tmp/supervisord_analytics.sock ${1} `basename ${0}`
diff --git a/charms/trusty/contrail-analytics/files/contrail-collector.ini b/charms/trusty/contrail-analytics/files/contrail-collector.ini
new file mode 100644
index 0000000..17a5617
--- /dev/null
+++ b/charms/trusty/contrail-analytics/files/contrail-collector.ini
@@ -0,0 +1,13 @@
+[program:contrail-collector]
+command=/usr/bin/contrail-collector --conf_file /etc/contrail/contrail-keystone-auth.conf --conf_file /etc/contrail/contrail-collector.conf
+priority=420
+autostart=true
+killasgroup=true
+stopsignal=KILL
+stdout_capture_maxbytes=1MB
+redirect_stderr=true
+stdout_logfile=/var/log/contrail/contrail-collector-stdout.log
+stderr_logfile=/dev/null
+startsecs=5
+exitcodes=0 ; 'expected' exit codes for process (default 0,2)
+user=contrail
diff --git a/charms/trusty/contrail-analytics/files/contrail-nodemgr-analytics.ini b/charms/trusty/contrail-analytics/files/contrail-nodemgr-analytics.ini
new file mode 100644
index 0000000..5aa2873
--- /dev/null
+++ b/charms/trusty/contrail-analytics/files/contrail-nodemgr-analytics.ini
@@ -0,0 +1,6 @@
+[eventlistener:contrail-analytics-nodemgr]
+command=/bin/bash -c "exec /usr/bin/contrail-nodemgr"
+events=PROCESS_COMMUNICATION,PROCESS_STATE,TICK_60
+buffer_size=10000
+stdout_logfile=/var/log/contrail/contrail-analytics-nodemgr-stdout.log
+stderr_logfile=/var/log/contrail/contrail-analytics-nodemgr-stderr.log
diff --git a/charms/trusty/contrail-analytics/files/contrail-snmp-collector.ini b/charms/trusty/contrail-analytics/files/contrail-snmp-collector.ini
new file mode 100644
index 0000000..5f28ac5
--- /dev/null
+++ b/charms/trusty/contrail-analytics/files/contrail-snmp-collector.ini
@@ -0,0 +1,13 @@
+[program:contrail-snmp-collector]
+command=/usr/bin/contrail-snmp-collector --conf_file /etc/contrail/contrail-snmp-collector.conf --conf_file /etc/contrail/contrail-keystone-auth.conf
+priority=340
+autostart=true
+killasgroup=true
+stopsignal=KILL
+stdout_capture_maxbytes=1MB
+redirect_stderr=true
+stdout_logfile=/var/log/contrail/contrail-snmp-collector-stdout.log
+stderr_logfile=/var/log/contrail/contrail-snmp-collector-stderr.log
+startsecs=5
+exitcodes=0 ; 'expected' exit codes for process (default 0,2)
+user=contrail
diff --git a/charms/trusty/contrail-analytics/files/contrail-topology.ini b/charms/trusty/contrail-analytics/files/contrail-topology.ini
new file mode 100644
index 0000000..bce6a0b
--- /dev/null
+++ b/charms/trusty/contrail-analytics/files/contrail-topology.ini
@@ -0,0 +1,13 @@
+[program:contrail-topology]
+command=/usr/bin/contrail-topology --conf_file /etc/contrail/contrail-topology.conf --conf_file /etc/contrail/contrail-keystone-auth.conf
+priority=340
+autostart=true
+killasgroup=true
+stopsignal=KILL
+stdout_capture_maxbytes=1MB
+redirect_stderr=true
+stdout_logfile=/var/log/contrail/contrail-topology-stdout.log
+stderr_logfile=/var/log/contrail/contrail-topology-stderr.log
+startsecs=5
+exitcodes=0 ; 'expected' exit codes for process (default 0,2)
+user=contrail
diff --git a/charms/trusty/contrail-analytics/files/ntpq-nodemgr b/charms/trusty/contrail-analytics/files/ntpq-nodemgr
new file mode 100755
index 0000000..da00247
--- /dev/null
+++ b/charms/trusty/contrail-analytics/files/ntpq-nodemgr
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Script to produce some dummy output to satisfy contrail-nodemgr ntp status
+# Note: This is intended to be deployed inside containers where the host is running ntp
+
+if [ -x /usr/bin/ntpq ]; then
+ exec /usr/bin/ntpq "$@"
+fi
+
+echo "*"