Allow us to look at collectd
This commit is contained in:
parent
59df5e6b4b
commit
c53b02cf35
2 changed files with 31 additions and 0 deletions
21
roles/collectd/server/files/collectd.conf
Normal file
21
roles/collectd/server/files/collectd.conf
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Configuration for collectd.
|
||||
|
||||
ScriptAlias /collectd/bin/ /usr/share/collectd/collection3/bin/
|
||||
Alias /collectd/ /usr/share/collectd/collection3/
|
||||
|
||||
<Directory /usr/share/collectd/>
|
||||
AddHandler cgi-script .cgi
|
||||
DirectoryIndex bin/index.cgi
|
||||
<IfModule mod_authz_core.c>
|
||||
# Apache 2.4
|
||||
Require all granted
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
# Apache 2.2
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
Allow from 127.0.0.1
|
||||
Allow from ::1
|
||||
</IfModule>
|
||||
</Directory>
|
||||
|
|
@ -8,3 +8,13 @@
|
|||
- collectd-rrdtool
|
||||
- collectd-ping
|
||||
- collectd-web
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
|
||||
# install apache config
|
||||
- name: install collectd apache config
|
||||
copy: src=collectd.conf dest=/etc/httpd/conf.d/collectd.conf
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue