add engines to minion (raet only)

This commit is contained in:
Matthew Williams 2015-03-04 08:48:42 +00:00
parent a52ebdac3b
commit 8a8b5c86c2
2 changed files with 32 additions and 0 deletions

View file

@ -24,12 +24,20 @@ framer minionudpstack be active first setup
frame setupbeacon
do salt raet setup beacon at enter
go spawnreactor
go startengines
go start
frame spawnreactor
let me if .salt.etc.reactor
enter
do salt raet reactor fork
go startengines
go start
frame startengines
let me if .salt.etc.engines
enter
do salt raet setup engines
go start
# OK, let's start the minion up

View file

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
'''
A simple test engine, not intended for real use but as an example
'''
# Import python libs
import time
# Import salt libs
import salt.utils.event
# Import python libs
import json
import logging
log = logging.getLogger(__name__)
def start():
'''
Do something from time to time
'''
while True:
log.debug('.')
time.sleep(5)