1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 09:25:10 +03:00

Adding munin install and configuration to the playbook and package builds

This commit is contained in:
Matthew Jones 2014-07-21 13:45:26 -04:00
parent cdb711dc61
commit 1620494584
4 changed files with 43 additions and 1 deletions

View File

@ -41,4 +41,5 @@ WSGISocketPrefix /var/run/wsgi
</IfVersion>
</Directory>
Include conf.d/awx-munin.conf
</VirtualHost>

5
config/awx-munin-el.conf Normal file
View File

@ -0,0 +1,5 @@
Alias /munin /var/www/html/munin/
<Directory /var/www/html/munin/>
Order Allow,Deny
Allow from all
</Directory>

View 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>

View File

@ -3,7 +3,7 @@
# Copyright (c) 2014 AnsibleWorks, Inc.
# All Rights Reserved.
import os, datetime, glob, sys
import os, datetime, glob, sys, shutil
from distutils import log
from setuptools import setup, find_packages
from setuptools.command.sdist import sdist as _sdist
@ -18,8 +18,10 @@ homedir = "/var/lib/awx"
sharedir = "/usr/share/awx"
if os.path.exists("/etc/debian_version"):
webconfig = "/etc/apache2/conf.d"
shutil.copy("config/awx-munin-ubuntu.conf", "config/awx-munin.conf")
else:
webconfig = "/etc/httpd/conf.d"
shutil.copy("config/awx-munin-el.conf", "config/awx-munin.conf")
#####################################################################
# Helper Functions
@ -194,6 +196,7 @@ setup(
]),
("%s" % webconfig, ["config/awx-httpd-80.conf",
"config/awx-httpd-443.conf",
"config/awx-munin.conf",
]),
("%s" % sharedir, ["tools/scripts/request_tower_configuration.sh"]),
]