mirror of https://github.com/zulip/zulip.git
Add Nagios configuration to puppet.
(imported from commit 34c09661e63b31bd177b9704b69a0d8d0d644de7)
This commit is contained in:
parent
7c03f03557
commit
8c20bafb98
|
@ -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
|
||||
|
|
@ -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": }
|
||||
|
|
Loading…
Reference in New Issue