Pulling files from a separate master

19 views
Skip to first unread message

Roger

unread,
Mar 18, 2014, 12:22:42 PM3/18/14
to puppet...@googlegroups.com
I'm trying to get an agent to pull files from a separate master acting as a file server. No filtering on permissions based on IP or fqdn,  standard:

path /file
allow *

in auth.conf

mount point in fileserver.conf with allow *
ie.
[myfiles]
  path: /opt/myfiles
  allow *

File resource is:

file {'name':
  source => 'puppet://puppet.master.one/myfiles/file'
}

Have 2 identical puppet masters.  Both running 3.3.2.  Also tried with a separate 3.4.3 master.

If I use puppet agent --server puppet.master.one then all works fine.  If I use puppet agent --server puppet.master.two, file_metadata works fine, sees changes made to the file on puppet.master.one but file_content always fails with permission denied.

Have tried every possible combination of permissions in auth.conf of

path /file_content/
  allow *

path /file_metadata/
  allow *

All before the default "path /file" line.  Pull them out, put them in, rearrange, mix in a blender......nothing works.

Am I missing something?  Has anyone gotten puppet to pull files from separate master?




Roger

unread,
Mar 18, 2014, 1:25:14 PM3/18/14
to puppet...@googlegroups.com
An update on what I'm seeing:

the file_metadata request is going to correct puppet master.  The file_content request is going to the master that compiled the manifest.  Fails because the master that compiled the config does not have a copy of the files -- and it should have to if the file resource is telling it explicitly which server to get it from.

Bug?

Roger

unread,
Mar 18, 2014, 1:33:25 PM3/18/14
to puppet...@googlegroups.com
Looks like it is this issue:  https://tickets.puppetlabs.com/browse/PUP-1892

The ticket mentions a resolution but I'll be damned if I see one there.


On Tuesday, March 18, 2014 12:22:42 PM UTC-4, Roger wrote:
Reply all
Reply to author
Forward
0 new messages