mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
Adding munin install and configuration to the playbook and package builds
This commit is contained in:
@@ -41,4 +41,5 @@ WSGISocketPrefix /var/run/wsgi
|
|||||||
</IfVersion>
|
</IfVersion>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
Include conf.d/awx-munin.conf
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|||||||
5
config/awx-munin-el.conf
Normal file
5
config/awx-munin-el.conf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Alias /munin /var/www/html/munin/
|
||||||
|
<Directory /var/www/html/munin/>
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
|
</Directory>
|
||||||
33
config/awx-munin-ubuntu.conf
Normal file
33
config/awx-munin-ubuntu.conf
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
|
||||||
|
Alias /munin /var/cache/munin/www
|
||||||
|
<Directory /var/cache/munin/www>
|
||||||
|
Order allow,deny
|
||||||
|
Allow from all
|
||||||
|
Options FollowSymLinks
|
||||||
|
|
||||||
|
# This file can be used as a .htaccess file, or a part of your apache
|
||||||
|
# config file.
|
||||||
|
#
|
||||||
|
# For the .htaccess file option to work the munin www directory
|
||||||
|
# (/var/cache/munin/www) must have "AllowOverride all" or something
|
||||||
|
# close to that set.
|
||||||
|
#
|
||||||
|
|
||||||
|
# AuthUserFile /etc/munin/munin-htpasswd
|
||||||
|
# AuthName "Munin"
|
||||||
|
# AuthType Basic
|
||||||
|
# require valid-user
|
||||||
|
|
||||||
|
# This next part requires mod_expires to be enabled.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set the default expiration time for files to 5 minutes 10 seconds from
|
||||||
|
# their creation (modification) time. There are probably new files by
|
||||||
|
# that time.
|
||||||
|
#
|
||||||
|
|
||||||
|
<IfModule mod_expires.c>
|
||||||
|
ExpiresActive On
|
||||||
|
ExpiresDefault M310
|
||||||
|
</IfModule>
|
||||||
|
</Directory>
|
||||||
5
setup.py
5
setup.py
@@ -3,7 +3,7 @@
|
|||||||
# Copyright (c) 2014 AnsibleWorks, Inc.
|
# Copyright (c) 2014 AnsibleWorks, Inc.
|
||||||
# All Rights Reserved.
|
# All Rights Reserved.
|
||||||
|
|
||||||
import os, datetime, glob, sys
|
import os, datetime, glob, sys, shutil
|
||||||
from distutils import log
|
from distutils import log
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
from setuptools.command.sdist import sdist as _sdist
|
from setuptools.command.sdist import sdist as _sdist
|
||||||
@@ -18,8 +18,10 @@ homedir = "/var/lib/awx"
|
|||||||
sharedir = "/usr/share/awx"
|
sharedir = "/usr/share/awx"
|
||||||
if os.path.exists("/etc/debian_version"):
|
if os.path.exists("/etc/debian_version"):
|
||||||
webconfig = "/etc/apache2/conf.d"
|
webconfig = "/etc/apache2/conf.d"
|
||||||
|
shutil.copy("config/awx-munin-ubuntu.conf", "config/awx-munin.conf")
|
||||||
else:
|
else:
|
||||||
webconfig = "/etc/httpd/conf.d"
|
webconfig = "/etc/httpd/conf.d"
|
||||||
|
shutil.copy("config/awx-munin-el.conf", "config/awx-munin.conf")
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# Helper Functions
|
# Helper Functions
|
||||||
@@ -194,6 +196,7 @@ setup(
|
|||||||
]),
|
]),
|
||||||
("%s" % webconfig, ["config/awx-httpd-80.conf",
|
("%s" % webconfig, ["config/awx-httpd-80.conf",
|
||||||
"config/awx-httpd-443.conf",
|
"config/awx-httpd-443.conf",
|
||||||
|
"config/awx-munin.conf",
|
||||||
]),
|
]),
|
||||||
("%s" % sharedir, ["tools/scripts/request_tower_configuration.sh"]),
|
("%s" % sharedir, ["tools/scripts/request_tower_configuration.sh"]),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user