Some tweaks to make sure there is a facter directory installed. Why is
authorStephen Gran <steve@lobefin.net>
Sat, 28 Feb 2009 19:07:29 +0000 (19:07 +0000)
committerStephen Gran <steve@lobefin.net>
Sat, 28 Feb 2009 19:07:29 +0000 (19:07 +0000)
this not in the package?
Signed-off-by: Stephen Gran <steve@lobefin.net>
files/etc/puppet/puppet.conf
modules/debian-org/manifests/init.pp
puppet.conf

index 01e92a1..1448729 100644 (file)
@@ -3,7 +3,7 @@ logdir=/var/log/puppet
 vardir=/var/lib/puppet
 ssldir=/var/lib/puppet/ssl
 rundir=/var/run/puppet
-factpath=$vardir/lib/facter
+factpath=$vardir/facter
 pluginsync=true
 
 [puppetmasterd]
index cfafb9b..24c90c9 100644 (file)
@@ -59,9 +59,26 @@ class debian-org {
              ensure  => file,
              source => "puppet:///files/etc/puppet/puppet.conf",
              notify  => Exec["puppet reload"];
+      "/var/lib/puppet/facter":
+             ensure  => directory,
+             owner   => root,
+             group   => root,
+             mode    => 755,
+             purge   => true;
    }
    exec { "puppet reload":
              path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
              refreshonly => true,
    }
 }
+
+class debian-proliant inherits debian-org {
+   file {
+      "/etc/apt/sources.list.d/debian.restricted.list":
+             owner   => root,
+             group   => root,
+             mode    => 644,
+             ensure  => file,
+             source => "puppet:///files/etc/apt/sources.list.d/debian.restricted.list";
+   }
+}
index 58b22ab..1448729 100644 (file)
@@ -3,8 +3,8 @@ logdir=/var/log/puppet
 vardir=/var/lib/puppet
 ssldir=/var/lib/puppet/ssl
 rundir=/var/run/puppet
-factpath=$vardir/lib/facter
-pluginsync=false
+factpath=$vardir/facter
+pluginsync=true
 
 [puppetmasterd]
 templatedir=/var/lib/puppet/templates