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>
--- /dev/null
+# Defaults for puppet - sourced by /etc/init.d/puppet
+
+# Start puppet on boot?
+START=yes
+
+# Startup options
+DAEMON_OPTS="-w 5 --factsync"
# 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
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",