mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
add engines to minion (raet only)
This commit is contained in:
parent
a52ebdac3b
commit
8a8b5c86c2
2 changed files with 32 additions and 0 deletions
|
@ -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
|
||||
|
|
24
salt/engines/test_minion.py
Normal file
24
salt/engines/test_minion.py
Normal 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)
|
Loading…
Add table
Reference in a new issue