-
Notifications
You must be signed in to change notification settings - Fork 2k
Allow drivers to skip SSH provisioning #886
Comments
@twhiteman What specifically are you wanting to skip? Installation of Docker? Setting hostname, configuration of the certs etc.? |
@nathanleclaire All of it :P - I wanted to create a driver (which behaves similar to the none driver), but where I can specify the SDC Docker settings, like:
This is in the aim of then being able to use docker-machine env to populate the docker client settings. Perhaps another take on this would be imaging the provisioning steps occurring over a REST API? Note: The SDC Docker already handles the remote docker machine setup in other ways, so the other docker-machine commands (start, stop, upgrade, rm, ...) are not applicable for SDC Docker. |
What OS is SDC behind the scenes? If SDC supports |
OS: SmartOS / Illumos (aka Solaris) - no /etc/os-release (it's Unix but not Linux). For custom provisioner, it looks like it still requires SSH, thus my question about an alternative merthod (if I'm reading the code right). C.f.:
Line 110 in 45f08d9
|
Note that the SDC Docker I'm referring to uses its own implementation of the Docker Remote API, so it's somewhat different to a regular docker host setup. This means the provisioning side for SDC Docker (setting up keys/certs, managing machines, installing docker, ...) is already done (already available) when the user first creates an account with SDC. |
Here's my thinking on how to enable this (since IMO it's a very important type of driver to enable and would love to see Triton / Carina type drivers): I don't want to change the Basically, I'm thinking that maybe we can bundle the methods related to SSH into another interface (say |
I think the But I think we should also consider bumping the |
Currently the "none" driver name is used to skip the SSH provisioning steps:
machine/libmachine/host.go
Line 110 in 45f08d9
I'd like to be able to skip the SSH provisioning too, for a SDC Docker driver I'm writing.
My initial thoughts are to add SupportsSSH() or SupportsSSHProvisioning() to the Driver interface - but that requires changes to all existing drivers - which I'd prefer to avoid.
Any thoughts for best approach?
The text was updated successfully, but these errors were encountered: