From 402af8f8bb04d920ee6c19af8b92a034ef42cced Mon Sep 17 00:00:00 2001 From: sienkiew Date: Thu, 7 Jun 2012 22:02:34 +0000 Subject: first part of HOSTGROUP implemented git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@707 d34015c8-bcbb-4646-8ac8-8ba5febf221d --- NOTES | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'NOTES') diff --git a/NOTES b/NOTES index e830812..88bf2fe 100644 --- a/NOTES +++ b/NOTES @@ -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 + + -- cgit