Fixed CGI support for munin 2.0.8
This commit is contained in:
parent
4e4a45ca6b
commit
64c0dac99c
1 changed files with 20 additions and 2 deletions
|
@ -215,7 +215,7 @@ define munin::plugin($config = "") {
|
||||||
#
|
#
|
||||||
class munin::server {
|
class munin::server {
|
||||||
|
|
||||||
package { "munin":
|
package { [ "munin", "munin-cgi" ] :
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,13 +289,31 @@ class munin::server {
|
||||||
"puppet:///modules/munin/munin-htaccess", ],
|
"puppet:///modules/munin/munin-htaccess", ],
|
||||||
require => Package["munin"],
|
require => Package["munin"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { "/var/www/html/munin/cgi":
|
||||||
|
ensure => directory,
|
||||||
|
mode => "0755",
|
||||||
|
owner => "root",
|
||||||
|
group => "root",
|
||||||
|
require => Package["munin"],
|
||||||
|
}
|
||||||
file { "/var/www/html/munin/cgi/.htaccess":
|
file { "/var/www/html/munin/cgi/.htaccess":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
mode => "0644",
|
mode => "0644",
|
||||||
owner => "root",
|
owner => "root",
|
||||||
group => "root",
|
group => "root",
|
||||||
source => "puppet:///modules/munin/cgi-htaccess",
|
source => "puppet:///modules/munin/cgi-htaccess",
|
||||||
require => Package["munin"],
|
require => File["/var/www/html/munin/cgi"],
|
||||||
|
}
|
||||||
|
file { "/var/www/html/munin/cgi/munin-cgi-graph":
|
||||||
|
ensure => link,
|
||||||
|
target => "/var/www/cgi-bin/munin-cgi-graph",
|
||||||
|
require => File["/var/www/html/munin/cgi"],
|
||||||
|
}
|
||||||
|
file { "/var/www/html/munin/cgi/munin-cgi-html":
|
||||||
|
ensure => link,
|
||||||
|
target => "/var/www/cgi-bin/munin-cgi-html",
|
||||||
|
require => File["/var/www/html/munin/cgi"],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/etc/munin/conf.d":
|
file { "/etc/munin/conf.d":
|
||||||
|
|
Loading…
Add table
Reference in a new issue