GitHub user Itxaka opened a pull request:

    https://github.com/apache/libcloud/pull/321

    Ssh key management for softlayer

    This pull requests add ssh key management for the SoftLayer driver.
    
    Add methods for:
    list_key_pairs()
    get_key_pair()
    import_key_pair_from_string()
    delete_key_pair()
    create_key_pair()
    
    It also adds a new property to create node "ex_keyname" which is the name 
of the key to be associated to the new node.
    
    Added tests for all methods and modified the test_create_node() test to use 
a sshkey as well.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Itxaka/libcloud 
ssh_key_management_for_softlayer

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/321.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #321
    
----
commit 49acc51e1a0603b0d0735ff289daaabe16d300b8
Author: Itxaka Serrano <itxakaserr...@gmail.com>
Date:   2014-06-21T04:35:33Z

    First round of changes: Add Keypar object as in other drivers,  add ssh_key 
as a feature for the driver, associate the key to the node on create_node if a 
key name is used, added list_keypairs method to get all keys on the account, 
add key_name_to_id method to use the id on creating the node by providing the 
label

commit 60b0a71d2223c6fc552468504a96262accf7735f
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T12:59:59Z

    implement get_keypar and catch and raise Libclouderror if no keys are 
returned

commit ff688a3674f8dafdae337e9365dbd2a541235433
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T13:08:18Z

    raise KeyPairDoesNotExistError instead of Libcloud generic eror

commit 77a663f2ae37dedf2dfa70defe928e6bb9da35f5
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T14:10:23Z

    added working create_key_pair and import_key_pair_from_string

commit c6ae1dc7d37504eb4962f025d91278f997974b1f
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T14:27:02Z

    add delete_key_pair method

commit b403777a561cf9ad9310a7534f607a4bd9c27578
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T14:30:30Z

    check if _key_name_to_id returns and empty key and raise 
KeyPairDoesNotExistError if it does

commit cd2a51178b28afe8aab1c408e8a1bee2c5230c67
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T14:38:48Z

    make _key_name_to_id return the id instead of the whole key, make 
get_key_pair get just one key instead of getting all of them and then check the 
results

commit a2db2d671e6927eea124f55c4990718bb0994e4c
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T14:39:44Z

    wrap the key_id on node cration around [] as we need to pass a list of 
keys, not just one

commit c2446010ebdacaae37a1bba68efa9ad140fe88f6
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T14:47:37Z

    move the import to the proper place, remove Crypto import, add pycrypto to 
requirements

commit 20b02397fb1d83e0cb867772c1b345b446afe200
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T15:51:55Z

    use Importerror to determine if we can use create_key_pair or not

commit 66a2e0f195032e4e39f98bff71d6ee61a2755e8d
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T17:01:41Z

    add tests for the new methods, all passing

commit 605893bff3bfe120878a826842a590760d57d8ca
Author: Itxaka Serrano <itxakaserr...@gmail.com>
Date:   2014-06-21T04:35:33Z

    Add ssh key management to SoftLayer driver. Adds methods for 
add/remove/get_one/get_all/import_from_string. Adds tests for all new methods.

commit d1954f51c1e3aed3f6d7d1920ede16b3c2a1ec84
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T17:12:03Z

    Merge branch 'ssh_key_management_for_softlayer' of 
https://github.com/Itxaka/libcloud into ssh_key_management_for_softlayer

commit fb6d57493b4c60d6b2fb8b2aee05dcbd421391bb
Author: Itxaka <itxaka.serr...@virdata.com>
Date:   2014-06-22T17:18:52Z

    Use the propers arg name

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to