This is an initial implementation of the mgmt language. It is a declarative (immutable) functional, reactive, domain specific programming language. It is intended to be a language that is: * safe * powerful * easy to reason about With these properties, we hope this language, and the mgmt engine will allow you to model the real-time systems that you'd like to automate. This also includes a number of other associated changes. Sorry for the large size of this patch.
84 lines
1.2 KiB
YAML
84 lines
1.2 KiB
YAML
---
|
|
graph: mygraph
|
|
resources:
|
|
exec:
|
|
- name: exec1
|
|
cmd: sleep 10s
|
|
shell: ''
|
|
timeout: 0
|
|
watchcmd: ''
|
|
watchshell: ''
|
|
ifcmd: ''
|
|
ifshell: ''
|
|
pollint: 0
|
|
state: present
|
|
- name: exec2
|
|
cmd: sleep 10s
|
|
shell: ''
|
|
timeout: 0
|
|
watchcmd: ''
|
|
watchshell: ''
|
|
ifcmd: ''
|
|
ifshell: ''
|
|
pollint: 0
|
|
state: present
|
|
- name: exec3
|
|
cmd: sleep 10s
|
|
shell: ''
|
|
timeout: 0
|
|
watchcmd: ''
|
|
watchshell: ''
|
|
ifcmd: ''
|
|
ifshell: ''
|
|
pollint: 0
|
|
state: present
|
|
- name: exec4
|
|
cmd: sleep 10s
|
|
shell: ''
|
|
timeout: 0
|
|
watchcmd: ''
|
|
watchshell: ''
|
|
ifcmd: ''
|
|
ifshell: ''
|
|
pollint: 0
|
|
state: present
|
|
- name: exec5
|
|
cmd: sleep 15s
|
|
shell: ''
|
|
timeout: 0
|
|
watchcmd: ''
|
|
watchshell: ''
|
|
ifcmd: ''
|
|
ifshell: ''
|
|
pollint: 0
|
|
state: present
|
|
edges:
|
|
- name: e1
|
|
from:
|
|
kind: exec
|
|
name: exec1
|
|
to:
|
|
kind: exec
|
|
name: exec2
|
|
- name: e2
|
|
from:
|
|
kind: exec
|
|
name: exec1
|
|
to:
|
|
kind: exec
|
|
name: exec3
|
|
- name: e3
|
|
from:
|
|
kind: exec
|
|
name: exec2
|
|
to:
|
|
kind: exec
|
|
name: exec4
|
|
- name: e4
|
|
from:
|
|
kind: exec
|
|
name: exec3
|
|
to:
|
|
kind: exec
|
|
name: exec4
|