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

fix #477 source bashrc and #476 intermittent tectia failures #478

Merged
merged 9 commits into from
Jan 25, 2013
Merged

fix #477 source bashrc and #476 intermittent tectia failures #478

merged 9 commits into from
Jan 25, 2013

Conversation

ahgittin
Copy link
Member

this pull request addresses #476 and #477, by:

  • supporting CLI ssh, adding a new class, and allowing you to specify in your ~/.brooklyn/brooklyn.properties:

    brooklyn.ssh.config.tool.class=brooklyn.util.internal.ssh.cli.SshCliTool
    

and

  • supporting configruable SSH script header, if you specify in your ~/.brooklyn/brooklyn.properties:

    brooklyn.ssh.config.scriptHeader=#!/bin/bash -e\nif [ -f ~/.bashrc ] ; then . ~/.bashrc ; fi
    

ahgittin and others added 9 commits January 24, 2013 16:18
…used in ssh scripts;

also put stronger typing (config keys) around use of ssh flags,
and expose them through entity config (and brooklyn.properties) as well as through properties on the location (or explicit flags in an individual call in the entity)
- Also move SshTool to brooklyn.util.internal.ssh
  (from brooklyn.util.internal)
- Extract super-class for SshjTool test, ready for other SshTool impls
- workaround for Tectia: if connecting to a Tectia server,
  the sshj doesn't work (see hierynomus/sshj#54)
…to fix/477-source-bashrc

Conflicts in renamed/javafied test core/src/test/java/brooklyn/util/internal/ssh/SshjToolIntegrationTest, and
mods to SshjTool to use flags.

Have introduced an SshAbstractTool though still to do is: move common code from Sshj/Cli Tools, and tests that config on entities gets applied to ssh (e.g. headers)
…l. fixes problems where SshCliTool ignores some config keys e.g. scriptHeader.
…mpt to mimic exception when cannot connect. SshCli integration tests passing.
…SS).

test for that, and for defining script header as a config key on the entity. both working.
only thing left is, i'm not sure if ssh confg set in brooklyn.properties gets picked up.

/* more flags TODO */

// warnOnDeprecated(props, "privateKey", "privateKeyData");
Copy link
Member

Choose a reason for hiding this comment

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

Needs tidied asap; will do that in next pull request.

@aledsage
Copy link
Member

Looking good. Lots of minor things to tidy up in a subsequent pull request, but I'm happy to merge this now so it gets built for the customer asap - in the knowledge that I'm going to work on the clean-up next.

aledsage added a commit that referenced this pull request Jan 25, 2013
fix #477 source bashrc and #476 intermittent tectia failures
@aledsage aledsage merged commit 108e58d into brooklyncentral:master Jan 25, 2013
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