Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Begin separation of creation and provisioning #741

Closed
wants to merge 1 commit into from

Conversation

nathanleclaire
Copy link
Contributor

cc @ehazlett @sthulb

Signed-off-by: Nathan LeClaire nathan.leclaire@gmail.com

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
@nathanleclaire
Copy link
Contributor Author

Oh yes, and also I moved SaveConfig to be before provisioning, since provisioning is often the step where things go awry.

Next step is to remove IP polling and waiting for instance startup out of drivers' Create method.


func (h *Host) SetInstanceHostnameUbuntu() error {
log.Debugf("Setting hostname for: %s", h.Name)
cmd, err := h.Driver.GetSSHCommand(fmt.Sprintf(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could merge the two host name functions and supply a path to the hostname file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered this but they are slightly different in other ways (mostly the /etc/hosts line) - is it okay to use the command from SetInstanceHostnameUbuntu in both styles?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The B2D host won't mind.

@sthulb
Copy link
Contributor

sthulb commented Mar 7, 2015

I agree we shouldn't do SSH commands from inside the driver.

Can you update the driver doc to mention SSH connection info must be exported?

I guess things like hostnames will be removed with cloudinit

@ehazlett
Copy link
Contributor

ehazlett commented Mar 9, 2015

I like a lot of these ideas just not in the patch bomb format. I've implemented some of the SSH operations in #756. I think we can take bits of this and open smaller PRs against the issues listed in the repo (i.e. #744, #699) - especially the SaveConfig stuff - that will help tremendously.

Thanks!

@ehazlett ehazlett closed this Mar 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants