nodes discovering
diff --git a/nodes/__init__.py b/nodes/__init__.py
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/nodes/__init__.py
@@ -0,0 +1 @@
+
diff --git a/nodes/ceph.py b/nodes/ceph.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/nodes/ceph.py
diff --git a/nodes/fuel.py b/nodes/fuel.py
new file mode 100644
index 0000000..20390aa
--- /dev/null
+++ b/nodes/fuel.py
@@ -0,0 +1,9 @@
+import fuel_rest_api
+
+
+def discover_fuel_nodes(root_url, credentials):
+ """Discover Fuel nodes"""
+ connection = fuel_rest_api.KeystoneAuth(root_url, credentials)
+ fi = fuel_rest_api.FuelInfo(connection)
+
+ return fi.nodes
\ No newline at end of file
diff --git a/nodes/openstack.py b/nodes/openstack.py
new file mode 100644
index 0000000..8b425cb
--- /dev/null
+++ b/nodes/openstack.py
@@ -0,0 +1,11 @@
+from novaclient.v1_1 import client as novacl
+
+
+def discover_openstack_nodes(conn_details):
+ """Discover openstack nodes
+ :param connection_details - dict with openstack connection details -
+ auth_url, api_key (password), username
+ """
+ client = novacl.Client(**conn_details)
+ servers = client.servers.list(search_opts={"all_tenant": True})
+ return servers