You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by se...@apache.org on 2015/03/10 09:42:36 UTC
libcloud git commit: LIBCLOUD-641: The Aurora Compute libcloud driver
Repository: libcloud
Updated Branches:
refs/heads/trunk 90b7111b4 -> 349cdc84c
LIBCLOUD-641: The Aurora Compute libcloud driver
Aurora Compute is the CloudStack based public cloud offering from
PCextreme B.V., a Dutch hosting provider.
Signed-off-by: Sebastien Goasguen <ru...@gmail.com>
This closes #477
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/349cdc84
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/349cdc84
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/349cdc84
Branch: refs/heads/trunk
Commit: 349cdc84c319bf524ae2ca3b7bfbcef35f0413a7
Parents: 90b7111
Author: Wido den Hollander <wi...@widodh.nl>
Authored: Thu Mar 5 22:39:34 2015 +0100
Committer: Sebastien Goasguen <ru...@gmail.com>
Committed: Tue Mar 10 09:42:08 2015 +0100
----------------------------------------------------------------------
CHANGES.rst | 4 ++++
libcloud/compute/drivers/auroracompute.py | 28 ++++++++++++++++++++++++
libcloud/compute/providers.py | 2 ++
libcloud/compute/types.py | 2 ++
libcloud/test/compute/test_auroracompute.py | 26 ++++++++++++++++++++++
5 files changed, 62 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/349cdc84/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 2bd177c..b520469 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -74,6 +74,10 @@ Compute
(GITHUB-483)
[Atsushi Sasaki]
+- Add AURORA compute driver
+ (LIBCLOUD-641, GITHUB-477)
+ [Wido den Hollander]
+
DNS
~~~
http://git-wip-us.apache.org/repos/asf/libcloud/blob/349cdc84/libcloud/compute/drivers/auroracompute.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/auroracompute.py b/libcloud/compute/drivers/auroracompute.py
new file mode 100644
index 0000000..e813dbb
--- /dev/null
+++ b/libcloud/compute/drivers/auroracompute.py
@@ -0,0 +1,28 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from libcloud.compute.providers import Provider
+from libcloud.compute.drivers.cloudstack import CloudStackNodeDriver
+
+__all__ = [
+ 'AuroraComputeNodeDriver'
+]
+
+class AuroraComputeNodeDriver(CloudStackNodeDriver):
+ type = Provider.AURORACOMPUTE
+ name = 'PCextreme AuroraCompute'
+ website = 'https://www.pcextreme.nl/aurora/'
+ host = 'cloud.pcextreme.nl'
+ path = '/api'
http://git-wip-us.apache.org/repos/asf/libcloud/blob/349cdc84/libcloud/compute/providers.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/providers.py b/libcloud/compute/providers.py
index bdceafc..a064919 100644
--- a/libcloud/compute/providers.py
+++ b/libcloud/compute/providers.py
@@ -153,6 +153,8 @@ DRIVERS = {
('libcloud.compute.drivers.profitbricks', 'ProfitBricksNodeDriver'),
Provider.VULTR:
('libcloud.compute.drivers.vultr', 'VultrNodeDriver'),
+ Provider.AURORACOMPUTE:
+ ('libcloud.compute.drivers.auroracompute', 'AuroraComputeNodeDriver'),
# Deprecated
Provider.CLOUDSIGMA_US:
http://git-wip-us.apache.org/repos/asf/libcloud/blob/349cdc84/libcloud/compute/types.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/types.py b/libcloud/compute/types.py
index c21a4d1..0aeaf4b 100644
--- a/libcloud/compute/types.py
+++ b/libcloud/compute/types.py
@@ -78,6 +78,7 @@ class Provider(object):
:cvar OUTSCALE_INC: Outscale INC driver.
:cvar PROFIT_BRICKS: ProfitBricks driver.
:cvar VULTR: vultr driver.
+ :cvar AURORACOMPUTE: Aurora Compute driver.
"""
DUMMY = 'dummy'
EC2 = 'ec2_us_east'
@@ -126,6 +127,7 @@ class Provider(object):
VSPHERE = 'vsphere'
PROFIT_BRICKS = 'profitbricks'
VULTR = 'vultr'
+ AURORACOMPUTE = 'Aurora Compute'
# OpenStack based providers
HPCLOUD = 'hpcloud'
http://git-wip-us.apache.org/repos/asf/libcloud/blob/349cdc84/libcloud/test/compute/test_auroracompute.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_auroracompute.py b/libcloud/test/compute/test_auroracompute.py
new file mode 100644
index 0000000..2501665
--- /dev/null
+++ b/libcloud/test/compute/test_auroracompute.py
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import sys
+
+from libcloud.compute.drivers.exoscale import AuroraComputeNodeDriver
+from libcloud.test.compute.test_cloudstack import CloudStackCommonTestCase
+from libcloud.test import unittest
+
+class AuroraComputeNodeDriverTestCase(CloudStackCommonTestCase, unittest.TestCase):
+ driver_klass = AuroraComputeNodeDriver
+
+if __name__ == '__main__':
+ sys.exit(unittest.main())