Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Set ssh_home as default pwd for SSH. #665

Merged
merged 1 commit into from
Jun 13, 2016
Merged

Conversation

thom8
Copy link
Collaborator

@thom8 thom8 commented May 25, 2016

cd to drupal_core_path when SSHing to the VM. #661

*note: this will be ignored if not set and fail gracefully if the path doesn't exist.

@@ -271,3 +271,4 @@ selenium_version: 2.46.0
# Other configuration.
dashboard_install_dir: /var/www/dashboard
known_hosts_path: ~/.ssh/known_hosts
ssh_home: "{{ drupal_core_path }}"
Copy link
Contributor

@dixhuit dixhuit May 25, 2016

Choose a reason for hiding this comment

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

Might the word "home" be confused with the path /home/? Perhaps this should be ssh_dir or ssh_path or ssh_dest?

EDIT: Unless this just a convention that I'm unaware of (likely!).

Copy link
Collaborator Author

@thom8 thom8 May 26, 2016

Choose a reason for hiding this comment

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

@danbohea - haha - I struggled with the naming of this too! + it's not a convention.

Couldn't find a standard name so since by default SSH connections drop you in the users home dir, this configures the SSH home dir.

@opdavies
Copy link
Contributor

+1 for this.

I just tested it out, and it works great.

@geerlingguy
Copy link
Owner

geerlingguy commented May 31, 2016

I like it too. Need to poke and prod it a tiny bit more, but one thing—I think it would be best to default to the normal .ssh dir (~, which is /home/vagrant), and allow override. For a guy like me, it would throw me off to be used to dropping into my home folder, and I'd rather not change that particular default—especially since there may be many synced drupal docroots (as is the case with many of my VMs).

@thom8
Copy link
Collaborator Author

thom8 commented May 31, 2016

@geerlingguy how about we just don't set a default and comment it out in example.config.yml?

@thom8 thom8 force-pushed the ssh_home branch 3 times, most recently from aa45464 to 5eecf66 Compare May 31, 2016 21:44
@@ -271,3 +271,4 @@ selenium_version: 2.46.0
# Other configuration.
dashboard_install_dir: /var/www/dashboard
known_hosts_path: ~/.ssh/known_hosts
#ssh_home: "{{ drupal_core_path }}"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Commented out var in example.config.yml

Copy link
Owner

Choose a reason for hiding this comment

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

That works for me

@geerlingguy
Copy link
Owner

D'oh, just noticed this PR has a conflict. Would you mind rebasing?

@geerlingguy geerlingguy added this to the 3.2.0 milestone Jun 13, 2016
@thom8
Copy link
Collaborator Author

thom8 commented Jun 13, 2016

@geerlingguy all done :)

@geerlingguy geerlingguy modified the milestones: 3.1.1, 3.2.0 Jun 13, 2016
@geerlingguy
Copy link
Owner

Changed milestone. Small/non-breaking enough that it can go into a patch release instead of full version bump.

@geerlingguy geerlingguy merged commit 7344434 into geerlingguy:master Jun 13, 2016
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.

4 participants