You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2015/05/17 17:57:32 UTC

libcloud git commit: Add ex_config_drive argument to the create_node method in the OpenStack driver.

Repository: libcloud
Updated Branches:
  refs/heads/trunk 92c107d45 -> 5e60407cf


Add ex_config_drive argument to the create_node method in the OpenStack driver.

Closes #330

Signed-off-by: Tomaz Muraus <to...@tomaz.me>


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5e60407c
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5e60407c
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5e60407c

Branch: refs/heads/trunk
Commit: 5e60407cfd1c3a92233cb1da39d6a3f5d45306e0
Parents: 92c107d
Author: Ryan Parrish <ry...@stickystyle.net>
Authored: Sat Jun 28 07:51:14 2014 -0400
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Sun May 17 17:54:27 2015 +0200

----------------------------------------------------------------------
 CHANGES.rst                           | 5 +++++
 libcloud/compute/drivers/openstack.py | 8 ++++++++
 2 files changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/5e60407c/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index b8c0df1..89c8987 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -181,6 +181,11 @@ Compute
   (GITHUB-512)
   [Syed Mushtaq Ahmed]
 
+- Allow user to pass ``ex_config_drive`` argument to the ``create_node`` method
+  in the OpenStack driver.
+  (LIBCLOUD-356, GITHUB-330)
+  [Ryan Parrish]
+
 Storage
 ~~~~~~~
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/5e60407c/libcloud/compute/drivers/openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/openstack.py b/libcloud/compute/drivers/openstack.py
index cc96afa..211e8fb 100644
--- a/libcloud/compute/drivers/openstack.py
+++ b/libcloud/compute/drivers/openstack.py
@@ -1195,6 +1195,11 @@ class OpenStack_1_1_NodeDriver(OpenStackNodeDriver):
                                  https://help.ubuntu.com/community/CloudInit
         :type       ex_userdata: ``str``
 
+        :keyword    ex_config_drive: Enable config drive
+                                     see
+                                     http://docs.openstack.org/grizzly/openstack-compute/admin/content/config-drive.html
+        :type       ex_config_drive: ``bool``
+
         :keyword    ex_security_groups: List of security groups to assign to
                                         the node
         :type       ex_security_groups: ``list`` of
@@ -1305,6 +1310,9 @@ class OpenStack_1_1_NodeDriver(OpenStackNodeDriver):
             server_params['user_data'] = base64.b64encode(
                 b(kwargs['ex_userdata'])).decode('ascii')
 
+        if 'ex_config_drive' in kwargs:
+            server_params['config_drive'] = kwargs['ex_config_drive']
+
         if 'ex_disk_config' in kwargs:
             server_params['OS-DCF:diskConfig'] = kwargs['ex_disk_config']