add netdata
This commit is contained in:
@@ -64,4 +64,4 @@ script:
|
|||||||
- sudo bash -c 'tar -I pigz -cf wordops.tar.gz /var/log/wo'
|
- sudo bash -c 'tar -I pigz -cf wordops.tar.gz /var/log/wo'
|
||||||
- sudo curl --progress-bar --upload-file "wordops.tar.gz" https://transfer.vtbox.net/$(basename wordops.tar.gz) && echo "" || sudo echo "transfer.sh is down"
|
- sudo curl --progress-bar --upload-file "wordops.tar.gz" https://transfer.vtbox.net/$(basename wordops.tar.gz) && echo "" || sudo echo "transfer.sh is down"
|
||||||
- sudo tree -L 2 /etc/nginx
|
- sudo tree -L 2 /etc/nginx
|
||||||
- sudo tree -L 2 /var/www/22222
|
- sudo tree -L 4 /var/www/22222
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- Previous acme.sh certs migration
|
- Previous acme.sh certs migration
|
||||||
- "wo maintenance" command to perform server package update & cleanup
|
- "wo maintenance" command to perform server package update & cleanup
|
||||||
- Support for Netdata on backend : https://server.hostname:22222/netdata/
|
- Support for Netdata on backend : https://server.hostname:22222/netdata/
|
||||||
|
- Stack : composer and netdata
|
||||||
|
|
||||||
#### Changed
|
#### Changed
|
||||||
|
|
||||||
@@ -51,6 +52,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- EasyEngine database sync during migration
|
- EasyEngine database sync during migration
|
||||||
- command "wo info"
|
- command "wo info"
|
||||||
- phpmyadmin install with composer
|
- phpmyadmin install with composer
|
||||||
|
- command "wo clean --memcached"
|
||||||
|
|
||||||
### v3.9.4 - 2019-03-15
|
### v3.9.4 - 2019-03-15
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,8 @@ class WOStackController(CementBaseController):
|
|||||||
(['--composer'],
|
(['--composer'],
|
||||||
dict(help='Install Composer stack', action='store_true')),
|
dict(help='Install Composer stack', action='store_true')),
|
||||||
(['--netdata'],
|
(['--netdata'],
|
||||||
dict(help='Install Netdata monitoring suite', action='store_true')),
|
dict(help='Install Netdata monitoring suite',
|
||||||
|
action='store_true')),
|
||||||
(['--adminer'],
|
(['--adminer'],
|
||||||
dict(help='Install Adminer stack', action='store_true')),
|
dict(help='Install Adminer stack', action='store_true')),
|
||||||
(['--utils'],
|
(['--utils'],
|
||||||
@@ -1067,6 +1068,17 @@ class WOStackController(CementBaseController):
|
|||||||
WOVariables.wo_php_user,
|
WOVariables.wo_php_user,
|
||||||
recursive=True)
|
recursive=True)
|
||||||
|
|
||||||
|
if any('/tmp/netdata.tar.gz' == x[1]
|
||||||
|
for x in packages):
|
||||||
|
if not os.path.exists('/etc/netdata'):
|
||||||
|
Log.debug(self, "Extracting netdata.tar.gz to location"
|
||||||
|
"/usr/src/netdata.git/")
|
||||||
|
WOExtract.extract(self, '/tmp/netdata.tar.gz', '/tmp/')
|
||||||
|
WOShellExec.cmd_exec(self, "/tmp/netdata-v1.13.0/"
|
||||||
|
"netdata-installer.sh "
|
||||||
|
"--stable-channel "
|
||||||
|
"--dont-wait")
|
||||||
|
|
||||||
if any('/tmp/webgrind.tar.gz' == x[1]
|
if any('/tmp/webgrind.tar.gz' == x[1]
|
||||||
for x in packages):
|
for x in packages):
|
||||||
Log.debug(self, "Extracting file webgrind.tar.gz to "
|
Log.debug(self, "Extracting file webgrind.tar.gz to "
|
||||||
@@ -1333,13 +1345,24 @@ class WOStackController(CementBaseController):
|
|||||||
# ADMINER
|
# ADMINER
|
||||||
if self.app.pargs.adminer:
|
if self.app.pargs.adminer:
|
||||||
Log.debug(self, "Setting packages variable for Adminer ")
|
Log.debug(self, "Setting packages variable for Adminer ")
|
||||||
packages = packages + [["https://www.adminer.org/static/download/"
|
packages = packages + [["https://www.adminer.org/static/"
|
||||||
"{0}/adminer-{0}.php"
|
"download/{0}/adminer-{0}.php"
|
||||||
"".format(WOVariables.wo_adminer),
|
"".format(WOVariables.wo_adminer),
|
||||||
"{0}22222/"
|
"{0}22222/"
|
||||||
"htdocs/db/adminer/index.php"
|
"htdocs/db/adminer/index.php"
|
||||||
.format(WOVariables.wo_webroot),
|
.format(WOVariables.wo_webroot),
|
||||||
"Adminer"]]
|
"Adminer"]]
|
||||||
|
# Netdata
|
||||||
|
if self.app.pargs.netdata:
|
||||||
|
Log.debug(self, "Setting packages variable for Netdata")
|
||||||
|
if not os.path.exists('/etc/netdata'):
|
||||||
|
packages = packages + [['https://github.com/'
|
||||||
|
'netdata/netdata/releases/'
|
||||||
|
'download/v1.13.0/'
|
||||||
|
'netdata-v1.13.0.tar.gz',
|
||||||
|
'/tmp/netdata.tar.gz',
|
||||||
|
'netdata']]
|
||||||
|
|
||||||
# UTILS
|
# UTILS
|
||||||
if self.app.pargs.utils:
|
if self.app.pargs.utils:
|
||||||
Log.debug(self, "Setting packages variable for utils")
|
Log.debug(self, "Setting packages variable for utils")
|
||||||
@@ -1453,6 +1476,7 @@ class WOStackController(CementBaseController):
|
|||||||
(not self.app.pargs.php73) and (not self.app.pargs.mysql) and
|
(not self.app.pargs.php73) and (not self.app.pargs.mysql) and
|
||||||
(not self.app.pargs.wpcli) and (not self.app.pargs.phpmyadmin) and
|
(not self.app.pargs.wpcli) and (not self.app.pargs.phpmyadmin) and
|
||||||
(not self.app.pargs.adminer) and (not self.app.pargs.utils) and
|
(not self.app.pargs.adminer) and (not self.app.pargs.utils) and
|
||||||
|
(not self.app.pargs.composer) and (not self.app.pargs.netdata)
|
||||||
(not self.app.pargs.all) and (not self.app.pargs.redis) and
|
(not self.app.pargs.all) and (not self.app.pargs.redis) and
|
||||||
(not self.app.pargs.phpredisadmin)):
|
(not self.app.pargs.phpredisadmin)):
|
||||||
self.app.pargs.web = True
|
self.app.pargs.web = True
|
||||||
@@ -1589,6 +1613,7 @@ class WOStackController(CementBaseController):
|
|||||||
(not self.app.pargs.php73) and (not self.app.pargs.mysql) and
|
(not self.app.pargs.php73) and (not self.app.pargs.mysql) and
|
||||||
(not self.app.pargs.wpcli) and (not self.app.pargs.phpmyadmin) and
|
(not self.app.pargs.wpcli) and (not self.app.pargs.phpmyadmin) and
|
||||||
(not self.app.pargs.adminer) and (not self.app.pargs.utils) and
|
(not self.app.pargs.adminer) and (not self.app.pargs.utils) and
|
||||||
|
(not self.app.pargs.composer) and (not self.app.pargs.netdata)
|
||||||
(not self.app.pargs.all) and (not self.app.pargs.redis) and
|
(not self.app.pargs.all) and (not self.app.pargs.redis) and
|
||||||
(not self.app.pargs.phpredisadmin)):
|
(not self.app.pargs.phpredisadmin)):
|
||||||
self.app.pargs.web = True
|
self.app.pargs.web = True
|
||||||
|
|||||||
Reference in New Issue
Block a user