Hey,

> [...]
> - pre/post install scripts are executed in the following order:
>   - [0-9][0-9]all.*
>   - [0-9][0-9]IMAGENAME.*
>   - [0-9][0-9]BASE_HOSTNAME.*
>   - [0-9][0-9]GROUPNAME.*
>   - [0-9][0-9]HOSTNAME.*
> [...]

I'm not sure how it is currently implemented in SI, but I see the following
problems with this suggestion:

1. If I understand correctly the ordering with a number prefix does only
work within a class. So for example if I have a script
10all.configuresomestuff and some other *all-scripts depend on the changes
made by this script, I can't override this script for some other group. The
group scripts will only run, after all dependent *all-scripts are already
run.

2. You can't really 'override' a script, so that e.g. the group-script will
run INSTEAD of the all-script, you can only revert the changes made by these
higher level scripts (if they are reversible at all).

Instead I suggest the following scheme:

1. Ordering is global between all classes, so a 10all.script will run after
a 09GROUPNAME.script, but before a 11GROUPNAME.script. If you don't want
that you can achieve the same ordering as above by renumbering your scripts
(this could even be done automatically when upgrading from a previous
version).

2. You can override a script by choosing the same name and number for a
script, but with a different scope. So for example if you have a script
10all.networking and a script 10MYGROUP.networking, then
10MYGROUP.networking will run on every host in the 'MYGROUP'-group INSTEAD
of the 10all.networking script. On all other hosts the 10all.networking
script will run obviously. If you don't want this behavior you can simply
choose another name or ordering (or simply call the overridden script from
your script).

This would also be more similar to the way the master-script is choosen. In
fact except for the numeric part at the beginning the logic is exactly the
same!

Just my 2ct...

And yes, I realize I'm probably totally wrong here, it will horribly break
backward compatibility and I'm a complete newbie ;-)

Thanks for listening,
Thomas Krause


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
sisuite-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to