collective / collective.hostout

zc.buildout deployment and remote control
22 stars 7 forks source link

different os bootstraps should be inbuilt to enable autodetection #1

Closed djay closed 13 years ago

djay commented 13 years ago

autodetection would be nice

djay commented 13 years ago

I was thinking of a single bootstrap function that would then call bootstrap_ubuntu or bootstrap_freebsd etc. It would do this by comparing hostos param to the method names. Could even support more specific os like bootstrap_ubuntu_lucid if we use substring comparison. If no hostos exists we can login and check. External plugins could default their own hostos via their recipe to force their use. Note hostos param is already used by hostout.cloud to determine what image to create.

djay commented 13 years ago

and alternative could be to try each boostrap_X in turn until one returns True. This would give the function the to determine if applies or not

djay commented 13 years ago

this is complete