mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 04:00:06 -03:30
Add sosreport support to Tower
This commit is contained in:
9
setup.py
9
setup.py
@@ -22,10 +22,18 @@ munin_plugin_conf_path = "/etc/munin/plugin-conf.d"
|
||||
if os.path.exists("/etc/debian_version"):
|
||||
sysinit = "/etc/init.d"
|
||||
webconfig = "/etc/apache2/conf.d"
|
||||
sosconfig = "/usr/share/sosreport/sos/plugins"
|
||||
sosfile = "tower-sos3.py
|
||||
shutil.copy("config/awx-munin-ubuntu.conf", "config/awx-munin.conf")
|
||||
else:
|
||||
sysinit = "/etc/rc.d/init.d"
|
||||
webconfig = "/etc/httpd/conf.d"
|
||||
if os.path.exists("/usr/lib/python2.7/site-packages"):
|
||||
sosconfig = "/usr/lib/python2.7/site-packages/sos/plugins"
|
||||
sosfile = "tower-sos3.py
|
||||
else:
|
||||
sosconfig = "/usr/lib/python2.6/site-packages/sos/plugins"
|
||||
sosfile = "tower-sos2.py"
|
||||
shutil.copy("config/awx-munin-el.conf", "config/awx-munin.conf")
|
||||
|
||||
#####################################################################
|
||||
@@ -214,6 +222,7 @@ setup(
|
||||
"tools/munin_monitors/taskmanager_alive"]),
|
||||
("%s" % munin_plugin_conf_path, ["config/awx_munin_tower_jobs"]),
|
||||
("%s" % sysinit, ["tools/scripts/ansible-tower"]),
|
||||
("%s" % sosconfig, ["tools/sosreport/%s" % sosfile]),
|
||||
]
|
||||
),
|
||||
options = {
|
||||
|
||||
Reference in New Issue
Block a user