mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
add apache_status for collectd to apache
add appserver header to all apache instances - just b/c
This commit is contained in:
5
files/httpd/apachestatus.conf
Normal file
5
files/httpd/apachestatus.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
ExtendedStatus on
|
||||
|
||||
<Location /apache-status>
|
||||
SetHandler server-status
|
||||
</Location>
|
||||
5
files/httpd/headers.conf.j2
Normal file
5
files/httpd/headers.conf.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
Header set AppTime "%D"
|
||||
PassEnv HOSTNAME
|
||||
Header set AppServer "{{ inventory_hostname }}"
|
||||
|
||||
|
||||
@@ -32,3 +32,17 @@
|
||||
- config
|
||||
- hotfix
|
||||
|
||||
- name: add appserver headers.conf
|
||||
template: src=$files/httpd/headers.conf.j2 dest=/etc/httpd/conf.d/headers.conf
|
||||
notify:
|
||||
- restart apache
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: add apache_status location for collectd
|
||||
template: src=$files/httpd/apachestatus.conf dest=/etc/httpd/conf.d/apachestatus.conf
|
||||
notify:
|
||||
- restart apache
|
||||
tags:
|
||||
- config
|
||||
|
||||
Reference in New Issue
Block a user