Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Add KeyName to fab parameters #226

Merged
merged 1 commit into from
Sep 13, 2016
Merged

Conversation

yufangzhang
Copy link
Contributor

This commit adds keyname as a fab parameter.
with it, you can set it to your keypair in AWS
KeyName defined in config file will not be used.

@yufangzhang yufangzhang changed the title Add KeyName to fab parameters [WIP]Add KeyName to fab parameters Aug 25, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling e6535b2 on add_keyname_to_fab_parameters into * on master*.

@yufangzhang yufangzhang changed the title [WIP]Add KeyName to fab parameters Add KeyName to fab parameters Aug 30, 2016
# if _validate_fabric_env() is called by cfn_create, then check keyname.
# otherwise not.
if called_by_cfn_create:
if env.keyname is None:
Copy link
Contributor

@ltsampros ltsampros Aug 30, 2016

Choose a reason for hiding this comment

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

Could you please put them on the same line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahhh sure

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 71f01eb on add_keyname_to_fab_parameters into * on master*.

# otherwise not.
if called_by_cfn_create and env.keyname is None:
sys.exit("\n[ERROR] Please specify a keyname, e.g 'keyname:keyops'")

Copy link
Contributor

Choose a reason for hiding this comment

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

I can appreciate why it's a good idea to mandate it, but, this is a breaking change. A reasonable compromise might be to accept that some stacks have it defined in their config, and warn rather than error. Also, deleting the keyname from the template-deploy example?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do you mean it's better to accept the param in both config file and command line, or just warn if it's defined in config rather than fab params?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe accept it if its in the config, but warning that it's deprecated/not-advised. whatever
Only a suggestion to think about though, it's not a requirement. If you're sure this is the best way then fire on

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 251e6df on add_keyname_to_fab_parameters into * on master*.

- This commit adds keyname as a fab parameter.
  with it, you can set it to your keypair in AWS
  KeyName defined in config file will overided by fab command.
- keyname is mandatory fab parameter in cfn_create,
  but not in others
- README and unittests updated
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling fd0e59c on add_keyname_to_fab_parameters into * on master*.

@ltsampros ltsampros merged commit 935f726 into master Sep 13, 2016
@sevenmachines sevenmachines deleted the add_keyname_to_fab_parameters branch September 19, 2016 08:26
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.

None yet

4 participants