So, this works slightly differently than I had thought. In addition to
authorStephen Gran <steve@lobefin.net>
Sat, 28 Feb 2009 22:13:04 +0000 (22:13 +0000)
committerStephen Gran <steve@lobefin.net>
Sat, 28 Feb 2009 22:13:04 +0000 (22:13 +0000)
the server serving facts, the client has to actually request them as
well.  This commit sets up /etc/default/puppet so that clients do
request new facts, as well as setting up fileserver.conf so that clients
are allowed to retrieve new facts.
Signed-off-by: Stephen Gran <steve@lobefin.net>
files/etc/default/puppet [new file with mode: 0644]
fileserver.conf
modules/debian-org/manifests/init.pp

diff --git a/files/etc/default/puppet b/files/etc/default/puppet
new file mode 100644 (file)
index 0000000..3dcfa06
--- /dev/null
@@ -0,0 +1,7 @@
+# Defaults for puppet - sourced by /etc/init.d/puppet
+
+# Start puppet on boot?
+START=yes
+
+# Startup options
+DAEMON_OPTS="-w 5 --factsync"
index 8aab99c..26219ab 100644 (file)
 #  allow 192.168.0.0/24
 
 [plugins]
+  allow *.debian.org
 #  allow *.example.com
 #  deny *.evil.example.com
 #  allow 192.168.0.0/24
 [facts]
-   path /etc/puppet/facts
-
+  allow *.debian.org
+  path /var/lib/puppet/facts
index e1369d5..7a05fbf 100644 (file)
@@ -59,12 +59,13 @@ class debian-org {
              ensure  => file,
              source => "puppet:///files/etc/puppet/puppet.conf",
              notify  => Exec["puppet reload"];
-      "/var/lib/puppet/facts":
-             ensure  => directory,
+      "/etc/default/puppet":
              owner   => root,
              group   => root,
-             mode    => 755,
-             purge   => true;
+             mode    => 644,
+             ensure  => file,
+             source => "puppet:///files/etc/default/puppet",
+             notify  => Exec["puppet reload"];
    }
    exec { "puppet reload":
              path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",