예제 #1
0
from protozoo.configtask import ConfigAction

CurlAction = ConfigAction()
CurlAction.codename = 'CUrl'
CurlAction.name = 'A simple command for get urls'
CurlAction.description = 'A command used in *nix OS used for access to http servers'
CurlAction.script_path = 'webservers/clients/curl.sh'
CurlAction.script_interpreter = 'sh'
CurlAction.parameters = ''
CurlAction.extra_files = []
예제 #2
0
#!/usr/bin/python3

from protozoo.configtask import ConfigTask, ConfigAction

from protozoo.configtasks.prebuildtask import NginxAction, PhpFpmAction, Python3Action, GitAction

PastafariAction=ConfigAction()

PastafariAction.codename='pastafari'
PastafariAction.name='Pastafari'
PastafariAction.description='Install pastafari API in a server'
PastafariAction.script_path='apis/pastafari/install.py'
PastafariAction.script_interpreter='python3'

#You need define secret key and ip --secret_key the_secret_key --ip 192.168.1.1

PastafariAction.parameters='--user pastafari --port 2048'
PastafariAction.extra_files=['apis/pastafari/files/php-fpm/pastafari-fpm.conf', 'apis/pastafari/files/nginx/pastafari-nginx.conf', 'apis/pastafari/files/sudo/supastafari', 'apis/pastafari/files/phango/config.php', 'apis/pastafari/files/phango/composer.json']


ConfigTask.task='pastafari'
ConfigTask.info="Installing pastafari api in servers..."
#, PastafariAction
ConfigTask.action=[Python3Action, NginxAction, PhpFpmAction, GitAction, PastafariAction]

예제 #3
0
#!/usr/bin/python3

from protozoo.configclass import ConfigClass
from settings import config
from protozoo.configtask import ConfigTask, ConfigAction
from protozoo.configtasks.prebuildtask import GitAction

VirusAction = ConfigAction()

VirusAction.codename = 'virus'
VirusAction.name = 'A set of scripts for execute remote commands via ssh'
VirusAction.description = 'Install Virus scripts in a server'
VirusAction.script_path = 'apis/virus/install.py'
VirusAction.script_interpreter = 'python3'

#You need define secret key and ip --secret_key the_secret_key --ip 192.168.1.1

VirusAction.parameters = '--user ' + ConfigClass.remote_user
VirusAction.extra_files = ['apis/virus/config.py']

ConfigTask.task = 'Virus API'
ConfigTask.info = "Installing Virus api in servers..."
#, VirusAction
ConfigTask.action = [GitAction, VirusAction]
예제 #4
0
#!/usr/bin/python3

from protozoo.configtask import ConfigTask, ConfigAction
from protozoo.configtasks.psutil import PyPsutilAction

MonitInfoAction=ConfigAction()
MonitInfoAction.codename='MonitInfo'
MonitInfoAction.name='MonitInfo'
MonitInfoAction.description='An script using psutil python module for send info to a server'
MonitInfoAction.script_path='monit/monit.py'
MonitInfoAction.script_interpreter='python3'
MonitInfoAction.parameters=''
MonitInfoAction.extra_files=['monit/files/crontab/get_info', 'monit/files/get_info.py']

ConfigTask.task='psutilinfo'
ConfigTask.info="A script for send info to a webserver api using psutil python3 module"

ConfigTask.action=[PyPsutilAction, MonitInfoAction]

예제 #5
0
#!/usr/bin/python3

from protozoo.configtask import ConfigTask, ConfigAction

#from protozoo.configtasks.prebuildtask import NginxAction, PhpFpmAction, Python3Action, GitAction

UpdateAction = ConfigAction()

UpdateAction.codename = 'pastafari_update'
UpdateAction.name = 'Pastafari Update'
UpdateAction.description = 'Update pastafari API in a server'
UpdateAction.script_path = 'apis/pastafari/update.py'
UpdateAction.script_interpreter = 'python3'

UpdateAction.parameters = '--user pastafari'

ConfigTask.task = 'pastafari'
ConfigTask.info = "Updating pastafari api in servers..."
#, UpdateAction
ConfigTask.action = [UpdateAction]
예제 #6
0
from protozoo.configtask import ConfigAction

Python3Action = ConfigAction()
Python3Action.codename = 'python3'
Python3Action.name = 'Python Language'
Python3Action.description = 'Script language very powerful, very used for spanel for internal tasks'
Python3Action.script_path = 'languages/install_python.sh'
Python3Action.script_interpreter = 'sh'
Python3Action.parameters = ''
Python3Action.extra_files = []

ApacheAction = ConfigAction()

ApacheAction.codename = 'apache'
ApacheAction.name = 'Apache Webserver'
ApacheAction.description = 'Script for install the most famous webserver in the world for debian jessie'
ApacheAction.script_path = 'libraries/install_apache.py'
ApacheAction.script_interpreter = 'python3'
ApacheAction.parameters = ''
ApacheAction.extra_files = ['files/spanel.conf']

MariaDBAction = ConfigAction()

MariaDBAction.codename = 'mariadb'
MariaDBAction.name = 'MariaDB Database Server'
MariaDBAction.description = 'Script for install the most famous db server in debian jessie'
MariaDBAction.script_path = 'db/mariadb/mariadb.py'
MariaDBAction.script_interpreter = 'python3'
MariaDBAction.parameters = ''
MariaDBAction.extra_files = []
예제 #7
0
from protozoo.configtask import ConfigAction

BottlePyAction=ConfigAction()
BottlePyAction.codename='bottlepy'
BottlePyAction.name='Bottle web framework'
BottlePyAction.description='Bottle is a microframework for create web services'
BottlePyAction.script_path='webservers/python3/bottlepy.py'
BottlePyAction.script_interpreter='python3'
BottlePyAction.parameters=''
BottlePyAction.extra_files=[]

예제 #8
0
from protozoo.configtask import ConfigAction

uWsgiAction = ConfigAction()
uWsgiAction.codename = 'uwsgi'
uWsgiAction.name = 'uWsgi daemon for serve python apps and others'
uWsgiAction.description = 'Daemon WSGI for server python apps and others'
uWsgiAction.script_path = 'webservers/python3/uwsgi.py'
uWsgiAction.script_interpreter = 'python3'
uWsgiAction.parameters = ''
uWsgiAction.extra_files = []
예제 #9
0
#!/usr/bin/python3

from protozoo.configtask import ConfigTask, ConfigAction

PyPsutilAction = ConfigAction()
PyPsutilAction.codename = 'psutil'
PyPsutilAction.name = 'PyPsutil'
PyPsutilAction.description = 'Installing psutil module for python3'
PyPsutilAction.script_path = 'monit/psutil.py'
PyPsutilAction.script_interpreter = 'python3'
PyPsutilAction.parameters = ''
PyPsutilAction.extra_files = []
예제 #10
0
#!/usr/bin/python3

from protozoo.configtask import ConfigTask, ConfigAction
from protozoo.configtasks.prebuildtask import Python3Action
from protozoo.configtasks.curl import CurlAction

AliveAPIAction=ConfigAction()
AliveAPIAction.codename='aliveapi'
AliveAPIAction.name='AliveAPI'
AliveAPIAction.description='An script for say that a server is alive'
AliveAPIAction.script_path='monit/alive.py'
AliveAPIAction.script_interpreter='python3'
AliveAPIAction.parameters=''
AliveAPIAction.extra_files=['monit/files/crontab/alive', 'monit/files/alive.sh']

ConfigTask.task='alive'
ConfigTask.info="A script that say that the server is alive"

ConfigTask.action=[Python3Action, CurlAction, AliveAPIAction]