digitalrinaldo
|
Posted: May 03, 2009 20:55 by digitalrinaldo
|
| There are many tools that all claim to provide a solution to managing nodes, yet each one from Tivoli, OpenNMS, Ganglia and numerous others, have their strengths and weaknesses. So as usual I have to develop my own view, few of the tools support plugins that just take a few minutes. I have some code for naws that lets me do simple things like establish trust using ssh, verify if webconsole, a Solaris admin console, is running and set it to run or turn it off for a production environment. I want to map several remote web sites running on port 6789 in https so that I can go to one page and click on any of them and be served the content without opening ports. I have no interest in using Apache's implementation of proxy for this. I find it hard to use and not easy to extend. |
Using naws to provide a unified view of many machines
Replies: 6 - Last Post: June 02, 2009 00:54
by: digitalrinaldo
by: digitalrinaldo
showing 1 - 7 of 7
digitalrinaldo
|
Posted: May 03, 2009 22:23 by digitalrinaldo
|
|
I see that the WebMountHandler does this. I have more questions. What if I want to map sites dynamically. I tried the following and I get an error message on startup. <set name="mount.map" value="a b" /> <set name="a.local" value="..." /> .... LOG: 5 9005-server: : starting handler: session LOG: 5 9005-server: : starting handler: mount LOG: 2 9005-server: mount.: Missing map: mount..map LOG: 2 9005-server: mount.: maps: [] I could enumerate this but I have about 100 systems. If you can add sites dynamically, is there somethign naws calls at startup to do some initialization. It would be nice to call it something other than .html to shut the MVC people up so they don't think html files are only for presentation, technically they are. |
sauhler
|
Posted: May 04, 2009 18:10 by sauhler
|
|
digitalrinaldo said:
It would be nice to call it something other than .html to shut the MVC people up so they don't think html files are only for presentation, technically they are.
You can use any suffix you like for template files, as long as the mime type is specified. for example, put mime.bsl=text/html in the config file, and end all templates (e.g. TemplateHandler files) with ".bsl". I tend to use ".html" in my applications because that is what the content that gets delivered to the browser ends up being, and user's are accustomed to having "html" content in a file that ends in ".html". (Sometimes I use mime.asp=text/html then have all my template files end in ".asp". Just for fun
|
digitalrinaldo
|
Posted: June 02, 2009 00:53 by digitalrinaldo
|
| Yes this works thanks. |
digitalrinaldo
|
Posted: May 03, 2009 23:37 by digitalrinaldo
|
|
I know there are security issues with man in the middle attacks but there are cases where say you are on an IPSEC network with a bunch of hosts, you don't really need to do ssl again. However some websites may have been written to be https only it would be useful if webmount would allow http to https mappings. Does this option work? |
sauhler
|
Posted: May 04, 2009 17:55 by sauhler
|
|
There are a couple of questions in this post; I'll try to answer them separately. In general, handlers process their configuration options either once at start up, or at each request, pretty much at the whim of the author. It's a trade off between flexibility and performance. In the case of the WebMountHandler, the configuration is computed once at startup, so modifying the mount maps dynamically is not currently possible. It is easily modified to recompute all the maps on every request, but at the cost of either greater complexity of the data structures, or performance degradation. I'm considering a hybrid approach (which if it works out could be adopted by many handlers) of having a special configuration property, say, "configurationChanged", that if true, would cause the handler to recompute it's configuration, and then "unset" the "configurationChanged" parameter. This way, the configuration would only be recomputed as-needed, but could be modified on a request basis. In the case of the WebMountHandler, one could: <set name=mount.mappings value="mnt1 mnt2 mnt3" namespace=server> <set name=mount.configurationChanged value=true namespace=server> to cause the mounts to change. S |
digitalrinaldo
|
Posted: June 02, 2009 00:54 by digitalrinaldo
|
| I have the change you made to support dynamic addition of maps. |
showing 1 - 7 of 7
Replies: 6 - Last Post: June 02, 2009 00:54
by: digitalrinaldo
by: digitalrinaldo







