This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "ansible_mounts": [ | |
| { | |
| "device": "/dev/xvde1", | |
| "fstype": "ext4", | |
| "mount": "/", | |
| "options": "rw,relatime", | |
| "size_available": 3643994112, | |
| "size_total": 5283381248 | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [david@ip-10-100-1-44 ~]$ /data/loko/infra-hwyman-mogbase/current/bin/mogadm --trackers=10.100.1.45:7001 host list . | |
| +++ dirname /data/loko/infra-hwyman-mogbase/current/bin/pwrapper | |
| ++ readlink -f /data/loko/infra-hwyman-mogbase/current/bin | |
| + BIN_DIR=/export/hda3/loko/infra-hwyman-mogbase/installed/59f3b7e/bin | |
| + export PERL5LIB=/export/hda3/loko/infra-hwyman-mogbase/installed/59f3b7e/bin/../perl5/lib/perl5 | |
| + PERL5LIB=/export/hda3/loko/infra-hwyman-mogbase/installed/59f3b7e/bin/../perl5/lib/perl5 | |
| + BIN=mogadm | |
| + shift | |
| + exec /export/hda3/loko/infra-hwyman-mogbase/installed/59f3b7e/bin/../perl5/bin/mogadm --trackers=10.100.1.45:7001 host list . | |
| Unable to find MogileFS::Admin module. Please ensure that you have the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - hosts: 10.100.1.43 | |
| tasks: | |
| - name: mount filter1 | |
| debug: msg=${item.mount} | |
| when: item.mount.endswith('da3') | |
| with_items: $ansible_mounts | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> def f(): return 'result of f' | |
| ... | |
| >>> def y(): | |
| ... x = yield f() | |
| ... print type(x) | |
| ... | |
| >>> list(y()) | |
| <type 'NoneType'> | |
| ['result of f'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from concurrent.futures import ThreadPoolExecutor | |
| from tornado.concurrent import run_on_executor, Future | |
| from tornado import httpclient,ioloop,web,gen | |
| import request | |
| import sys | |
| httpclient.AsyncHTTPClient.configure('tornado.curl_httpclient.CurlAsyncHTTPClient', max_clients=10) | |
| # TODO: remove | |
| class Foo(Exception): pass | |
| def dot(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "current_version": "9b23bf1", | |
| "pkgname": "infra-gmond-10.8", | |
| "recent": [ | |
| "bb83632", | |
| "1ddc070", | |
| "baa872f", | |
| "e7c699b", | |
| "a43ad02" | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "host": "imgix-worker-0079", | |
| "phase": "preactivate", | |
| "pkg": "infra-gmond-10.8", | |
| "status": 0, | |
| "stderr": "/gfs/v1/hooks/infra-gmond-10.8/imgix-worker-0079/e64417/184406.stderr", | |
| "stdout": "/gfs/v1/hooks/infra-gmond-10.8/imgix-worker-0079/e64417/184406.stdout", | |
| "updated": "2013-09-12 00:19:58", | |
| "version": "9b23bf1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ini-style inventory script | |
| <snip> | |
| [rack_aaaa] | |
| aaaa[1:10] | |
| [rack_aaaa_missing] | |
| aaaa5 | |
| [rack_aaaa_missing:vars] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hosts: all:!undef_broken:!undef_missing | |
| gather_facts: false | |
| tasks: | |
| - add_host: name={{ inventory_hostname }} groups=alive | |
| when: "'broken' != '{{ state }}' and 'missing' != '{{ state }}'" | |
| - shell: echo " define 'alive' for host {{ inventory_hostname }}" | |
| ###### when run: |