Turns Ansible log outputs into plain JSON strings and sends them to an Elasticsearch cluster.
Place the script in your playbook's plugins/callbacks/ directory.
| import sys | |
| from suds import client | |
| from suds.wsse import Security, UsernameToken | |
| from suds.sax.text import Raw | |
| from suds.sudsobject import asdict | |
| from suds import WebFault | |
| ''' | |
| Given a Workday Employee_ID, returns the last name of that employee. |
| {_} = require 'underscore' | |
| child_process = require 'child_process' | |
| async = require 'async' | |
| healthCheckInterval = 60 * 1000 | |
| bounceInterval = 60 * 1000 | |
| bounceWait = bounceInterval + 30 * 1000 | |
| delayTimeout = (ms, func) -> setTimeout func, ms | |
| class MonitoredChild |
| (function(window,undefined){ | |
| // Prepare our Variables | |
| var | |
| History = window.History, | |
| $ = window.jQuery; | |
| // Wait for Document | |
| History.Adapter.onDomLoad(function(){ | |
| // Prepare Variables |
| // http://svn.ckeditor.com/CKEditor/trunk/_source/plugins/basicstyles/plugin.js | |
| Aloha.ui.store = function(ID,properties){ | |
| Aloha.ui.objects[ID] = { | |
| config: config, | |
| element: $button | |
| }; | |
| } | |
| Aloha.ui.createButton = function( ID, config ){ |