diff options
author | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2012-06-07 18:02:34 -0400 |
---|---|---|
committer | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2012-06-07 18:02:34 -0400 |
commit | 402af8f8bb04d920ee6c19af8b92a034ef42cced (patch) | |
tree | 96433aab5565567d3d01ecbc4cca503cd684876f /NOTES | |
parent | 1fa61215db77400b8035570d50f0376fe602c720 (diff) | |
download | steuermann-402af8f8bb04d920ee6c19af8b92a034ef42cced.tar.gz |
first part of HOSTGROUP implemented
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@707 d34015c8-bcbb-4646-8ac8-8ba5febf221d
Diffstat (limited to 'NOTES')
-rw-r--r-- | NOTES | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -60,3 +60,42 @@ There are bunches of other details that I'll have to describe some time. Mark +-------------------- + +The new HOSTGROUP feature works like this: + +# defines a set of conditions - each condition is a python function in a CONDITIONS block +CONDITIONS + def foo() : + return True + def bar() : + return False +END +# the END must be on a line by itself + + +HOSTGROUP @xyz + IF foo : a1 a2 a3 + # adds a1, a2, a3 to hostgroup @xyz if condition foo() returns trun + IF bar : b1 b2 b3 + # adds b1, b2, b3 to hostgroup @xyz if condition bar() returns trun + + +TABLE whatever HOST @xyz banana + # defines table whatever to be on all the hosts in xyz and the host banana + ... + +hostgroup is implemented up to here. + +The following feature is not implemented yet: + + AFTER @xyz:this/that + +is the same as + AFTER a1:this/that + AFTER a2:this/that + AFTER a3:this/that + +assuming that condition foo() was true and bar() was false + + |