Add Nagios configuration to puppet.

(imported from commit 34c09661e63b31bd177b9704b69a0d8d0d644de7)
This commit is contained in:
Tim Abbott 2012-10-26 14:01:55 -04:00
parent 7c03f03557
commit 8c20bafb98
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,39 @@
# apache configuration for nagios 3.x
ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3
# Where the stylesheets (config files) reside
Alias /nagios3/stylesheets /etc/nagios3/stylesheets
# Where the HTML pages live
Alias /nagios3 /usr/share/nagios3/htdocs
RedirectMatch ^/?$ https://nagios.humbughq.com/nagios3/
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)>
Options FollowSymLinks
DirectoryIndex index.php index.html
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthType Digest
AuthName "wiki"
AuthDigestProvider file
AuthUserFile /etc/apache2/users/wiki
Require valid-user
</DirectoryMatch>
<Directory /usr/share/nagios3/htdocs>
Options +ExecCGI
</Directory>
# Enable this ScriptAlias if you want to enable the grouplist patch.
# See http://apan.sourceforge.net/download.html for more info
# It allows you to see a clickable list of all hostgroups in the
# left pane of the Nagios web interface
ScriptAlias /nagios3/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi

View File

@ -224,6 +224,12 @@ class humbug_wiki {
}
}
## TODO: Add a Nagios class -- needs to:
# (a2ensite nagios, apt-get install nagios3 -t squeeze-backports, put in _our_ nagios config)
## TODO: Add a trac class -- needs to:
# (a2ensite trac, apt-get install trac -t squeeze-backports, put in _our_ trac.ini from git)
class { "humbug_base": }
class { "humbug_web_base": }
#class { "humbug_wiki": }