Skip to content

Instantly share code, notes, and snippets.

View ashcrow's full-sized avatar
😎

Stephen Milner ashcrow

😎
View GitHub Profile
@ashcrow
ashcrow / investigator.py
Created June 8, 2016 14:16
Hacky Test For Bus + BDD Process Control
diff --git a/src/commissaire/jobs/investigator.py b/src/commissaire/jobs/investigator.py
index b5a2a42..1f1bbc2 100644
--- a/src/commissaire/jobs/investigator.py
+++ b/src/commissaire/jobs/investigator.py
@@ -16,8 +16,8 @@
The investigator job.
"""
+import cherrypy
import datetime

Keybase proof

I hereby claim:

  • I am ashcrow on github.
  • I am ashcrow (https://keybase.io/ashcrow) on keybase.
  • I have a public key whose fingerprint is 2A94 DF1F 1F10 80A1 902B 1A4C D515 E2AD BD13 0504

To claim this, I am signing this object:

@ashcrow
ashcrow / clustersservice.py
Last active August 31, 2016 18:00
URL Path to Topic Router Example
#!/usr/bin/env python3
import logging
from kombu import Connection, Exchange, Queue, Producer
from kombu.mixins import ConsumerMixin
exchange = Exchange('commissaire', type='direct')
# NOTE: Hardcoding the queue for the example
queue = Queue('clusters', exchange, 'http.clusters')
@ashcrow
ashcrow / is_atomic.yml
Last active October 12, 2016 19:48
Example is_atomic
---
- set_fact:
is_atomic: False
- name: Checking for Atomic model
stat:
path: /run/ostree-booted
register: ostree_booted
ignore_errors: True

Short Term

  • (Port) Host node status checking (aka “watcher” process) (Work in progress)
  • (Port) Rolling restarts across clusters (Work in progress)
  • (Port) Easy atomic host upgrade / rollback (Work in progress)
  • Use external APIs for host inventory via a plugin system
  • Update cluster definitions
  • switch from host_only or container based to allow for a broader set of types
  • cluster types may need to have special ansible snippets during bootstrapping, etc..
@ashcrow
ashcrow / commissaire-log-2016-14-11.txt
Created November 14, 2016 13:07
commissaire-log-2016-14-11
07:32:59 ashcrow | Agenda Item 1: Presentations. None this week.
07:33:19 ashcrow | Agenda Item 2: Open PR Discussions
07:33:39 ashcrow | We do have 2 PRs in progress that came in Friday. (will update agenda)
07:34:00 ashcrow | - Clusterexec service: https://github.com/projectatomic/commissaire-service/pull/27
07:34:01 mbarnes | mine should be ready today (https://github.com/projectatomic/commissaire-service/pull/27)
07:34:29 ashcrow | - Container Manager Config: https://github.com/projectatomic/commissaire/pull/50
07:34:52 ashcrow | - Vagrant Update:https://github.com/projectatomic/commissaire/pull/53
07:35:12 ashcrow | - Model._validate no longer updates signature: https://github.com/projectatomic/commissaire/pull/52
07:35:14 ashcrow | make that 4 :-D
07:36:03 ashcrow | Folks who have time please take a look and review/pre-review PR's. That's always helpful. I'll take a look myself at Clusterexec and Vagrant ones today.
@ashcrow
ashcrow / commissaire-2016-14-11-agenda.md
Last active November 14, 2016 13:10
Agenda for 2016-14-11
07:31:43 ashcrow | gbraad / portdirect_away / mbarnes: Morning/Afternoon/Evening. Let's begin!
07:31:55 ashcrow | Agenga: https://gist.github.com/ashcrow/ca15174334044c0be77591fb1f330617
07:32:07 ashcrow | Agengad Item 1: Presentations
07:32:20 ashcrow | None this week.
07:32:28 ashcrow | Agenda Item 2: Open PR Discussions
07:32:54 ashcrow | There are 3 open PRs. All of which look to be ready for review.
07:33:01 ashcrow | Use appropriate to_dict() or to_json() calls
07:33:15 ashcrow | Drop 'secure' arg from model methods (2 PRs for this)
07:33:24 mbarnes | yeah, those are all just cleanups from last week. all pretty simple.
07:33:30 ashcrow | excellent