This is a widget hacky thing for visualizing things in AWX which do not otherwise have visualization.
https://github.com/ansible/awx/compare/devel...AlanCoding:inspector?expand=1
SVG here for the job was produced by
This is a widget hacky thing for visualizing things in AWX which do not otherwise have visualization.
https://github.com/ansible/awx/compare/devel...AlanCoding:inspector?expand=1
SVG here for the job was produced by
This gist is about a one-off process to convert the tower_*
modules in Ansible core
into the AWX collection, and some miscelaneous tasks like cherry picking content in the
interium period.
We started out using the content collector tool, with some modifications. This extremely hacky bash script is what I used to document my steps. In the end, we did not use the tree created from this tool, but I did use it to check that what we had is right by diffing between the files it created and what my more
[inventory] | |
enable_plugins = ini, constructed |
# coding:utf-8 | |
import gc | |
import inspect | |
import ctypes | |
from collections import defaultdict | |
from django.core.management.base import BaseCommand | |
from django.db.models.signals import * |
from celery import Task | |
from celery.task import task | |
from my_app.models import FailedTask | |
from django.db import models | |
@task(base=LogErrorsTask) | |
def some task(): | |
return result | |
class LogErrorsTask(Task): |
class A(models.Model): | |
things = models.ManyToManyField("B", through=ThroughModel) | |
class B(models.Model): | |
text = models.TextField() | |
class ThroughModel(models.Model): | |
a = models.ForeignKey(A) | |
b = models.ForeignKey(B) | |
extra = models.BooleanField() |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2012 Martin Ueding <[email protected]> | |
""" | |
Based on a Question from "Physics - Stack Exchange". | |
http://physics.stackexchange.com/questions/20083/riddle-about-speed | |
""" |