diff options
author | Kevin Fenzi <kevin@scrye.com> | 2014-07-16 22:29:42 +0000 |
---|---|---|
committer | Kevin Fenzi <kevin@scrye.com> | 2014-07-16 22:29:42 +0000 |
commit | c53b02cf359ddad4ea702765aa0b138fcae22b86 (patch) | |
tree | 374c8e21590ab5c423a1007d294dcc53e797d648 | |
parent | 59df5e6b4ba5b66056ff9b306da0e1bfaac88b39 (diff) | |
download | ansible-c53b02cf359ddad4ea702765aa0b138fcae22b86.tar.gz ansible-c53b02cf359ddad4ea702765aa0b138fcae22b86.tar.xz ansible-c53b02cf359ddad4ea702765aa0b138fcae22b86.zip |
Allow us to look at collectd
-rw-r--r-- | roles/collectd/server/files/collectd.conf | 21 | ||||
-rw-r--r-- | roles/collectd/server/tasks/main.yml | 10 |
2 files changed, 31 insertions, 0 deletions
diff --git a/roles/collectd/server/files/collectd.conf b/roles/collectd/server/files/collectd.conf new file mode 100644 index 000000000..bc2b4a9cf --- /dev/null +++ b/roles/collectd/server/files/collectd.conf @@ -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> + diff --git a/roles/collectd/server/tasks/main.yml b/roles/collectd/server/tasks/main.yml index 038976a30..4c4fa64e5 100644 --- a/roles/collectd/server/tasks/main.yml +++ b/roles/collectd/server/tasks/main.yml @@ -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 |