From 4faa7f927149a5c4ef7a03523f7bc14523cb9baa Mon Sep 17 00:00:00 2001 From: Stuart Mackie Date: Fri, 7 Oct 2016 12:24:58 -0700 Subject: Charms for Contrail 3.1 with Mitaka Change-Id: Id37f3b9743d1974e31fcd7cd9c54be41bb0c47fb Signed-off-by: Stuart Mackie --- .../contrail-configuration/files/contrail-config-nodemgr | 6 ++++++ .../contrail-configuration/files/contrail-nodemgr-config.ini | 6 ++++++ charms/trusty/contrail-configuration/files/ifmap | 6 ++++++ charms/trusty/contrail-configuration/files/ifmap.ini | 12 ++++++++++++ charms/trusty/contrail-configuration/files/ntpq-nodemgr | 10 ++++++++++ 5 files changed, 40 insertions(+) create mode 100644 charms/trusty/contrail-configuration/files/contrail-config-nodemgr create mode 100644 charms/trusty/contrail-configuration/files/contrail-nodemgr-config.ini create mode 100644 charms/trusty/contrail-configuration/files/ifmap create mode 100644 charms/trusty/contrail-configuration/files/ifmap.ini create mode 100755 charms/trusty/contrail-configuration/files/ntpq-nodemgr (limited to 'charms/trusty/contrail-configuration/files') diff --git a/charms/trusty/contrail-configuration/files/contrail-config-nodemgr b/charms/trusty/contrail-configuration/files/contrail-config-nodemgr new file mode 100644 index 0000000..ce0c164 --- /dev/null +++ b/charms/trusty/contrail-configuration/files/contrail-config-nodemgr @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# chkconfig: 2345 99 01 +# description: Juniper Network Configuration Node Manager + +supervisorctl -s unix:///tmp/supervisord_config.sock ${1} `basename ${0}` diff --git a/charms/trusty/contrail-configuration/files/contrail-nodemgr-config.ini b/charms/trusty/contrail-configuration/files/contrail-nodemgr-config.ini new file mode 100644 index 0000000..ef07ff0 --- /dev/null +++ b/charms/trusty/contrail-configuration/files/contrail-nodemgr-config.ini @@ -0,0 +1,6 @@ +[eventlistener:contrail-config-nodemgr] +command=/bin/bash -c "exec python /usr/bin/contrail-nodemgr --nodetype=contrail-config" +events=PROCESS_COMMUNICATION,PROCESS_STATE,TICK_60 +buffer_size=10000 +stdout_logfile=/var/log/contrail/contrail-config-nodemgr-stdout.log +stderr_logfile=/var/log/contrail/contrail-config-nodemgr-stderr.log diff --git a/charms/trusty/contrail-configuration/files/ifmap b/charms/trusty/contrail-configuration/files/ifmap new file mode 100644 index 0000000..d5202b0 --- /dev/null +++ b/charms/trusty/contrail-configuration/files/ifmap @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# chkconfig: 2345 99 01 +# description: Juniper Network Virtualization API + +supervisorctl -s unix:///tmp/supervisord_config.sock ${1} `basename ${0}` diff --git a/charms/trusty/contrail-configuration/files/ifmap.ini b/charms/trusty/contrail-configuration/files/ifmap.ini new file mode 100644 index 0000000..360af2a --- /dev/null +++ b/charms/trusty/contrail-configuration/files/ifmap.ini @@ -0,0 +1,12 @@ +[program:ifmap] +command=/usr/bin/ifmap-server +priority=420 +autostart=true +autorestart=true +killasgroup=true +stopasgroup=true +stopsignal=TERM +redirect_stderr=true +stdout_logfile=/var/log/contrail/ifmap-stdout.log +stderr_logfile=/dev/null +user=contrail diff --git a/charms/trusty/contrail-configuration/files/ntpq-nodemgr b/charms/trusty/contrail-configuration/files/ntpq-nodemgr new file mode 100755 index 0000000..da00247 --- /dev/null +++ b/charms/trusty/contrail-configuration/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 "*" -- cgit 1.2.3-korg