cloudmesh-cloud.cloudmesh.vbox.Provider
¶
Module Contents¶
Classes¶
-
class
cloudmesh-cloud.cloudmesh.vbox.Provider.
Provider
(cloud=None, config=None)¶ Bases:
object
-
_check_version
(self, r)¶ checks if vargrant version is up to date
- Returns
-
start
(self, name)¶ start a node
- Parameters
name – the unique node name
- Returns
The dict representing the node
-
nodes
(self, verbose=False)¶ list all nodes id
- Returns
an array of dicts representing the nodes
-
boot
(self, **kwargs)¶
-
execute
(self, name, command, cwd=None)¶
-
to_dict
(self, lst, id='name')¶
-
stop
(self, name=None)¶ stops the node with the given name
- Parameters
name –
- Returns
The dict representing the node including updated status
-
_convert_assignment_to_dict
(self, content)¶
-
info
(self, name=None)¶ gets the information of a node with a given name
- Parameters
name –
- Returns
The dict representing the node including updated status
-
suspend
(self, name=None)¶ suspends the node with the given name
- Parameters
name – the name of the node
- Returns
The dict representing the node
-
resume
(self, name=None)¶ resume the named node
- Parameters
name – the name of the node
- Returns
the dict of the node
-
destroy
(self, name=None)¶ Destroys the node :param name: the name of the node :return: the dict of the node
-
delete
(self, name=None)¶
-
vagrantfile
(self, **kwargs)¶
-
_get_specification
(self, cloud=None, name=None, port=None, image=None, **kwargs)¶
-
create
(self, name=None, image=None, size=None, timeout=360, port=80, **kwargs)¶ creates a named node
- Parameters
port –
name – the name of the node
image – the image used
size – the size of the image
timeout – a timeout in seconds that is invoked in case the image does not boot. The default is set to 3 minutes.
kwargs – additional arguments passed along at time of boot
- Returns
-
rename
(self, name=None, destination=None)¶ rename a node
- Parameters
name – the current name
destination – the new name
- Returns
the dict with the new name
-
classmethod
find_image
(cls, keywords)¶ Finds an image on hashicorps web site
- Parameters
keywords – The keywords to narrow down the search
-
classmethod
list_images
(cls)¶
-