def installNginx(self, hostKey): broker = Broker.getBroker(hostKey) broker.installNginx()
def installMysql(self, hostKey): broker = Broker.getBroker(hostKey) broker.installMysql()
def iptables(self, hostKey, port): broker = Broker.getBroker(hostKey) broker.closePort(port)
def portClose(self, hostKey, port): broker = Broker.getBroker(hostKey) broker.closePort(port)
def portOpen(self, hostKey, port): broker = Broker.getBroker(hostKey) broker.openPort(port)
def ipClose(self, hostKey, ip): broker = Broker.getBroker(hostKey) broker.Limit(ip)
def ipOpen(self, hostKey, ip): broker = Broker.getBroker(hostKey) broker.unLimit(ip)
def antivirus(self, hostKey, path): broker = Broker.getBroker(hostKey) return broker.antivirus(path)