aboutsummaryrefslogtreecommitdiffstats
path: root/charms/trusty/contrail-control/files
diff options
context:
space:
mode:
Diffstat (limited to 'charms/trusty/contrail-control/files')
-rw-r--r--charms/trusty/contrail-control/files/contrail-control-nodemgr6
-rw-r--r--charms/trusty/contrail-control/files/contrail-nodemgr-control.ini6
-rwxr-xr-xcharms/trusty/contrail-control/files/ntpq-nodemgr10
3 files changed, 22 insertions, 0 deletions
diff --git a/charms/trusty/contrail-control/files/contrail-control-nodemgr b/charms/trusty/contrail-control/files/contrail-control-nodemgr
new file mode 100644
index 0000000..31da6b8
--- /dev/null
+++ b/charms/trusty/contrail-control/files/contrail-control-nodemgr
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+# chkconfig: 2345 99 01
+# description: Juniper Network Control Node Manager
+
+supervisorctl -s unix:///tmp/supervisord_control.sock ${1} `basename ${0}`
diff --git a/charms/trusty/contrail-control/files/contrail-nodemgr-control.ini b/charms/trusty/contrail-control/files/contrail-nodemgr-control.ini
new file mode 100644
index 0000000..807aeaf
--- /dev/null
+++ b/charms/trusty/contrail-control/files/contrail-nodemgr-control.ini
@@ -0,0 +1,6 @@
+[eventlistener:contrail-control-nodemgr]
+command=/bin/bash -c "exec python /usr/bin/contrail-nodemgr --nodetype=contrail-control"
+events=PROCESS_COMMUNICATION,PROCESS_STATE,TICK_60
+buffer_size=10000
+stdout_logfile=/var/log/contrail/contrail-control-nodemgr-stdout.log
+stderr_logfile=/var/log/contrail/contrail-control-nodemgr-stderr.log
diff --git a/charms/trusty/contrail-control/files/ntpq-nodemgr b/charms/trusty/contrail-control/files/ntpq-nodemgr
new file mode 100755
index 0000000..da00247
--- /dev/null
+++ b/charms/trusty/contrail-control/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 "*"