Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A fix for no method ssh_identity_file with in Irfonfan::DSL::EC2 #349

Closed
wants to merge 3 commits into from

Conversation

rottmanj
Copy link
Contributor

Refs #347

I didn't add any tests as there were never any to begin with for the DSL.

@westbywest
Copy link

This appears to resolve the problem described in #347 for bootstrap, but kick and ssh still are not able to connect to EC2 instance without adding command line option -i knife/credentials/realm-cluster.pem.

Indeed, I commented out the ssh_identity_file method after running bootstrap on an instance, and didn't receive the error "no method ssh_identity_file" when trying knife cluster kick, suggesting that method was not even executed.

@westbywest
Copy link

Following up, it looks like identity_file and ssh_user are not getting included into the session by configure_session method in Chef::Knife::ClusterSsh. The commit below demonstrates a crude hack to simply insert identity_file and ssh_user of the first computer in the target list. This lets "knife cluster ssh", "knife cluster kick", etc work cluster-wide w/o having to pass -x and -i options, but it will not work realm-wide.
https://github.com/splicemachine/ironfan/commit/554a077d5de2b368671c2918c9827ce0b2f9d171

@rottmanj rottmanj closed this Aug 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants