Kind of working workflows...
This commit is contained in:
parent
c1cb9aa3db
commit
17abb6019c
8 changed files with 213 additions and 132 deletions
12
examples/uptime.scm
Normal file
12
examples/uptime.scm
Normal file
|
@ -0,0 +1,12 @@
|
|||
(use-modules (ordo core)
|
||||
(ordo inventory)
|
||||
(ordo connection)
|
||||
(ordo logger)
|
||||
(srfi srfi-26))
|
||||
|
||||
(define uptime (task #:name "uptime" #:action (cut remote-cmd <> "uptime" #:return car)))
|
||||
|
||||
(define flow (workflow
|
||||
(step #:action uptime #:target "root@limiting-factor" #:continue-on-err? #t)))
|
||||
|
||||
(define resolver (load-inventory "examples/inventory.scm"))
|
Loading…
Add table
Add a link
Reference in a new issue