Пример #1
0
    def run(self, cmd, timeout=None, comments=True):
        if self.remote_ip == None:
            # (ret, output) = commands.getstatusoutput(cmd, timeout)
            ret, output = LocalSH.local_run(cmd, timeout, comments)
        else:
            ret, output = RemoteSH.remote_run(cmd, self.remote_ip, self.username, self.password, timeout)
#             ret, output = RemoteSH.run_pexpect(cmd, self.remote_ip, self.username, self.password, timeout)
        return ret, output
Пример #2
0
    def run(self, cmd, timeout=None, comments=True):
        if self.remote_ip == None:
            # (ret, output) = commands.getstatusoutput(cmd, timeout)
            ret, output = LocalSH.local_run(cmd, timeout, comments)
        else:
            ret, output = RemoteSH.remote_run(cmd, self.remote_ip, self.username, self.password, timeout)
#             ret, output = RemoteSH.run_pexpect(cmd, self.remote_ip, self.username, self.password, timeout)
        return ret, output
Пример #3
0
 def __import_manifest(self, sam_server):
     cmd = "headpin -u admin -p admin provider import_manifest --org=ACME_Corporation --name='Red Hat' --file=/root/sam_install_manifest.zip"
     RemoteSH.remote_run(cmd, sam_server, "root", "xxoo2014", 1800)
Пример #4
0
 def __deploy_sam(self, sam_server):
     cmd = "katello-configure --deployment=sam --user-pass=admin"
     RemoteSH.remote_run(cmd, sam_server, "root", "xxoo2014", 1800)
Пример #5
0
 def run(self, cmd, timeout=None, comments=True):
     if self.remote_ip == None:
         ret, output = LocalSH.local_run(cmd, timeout, comments)
     else:
         ret, output = RemoteSH.remote_run(cmd, self.remote_ip, self.username, self.password, timeout, comments)
     return ret, output
Пример #6
0
 def __import_manifest(self, sam_server):
     cmd = "headpin -u admin -p admin provider import_manifest --org=ACME_Corporation --name='Red Hat' --file=/root/sam_install_manifest.zip"
     RemoteSH.remote_run(cmd, sam_server, "root", "red2015", 1800)
Пример #7
0
 def __deploy_sam(self, sam_server):
     cmd = "katello-configure --deployment=sam --user-pass=admin"
     RemoteSH.remote_run(cmd, sam_server, "root", "red2015", 1800)