First files to the project
This commit is contained in:
commit
cda8eb1232
26 changed files with 2657 additions and 0 deletions
14
tasks/system/ping.py
Normal file
14
tasks/system/ping.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from modules.pastafari2.libraries.task import Task
|
||||
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='leviathan', task_id=0, data={}):
|
||||
|
||||
super().__init__(server, conn, remote_user, remote_password, private_key, password_key, remote_path, task_id, data)
|
||||
|
||||
self.files=[['modules/pastafari2/scripts/system/alive.sh', 0o755]]
|
||||
|
||||
self.commands_to_execute=[]
|
||||
|
||||
self.commands_to_execute.append(['modules/pastafari2/scripts/system/alive.sh', ''])
|
||||
Loading…
Add table
Add a link
Reference in a new issue