1 from neco.execution.resource import ResourceManager, clsinit
2 from neco.execution.attribute import Attribute, Flags
5 class LinuxNode(ResourceManager):
9 def _register_attributes(cls):
10 hostname = Attribute("hostname", "Hostname of the machine")
11 username = Attribute("username", "Local account username",
12 flags = Flags.Credential)
13 password = Attribute("pasword", "Local account password",
14 flags = Flags.Credential)
16 cls._register_attribute(hostname)
17 cls._register_attribute(username)
18 cls._register_attribute(password)
20 def __init__(self, ec, guid):
21 super(LinuxNode, self).__init__(ec, guid)
23 self._logger = logging.getLogger("neco.linux.Node.%d" % guid)
24 #elf._logger.setLevel(neco.LOGLEVEL)
29 def discover(self, filters):
32 def provision(self, filters):
41 def deploy(self, group = None):
47 def _validate_connection(self, guid):