Fixes for support change port and changes for no install monit for default
This commit is contained in:
parent
2ebe22f79e
commit
7c1b903d44
11 changed files with 38 additions and 16 deletions
|
|
@ -3,9 +3,9 @@ from modules.pastafari2.models.pastafari2 import ServerDbTask
|
|||
|
||||
class ServerTask(Task):
|
||||
|
||||
def __init__(self, server, conn, remote_user='root', remote_password='', private_key='./ssh/id_rsa', password_key='', remote_path='pastafari2', task_id=0, data={}):
|
||||
def __init__(self, server, conn, remote_user='root', remote_password='', private_key='./ssh/id_rsa', password_key='', remote_path='pastafari2', task_id=0, data={}, ssh_port=22):
|
||||
|
||||
super().__init__(server, conn, remote_user, remote_password, private_key, password_key, remote_path, task_id, data)
|
||||
super().__init__(server, conn, remote_user, remote_password, private_key, password_key, remote_path, task_id, data, ssh_port)
|
||||
|
||||
#self.files=[['modules/pastafari2/scripts/system/alive.sh', 0o755]]
|
||||
|
||||
|
|
@ -37,6 +37,6 @@ class ServerTask(Task):
|
|||
|
||||
#'subdomain_id': self.data['subdomain_id']
|
||||
|
||||
server.insert({'hostname': self.data['hostname'], 'ip': self.data['ip'], 'group_id': self.data['group_id']})
|
||||
server.insert({'hostname': self.data['hostname'], 'ip': self.data['ip'], 'group_id': self.data['group_id'], 'ssh_port': self.port})
|
||||
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue