mcollective-2.0.0/ 0000755 0001750 0001750 00000000000 11747546503 013041 5 ustar jonas jonas mcollective-2.0.0/mcollective.init 0000755 0001750 0001750 00000005543 11747546503 016246 0 ustar jonas jonas #!/bin/sh # # mcollective Application Server for STOMP based agents # # chkconfig: 345 24 76 # # description: mcollective lets you build powerful Stomp compatible middleware clients in ruby without having to worry too # much about all the setup and management of a Stomp connection, it also provides stats, logging and so forth # as a bonus. # ### BEGIN INIT INFO # Provides: mcollective # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start daemon at boot time # Description: Enable service provided by daemon. ### END INIT INFO mcollectived="/usr/sbin/mcollectived" # Lockfile if [ -d /var/lock/subsys ]; then # RedHat/CentOS/etc who use subsys lock="/var/lock/subsys/mcollective" else # The rest of them lock="/var/lock/mcollective" fi # PID directory pidfile="/var/run/mcollectived.pid" # Source function library. . /lib/lsb/init-functions # Check that binary exists if ! [ -f $mcollectived ] then echo "mcollectived binary not found" exit 0 fi # See how we were called. case "$1" in start) echo -n "Starting mcollective: " if [ -f ${lock} ]; then # we were not shut down correctly if [ -s ${pidfile} ]; then kill `cat ${pidfile}` >/dev/null 2>&1 fi rm -f ${pidfile} rm -f ${lock} sleep 2 fi rm -f ${pidfile} ${mcollectived} --pid=${pidfile} --config="/etc/mcollective/server.cfg" if [ $? = 0 ]; then log_success_msg touch $lock exit 0 else log_failure_msg exit 1 fi ;; stop) echo -n "Shutting down mcollective: " if [ -s ${pidfile} ]; then kill `cat ${pidfile}` >/dev/null 2>&1 fi rm -f ${pidfile} log_success_msg rm -f $lock ;; restart) $0 stop sleep 2 $0 start ;; condrestart) if [ -f $lock ]; then $0 stop # avoid race sleep 2 $0 start fi ;; status) if [ -f ${lock} ]; then if [ -s ${pidfile} ]; then if [ -e /proc/`cat ${pidfile}` ]; then echo "mcollectived (`cat ${pidfile}`) is running" exit 0 else echo "mcollectived (`cat ${pidfile}`) is NOT running" exit 1 fi fi else echo "mcollectived: service not started" exit 1 fi ;; force-reload) echo "not implemented" ;; *) echo "Usage: mcollectived {start|stop|restart|condrestart|status}" exit 1 ;; esac exit 0 mcollective-2.0.0/etc/ 0000755 0001750 0001750 00000000000 11747546503 013614 5 ustar jonas jonas mcollective-2.0.0/etc/rpc-help.erb 0000644 0001750 0001750 00000002661 11747546503 016025 0 ustar jonas jonas <%= meta[:name] %> <% meta[:name].size.times do %>=<% end %> <%= meta[:description] %> Author: <%= meta[:author] %> Version: <%= meta[:version] %> License: <%= meta[:license] %> Timeout: <%= meta[:timeout] %> Home Page: <%= meta[:url] %> ACTIONS: ======== <%= actions.keys.sort.join(", ") %> % actions.keys.sort.each do |action| <%= action %> action: <% (action.size + 8).times do %>-<% end %> <%= actions[action][:description] %> INPUT: % actions[action][:input].keys.sort.each do |input| <%= input %>: Description: <%= actions[action][:input][input][:description] %> Prompt: <%= actions[action][:input][input][:prompt] %> Type: <%= actions[action][:input][input][:type] %> % if actions[action][:input][input][:type] == :string Validation: <%= actions[action][:input][input][:validation] %> Length: <%= actions[action][:input][input][:maxlength] %> % elsif actions[action][:input][input][:type] == :list Valid Values: <%= actions[action][:input][input][:list].join(", ") %> % end % end OUTPUT: % actions[action][:output].keys.sort.each do |output| <%= output %>: Description: <%= actions[action][:output][output][:description] %> Display As: <%= actions[action][:output][output][:display_as] %> % end % end mcollective-2.0.0/etc/server.cfg.dist 0000644 0001750 0001750 00000000666 11747546503 016555 0 ustar jonas jonas topicprefix = /topic/ main_collective = mcollective collectives = mcollective libdir = /usr/libexec/mcollective logfile = /var/log/mcollective.log loglevel = info daemonize = 1 # Plugins securityprovider = psk plugin.psk = unset connector = stomp plugin.stomp.host = localhost plugin.stomp.port = 61613 plugin.stomp.user = mcollective plugin.stomp.password = secret # Facts factsource = yaml plugin.yaml = /etc/mcollective/facts.yaml mcollective-2.0.0/etc/client.cfg.dist 0000644 0001750 0001750 00000000633 11747546503 016517 0 ustar jonas jonas topicprefix = /topic/ main_collective = mcollective collectives = mcollective libdir = /usr/libexec/mcollective logger_type = console loglevel = warn # Plugins securityprovider = psk plugin.psk = unset connector = stomp plugin.stomp.host = localhost plugin.stomp.port = 61613 plugin.stomp.user = mcollective plugin.stomp.password = secret # Facts factsource = yaml plugin.yaml = /etc/mcollective/facts.yaml mcollective-2.0.0/etc/facts.yaml.dist 0000644 0001750 0001750 00000000023 11747546503 016535 0 ustar jonas jonas --- mcollective: 1 mcollective-2.0.0/etc/ssl/ 0000755 0001750 0001750 00000000000 11747546503 014415 5 ustar jonas jonas mcollective-2.0.0/etc/ssl/PLACEHOLDER 0000644 0001750 0001750 00000000000 11747546503 016050 0 ustar jonas jonas mcollective-2.0.0/etc/ssl/clients/ 0000755 0001750 0001750 00000000000 11747546503 016056 5 ustar jonas jonas mcollective-2.0.0/etc/ssl/clients/PLACEHOLDER 0000644 0001750 0001750 00000000000 11747546503 017511 0 ustar jonas jonas mcollective-2.0.0/doc/ 0000755 0001750 0001750 00000000000 11747546503 013606 5 ustar jonas jonas mcollective-2.0.0/doc/index.html 0000644 0001750 0001750 00000001427 11747546503 015607 0 ustar jonas jonas