This commit is contained in:
Thomas S Hatch 2016-02-02 17:49:29 -07:00 committed by rallytime
parent c6ba7000dd
commit b44db85b98
5 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
'''
Manage the Thorium complex event reaction system
'''

View file

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
'''
The thorium system allows for advanced event tracking and reactions
'''
@ -9,6 +10,7 @@ The thorium system allows for advanced event tracking and reactions
# Add dynamic recompile of thorium ruleset on given interval
# Import python libs
from __future__ import absolute_import
import time
import logging
import traceback
@ -44,7 +46,6 @@ class ThorState(salt.state.HighState):
except Exception:
time.sleep(self.opts['thorium_interval'])
def get_chunks(self, exclude=None, whitelist=None):
'''
Compile the top file and return the lowstate for the thorium runtime

View file

@ -1,9 +1,12 @@
# -*- coding: utf-8 -*-
'''
The check Thorium state is used to create gateways to commands, the checks
make it easy to make states that watch registers for changes and then just
succeed or fail based on the state of the register, this creates the pattern
of having a command execution get gated by a check state via a requisite.
'''
# import python libs
from __future__ import absolute_import
def gt(name, value):

View file

@ -1,8 +1,10 @@
# -*- coding: utf-8 -*-
'''
A simple test module, writes matches to disk to verify activity
Writes matches to disk to verify activity, helpful when testing
'''
# Import python libs
# import python libs
from __future__ import absolute_import
import os
import json

View file

@ -1,16 +1,18 @@
# -*- coding: utf-8 -*-
'''
Used to manage the thorium register. The thorium register is where compound
values are stored and computed, such as averages etc.
'''
# import python libs
from __future__ import division
from __future__ import absolute_import, division
import fnmatch
__func_alias__ = {
'set_': 'set',
}
def set_(name, add, match):
'''
Add a value to the named set