Initial public commit of mgmt

This is a prototype that i'm attempting to "release early". Expect a lot
of changes! It is intended to be a config management tool that will:

* be event based
* execute actions in parallel
* function as a distributed system

There are a bunch more design ideas going into this, please stay tuned!
This commit is contained in:
James Shubin
2015-09-25 01:07:56 -04:00
commit 25ad05cce3
27 changed files with 2887 additions and 0 deletions

41
examples/graph1.yaml Normal file
View File

@@ -0,0 +1,41 @@
---
graph: mygraph
types:
noop:
- name: noop1
file:
- name: file1
path: /tmp/mgmt/f1
content: |
i am f1
state: exists
- name: file2
path: /tmp/mgmt/f2
content: |
i am f2
state: exists
- name: file3
path: /tmp/mgmt/f3
content: |
i am f3
state: exists
- name: file4
path: /tmp/mgmt/f4
content: |
i am f4 and i should not be here
state: absent
edges:
- name: e1
from:
type: file
name: file1
to:
type: file
name: file2
- name: e2
from:
type: file
name: file2
to:
type: file
name: file3

30
examples/graph2.yaml Normal file
View File

@@ -0,0 +1,30 @@
---
graph: mygraph
types:
noop:
- name: noop1
file:
- name: file1
path: /tmp/mgmt/f1
content: |
i am f1
state: exists
service:
- name: purpleidea
state: running
startup: enabled
edges:
- name: e1
from:
type: noop
name: noop1
to:
type: file
name: file1
- name: e2
from:
type: file
name: file1
to:
type: service
name: purpleidea