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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
In my haste to catch my train I forgot a few points. 1) I''ve tried now with 2.6.4 and had the same problem 2) I''ve used ''ensure => directory,'' and variations of ''recurse => true'', ''recurse => remote'' to no effect 3) The ''secrets'' directory is created, but nothing recursive copied into it 4) The file ''test'' is copied from the server, so the fileserving configuration works, but recursion is not. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The the puppet user read everything under this directory space on the server? On 02/15/2011 10:46 AM, PeterBurkholder wrote:> In my haste to catch my train I forgot a few points. > > 1) I''ve tried now with 2.6.4 and had the same problem > 2) I''ve used ''ensure => directory,'' and variations of ''recurse => > true'', ''recurse => remote'' to no effect > 3) The ''secrets'' directory is created, but nothing recursive copied > into it > 4) The file ''test'' is copied from the server, so the fileserving > configuration works, but recursion is not. >- -- Trevor Vaughan Vice President, Onyx Point, Inc. email: tvaughan@onyxpoint.com phone: 410-541-ONYX (6699) pgp: 0x6C701E94 - -- This account not approved for unencrypted sensitive information -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJNWyjwAAoJECNCGV1OLcypu1kIAK7X4KhcAYPHIArq22aD28bQ g8ENnDYRAfqMFpLt4hoQPLbqSvP7VA0gyBpzBrkeLU7N1XKRv0/ApLlQuulxeKt0 hmWZT2YT2lbbqvTkyImlPne//N9/hjWu218yrJ3VKYgmfn0SuEZGmkBGqTrEWxvw Gjgw/zkHu/5X3w/zZETsTM6rxd/3LMxBaBwqokMkkirHuG0PXY2VkUd/uEn8C6Qf vlX0f/eNudPaXge+c5ta/Cv5KGihkU2EHHZbepOAX1ar1EvnQrzhcs5I6GXX68RZ 9noo+4Ay674yL64CpJ0Z62F3OvsVfafCsX3KvrnxEca0zosRufSnU+fnNoMuXl4=zsMr -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks for trying to help, Trevor. On Feb 15, 8:31 pm, Trevor Vaughan <tvaug...@onyxpoint.com> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > The the puppet user read everything under this directory space on the server?Yes, the puppet user can read everything. I''ve just triple-checked by running $ sudo -u puppet find /etc/puppet/files Also, here are some 400 errors from masterhttp.log [2011-02-15 10:41:58] 170.109.231.34 - - [15/Feb/2011:10:41:58 EST] "GET /production/file_metadatas/files/secrets &recurse=true&links=manage&&checksum_type=md5 HTTP/1.1" 400 45 -Peter> > On 02/15/2011 10:46 AM, PeterBurkholder wrote: > > > In my haste to catch my train I forgot a few points. > > > 1) I''ve tried now with 2.6.4 and had the same problem > > 2) I''ve used ''ensure => directory,'' and variations of ''recurse => > > true'', ''recurse => remote'' to no effect > > 3) The ''secrets'' directory is created, but nothing recursive copied > > into it > > 4) The file ''test'' is copied from the server, so the fileserving > > configuration works, but recursion is not. > > - -- > Trevor Vaughan > Vice President, Onyx Point, Inc. > email: tvaug...@onyxpoint.com > phone: 410-541-ONYX (6699) > pgp: 0x6C701E94 > > - -- This account not approved for unencrypted sensitive information -- > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > > iQEcBAEBAgAGBQJNWyjwAAoJECNCGV1OLcypu1kIAK7X4KhcAYPHIArq22aD28bQ > g8ENnDYRAfqMFpLt4hoQPLbqSvP7VA0gyBpzBrkeLU7N1XKRv0/ApLlQuulxeKt0 > hmWZT2YT2lbbqvTkyImlPne//N9/hjWu218yrJ3VKYgmfn0SuEZGmkBGqTrEWxvw > Gjgw/zkHu/5X3w/zZETsTM6rxd/3LMxBaBwqokMkkirHuG0PXY2VkUd/uEn8C6Qf > vlX0f/eNudPaXge+c5ta/Cv5KGihkU2EHHZbepOAX1ar1EvnQrzhcs5I6GXX68RZ > 9noo+4Ay674yL64CpJ0Z62F3OvsVfafCsX3KvrnxEca0zosRufSnU+fnNoMuXl4> =zsMr > -----END PGP SIGNATURE----- > > tvaughan.vcf > < 1KViewDownload-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 02/15/2011 03:30 PM, PeterBurkholder wrote:> # test recursive file xfer > file{ "/etc/puppet/secrets": > source => "puppet:///files/secrets", > #recurse => "true", > recurse => "remote", > }So it doesn''t work for neither remote nor true? Try true without quotes as well (just to be on the safe side here ;-) What is remote supposed to be doing btw? The documentation is somewhat sparse. Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.