This file contains 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
- ara_record: | |
key: "foo" | |
value: "bar" | |
register: record | |
- debug: | |
var: record | |
msg: "Ara recording has uuid {{ record.playbook_id }}" |
This file contains 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
import threading | |
import time | |
class Event(object): | |
def __init__(self): | |
self._cond = threading.Condition() | |
self._val = False | |
def set(self): |
This file contains 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
/var/lib/cloud | |
├── data | |
│ ├── instance-id | |
│ ├── previous-datasource | |
│ ├── previous-instance-id | |
│ ├── result.json | |
│ └── status.json | |
├── handlers | |
├── instance -> /var/lib/cloud/instances/54a14473-5850-48f8-a777-1951d3edfedb | |
├── instances |
This file contains 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
// Build | |
for(int i = 0; i < projects.size(); i++) { | |
def project = projects.get(i) | |
def jenkins_job = [:] | |
jenkins_job['build_number'] = env.BUILD_NUMBER | |
jenkins_job['build_tag'] = env.BUILD_TAG | |
jenkins_job['build_url'] = env.BUILD_URL | |
jenkins_job['build_name'] = env.BUILD_NAME | |
jenkins_job['build_id'] = env.BUILD_ID | |
def project_details = projects_details[project] |
This file contains 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
Traceback (most recent call last): | |
File "/opt/daddy/venv/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app | |
response = self.full_dispatch_request() | |
File "/opt/daddy/venv/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request | |
rv = self.handle_user_exception(e) | |
File "/opt/daddy/venv/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception | |
reraise(exc_type, exc_value, tb) | |
File "/opt/daddy/venv/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request | |
rv = self.dispatch_request() | |
File "/opt/daddy/venv/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request |
This file contains 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
import logging | |
logging.basicConfig(level=5) | |
from taskflow import engines as eng | |
from taskflow.patterns import linear_flow as lf | |
from taskflow import task | |
class MyTask(task.Task): | |
def execute(self): | |
raise ValueError('foo') |
This file contains 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
$ python test.py | |
DEBUG:taskflow.engines.helpers:Looking for 'default' engine driver in 'taskflow.engines' | |
DEBUG:stevedore.extension:found extension EntryPoint.parse('default = taskflow.engines.action_engine.engine:SerialActionEngine') | |
DEBUG:stevedore.extension:found extension EntryPoint.parse('serial = taskflow.engines.action_engine.engine:SerialActionEngine') | |
DEBUG:stevedore.extension:found extension EntryPoint.parse('workers = taskflow.engines.worker_based.engine:WorkerBasedActionEngine') | |
DEBUG:stevedore.extension:found extension EntryPoint.parse('worker-based = taskflow.engines.worker_based.engine:WorkerBasedActionEngine') | |
DEBUG:stevedore.extension:found extension EntryPoint.parse('parallel = taskflow.engines.action_engine.engine:ParallelActionEngine') | |
Level 5:taskflow.engines.action_engine.compiler:Compiling 'linear_flow.Flow: test(len=2)' | |
Level 5:taskflow.engines.action_engine.compiler: Compiling '__main__.HappyTask==1.0' | |
Level 5:taskflow.engines.action_engine.compiler: Decomposed '__main__.HappyTask= |
This file contains 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
import collections | |
import os | |
import contextlib2 | |
import six | |
import subprocess32 | |
class AnsiblePlaybook(object): |
This file contains 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
# NOTE: this is a template, not the actual docker file... | |
# | |
# It will be turned into a dockerfile and processed by | |
# jenkins and the corresponding jenkinsfile contained in | |
# this working directory. | |
FROM centos:7 | |
MAINTAINER ${maintainers} |
This file contains 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
(venv)[root@f5c6570a185c /]# pip freeze | |
alembic==0.9.1 | |
ansible==2.2.2.0 | |
ansible-vault==1.0.4 | |
ara==0.12.3 | |
asn1crypto==0.22.0 | |
Babel==2.4.0 | |
backports.ssl-match-hostname==3.5.0.1 | |
cffi==1.10.0 | |
click==6.7 |