fixed group stuff
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Wed, 2 Jan 2008 20:16:12 +0000 (20:16 +0000)
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Wed, 2 Jan 2008 20:16:12 +0000 (20:16 +0000)
git-svn-id: https://rfd.cronopios.org/ipuppet/trunk/modules/munin@350 d66ca3ae-40d7-4aa7-90d4-87d79ca94279

manifests/client.pp
manifests/host.pp
manifests/plugin.pp

index 18a4043..2e8f018 100644 (file)
@@ -80,7 +80,7 @@ class munin::client::darwin
        file { "/usr/share/snmp/snmpd.conf": 
                mode => 744,
                content => template("munin/darwin_snmpd.conf.erb"),
-               group  => staff,
+               group  => 0,
                owner  => root,
        }
        delete_matching_line{"startsnmpdno":
@@ -106,10 +106,10 @@ class munin::client::debian
        file {
                "/etc/munin/":
                        ensure => directory,
-                       mode => 0755, owner => root, group => root;
+                       mode => 0755, owner => root, group => 0;
                "/etc/munin/munin-node.conf":
                        content => template("munin/munin-node.conf.${operatingsystem}.${lsbdistcodename}"),
-                       mode => 0644, owner => root, group => root,
+                       mode => 0644, owner => root, group => 0,
                        # this has to be installed before the package, so the postinst can
                        # boot the munin-node without failure!
                        before => Package["munin-node"],
@@ -142,10 +142,10 @@ class munin::client::gentoo
        file {
                "/etc/munin/":
                        ensure => directory,
-                       mode => 0755, owner => root, group => root;
+                       mode => 0755, owner => root, group => 0;
                "/etc/munin/munin-node.conf":
                        content => template("munin/munin-node.conf.Gentoo."),
-                       mode => 0644, owner => root, group => root,
+                       mode => 0644, owner => root, group => 0,
                        # this has to be installed before the package, so the postinst can
                        # boot the munin-node without failure!
                        before => Package["munin"],
@@ -174,10 +174,10 @@ class munin::client::centos
        file {
                "/etc/munin/":
                        ensure => directory,
-                       mode => 0755, owner => root, group => root;
+                       mode => 0755, owner => root, group =>0;
                "/etc/munin/munin-node.conf":
                        content => template("munin/munin-node.conf.CentOS."),
-                       mode => 0644, owner => root, group => root,
+                       mode => 0644, owner => root, group => 0,
                        # this has to be installed before the package, so the postinst can
                        # boot the munin-node without failure!
                        before => Package["munin"],
index 8a90cc2..844698d 100644 (file)
@@ -21,7 +21,7 @@ class munin::snmp_collector
        file { 
                "/var/lib/puppet/modules/munin/create_snmp_links":
                        source => "puppet://$servername/munin/create_snmp_links.sh",
-                       mode => 755, owner => root, group => root;
+                       mode => 755, owner => root, group => 0;
        }
 
        exec { "create_snmp_links":
index 15049f2..f21098e 100644 (file)
@@ -70,7 +70,7 @@ define munin::plugin (
                                        debug("creating $plugin_conf")
                                        file { $plugin_conf:
                                                content => "[${name}]\n$config\n",
-                                               mode => 0644, owner => root, group => root,
+                                               mode => 0644, owner => root, group => 0,
                                        }
                                }
                        }
@@ -85,7 +85,7 @@ define munin::remoteplugin($ensure = "present", $source, $config = '') {
                        file {
                                "/var/lib/puppet/modules/munin/plugins/${name}":
                                        source => $source,
-                                       mode => 0755, owner => root, group => root;
+                                       mode => 0755, owner => root, group => 0;
                        }
                        munin::plugin { $name:
                                ensure => $ensure,
@@ -123,10 +123,10 @@ class munin::plugins::base {
                                source => "puppet://$servername/munin/empty",
                                ensure => directory, checksum => mtime,
                                recurse => true, purge => true, force => true, 
-                               mode => 0755, owner => root, group => root;
+                               mode => 0755, owner => root, group => 0;
                        "/etc/munin/plugin-conf.d/munin-node":
                                ensure => present, 
-                               mode => 0644, owner => root, group => root;
+                               mode => 0644, owner => root, group => 0;
                    }
                }
 
@@ -136,11 +136,11 @@ class munin::plugins::base {
                                source => "puppet://$servername/munin/empty",
                                ensure => directory, checksum => mtime,
                                recurse => true, purge => true, force => true, 
-                               mode => 0755, owner => root, group => root,
+                               mode => 0755, owner => root, group => 0,
                                notify => Service["$munin_node_service"];
                        "/etc/munin/plugin-conf.d/munin-node":
                                ensure => present, 
-                               mode => 0644, owner => root, group => root,
+                               mode => 0644, owner => root, group => 0,
                                notify => Service[$munin_node_service];
                    }
                }