Good morning,
I am missing something, probably something obvious, in making file
serving
recursion work. I've boiled this down to a simple site.pp, and I
still can't
get a recursive copy to work, although a single file works fine. I'm
using puppet 2.6.5 on both the master and
the client, and the client fails with:
$ sudo puppet agent --test
info: Caching catalog for c1-md.workplace.net
info: Applying configuration version '1297779261'
err: /File[/etc/puppet/secrets]: Failed to generate additional
resources using 'eval_generate': Error 400 on SERVER: private method
`gsub' called for nil:NilClass
notice: Finished catalog run in 0.09 seconds
The puppet master has very little in its logs, to wit:
Feb 15 09:20:32 cms puppet-master[14586]: (Scope(Node[default]))
Applying c1-md test
Feb 15 09:20:32 cms puppet-master[14586]: Compiled catalog for c1-
md.workplace.net in environment production in 0.01 seconds
Feb 15 09:20:32 cms puppet-master[14586]: private method `gsub' called
for nil:NilClass
Can you point out what I need to do to fix this? Or is this a bug
with 2.6.5?
I really need some recursive copying to work...
---------------
site.pp
---------
File {
mode => 0755, owner => "root", group => "root",
}
node default {
# set up the destination directory
notice("Applying c1-md test")
file{ "/etc/motd":
content => "Do you feel lucky"
}
# test recursive file xfer
file{ "/etc/puppet/secrets":
source => "puppet:///files/secrets",
#recurse => "true",
recurse => "remote",
}
# Test simple file xfer
file{ "/etc/puppet/test":
source => "puppet:///files/test",
ensure => "present",
}
}
---------------
fileserver.conf
---------------
[files]
path /etc/puppet/files
allow *
---------------------
puppet.conf (master)
---------------------
[main]
logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl
[master]
modulepath = /etc/puppet/modules:/usr/share/puppet/modules:/etc/
puppet/sec_modules
certname = inf-dev.workplace.net
certdnsnames = inf-
dev.workplace.net:cms.workplace.net:puppet.workplace.net
--------------------------
puppet.conf (agent/client)
--------------------------
[main]
logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl
[agent]
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig
server = inf-dev.workplace.net
onetime = true
---------------------------
find /etc/puppet/files -ls
---------------------------
# find /etc/puppet/files -ls
195123 8 drwxr-xr-x 3 root root 4096 Feb 15 09:12 /
etc/puppet/files
195148 8 -rw-r--r-- 1 root root 29 Feb 15 09:12 /
etc/puppet/files/test
195134 8 drwxr-xr-x 3 root root 4096 Feb 15 09:12 /
etc/puppet/files/secrets
195146 8 drwxr-xr-x 2 root root 4096 Feb 15 09:12 /
etc/puppet/files/secrets/ldap
195147 8 -rw-r--r-- 1 root root 29 Feb 15 09:12 /
etc/puppet/files/secrets/ldap/test
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.