Hello All, I administrate public Internet computers for a number of libraries. I have a user ''public'' and I am trying to keep all the home''s for this user the same across multiple computers. When I try to do this with puppet, I get errors for some directories. It only happens on hidden directories, but I''m not sure if it is all of them, or just some of them. This is the error: err: /Stage[main]/User-public/File[public-home-cs]: Failed to generate additional resources using ''eval_generate'': Error 400 on SERVER: Permission denied - /etc/puppet/files/users/home/public/.config/autostart If I delete this directory, it will give an error for some other directory. Here is an ls -alh for /etc/puppet/files/users/home/public/.config drwxrwxrwx 8 root root 4.0K 2011-07-05 07:39 . drwxrwxrwx 27 root root 4.0K 2011-07-05 07:56 .. drwx------ 2 root root 4.0K 2011-07-05 07:39 autostart drwxr--r-- 2 root root 4.0K 2011-07-05 07:39 deskbar-applet drwx------ 2 root root 4.0K 2011-07-05 07:39 enchant drwxr-xr-x 3 root root 4.0K 2011-07-05 07:39 gnome-session drwxr-xr-x 4 root root 4.0K 2011-07-05 07:39 google-chrome drwxr-xr-x 2 root root 4.0K 2011-07-05 07:39 menus -rw------- 1 root root 632 2011-07-05 07:39 user-dirs.dirs -rw-r--r-- 1 root root 5 2011-07-05 07:39 user-dirs.locale I''ve tried it with the dir owned as both root and public, same error both ways. Here is the relevant part of my manifiest: class user-public { group { "public": ensure => present, } user { "public": ensure => present, gid => ''public'', shell => ''/bin/bash'', home => ''/home/public'', managehome => true, password => ''$6$skUt3Y9e$DCE./FocksDxrsrZN2hIZXiZNNBLPUDKkhg359BAwHVKXU6HsQKb2nkX.B1zngxtUI91zAqdTFZHYaiCAoBoB1'', require => Group[''public''], } file { "public-home": path => ''/home/public'', ensure => directory, owner => ''public'', group => ''public'', recurse => true, ignore => ''.git'', source => ''puppet:///files/users/home/public'', require => User[''public''], } } Thanks in advance, Kyle http://www.kylehall.info Mill Run Technology Solutions ( http://millruntech.com ) Crawford County Federated Library System ( http://www.ccfls.org ) Meadville Public Library ( http://www.meadvillelibrary.org ) -- 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.
Hi Kyle, The source paths need to be accessible by the same user that puppetmasterd is running as ... which is usually puppet. Some of those files are owned by root and 700 or 600 so it can''t read them:> drwx------ 2 root root 4.0K 2011-07-05 07:39 autostartLook at the error:> err: /Stage[main]/User-public/File[public-home-cs]: Failed to generate > additional resources using ''eval_generate'': Error 400 on SERVER: > Permission denied - > /etc/puppet/files/users/home/public/.config/autostartThe error is on the server ... the point being, its not the client permissions that you should be worried about. Make the directory and its children (say .config) accessible to puppet, probably by changing the owner (or a chmod - depends on what you''ve got in these dirs) - and sort out applying the correct permissions on the client with the file {} resource. ken. On Tue, Jul 5, 2011 at 2:42 PM, Kyle Hall <kyle.m.hall@gmail.com> wrote:> Hello All, > I administrate public Internet computers for a number of libraries. > I have a user ''public'' and I am trying to keep all the home''s for this > user the same across multiple computers. When I try to do this with > puppet, I get errors for some directories. It only happens on hidden > directories, but I''m not sure if it is all of them, or just some of > them. > > This is the error: > err: /Stage[main]/User-public/File[public-home-cs]: Failed to generate > additional resources using ''eval_generate'': Error 400 on SERVER: > Permission denied - > /etc/puppet/files/users/home/public/.config/autostart > > If I delete this directory, it will give an error for some other directory. > > Here is an ls -alh for /etc/puppet/files/users/home/public/.config > > drwxrwxrwx 8 root root 4.0K 2011-07-05 07:39 . > drwxrwxrwx 27 root root 4.0K 2011-07-05 07:56 .. > drwx------ 2 root root 4.0K 2011-07-05 07:39 autostart > drwxr--r-- 2 root root 4.0K 2011-07-05 07:39 deskbar-applet > drwx------ 2 root root 4.0K 2011-07-05 07:39 enchant > drwxr-xr-x 3 root root 4.0K 2011-07-05 07:39 gnome-session > drwxr-xr-x 4 root root 4.0K 2011-07-05 07:39 google-chrome > drwxr-xr-x 2 root root 4.0K 2011-07-05 07:39 menus > -rw------- 1 root root 632 2011-07-05 07:39 user-dirs.dirs > -rw-r--r-- 1 root root 5 2011-07-05 07:39 user-dirs.locale > > I''ve tried it with the dir owned as both root and public, same error both ways. > > Here is the relevant part of my manifiest: > > class user-public { > group { "public": > ensure => present, > } > > user { "public": > ensure => present, > gid => ''public'', > shell => ''/bin/bash'', > home => ''/home/public'', > managehome => true, > password => > ''$6$skUt3Y9e$DCE./FocksDxrsrZN2hIZXiZNNBLPUDKkhg359BAwHVKXU6HsQKb2nkX.B1zngxtUI91zAqdTFZHYaiCAoBoB1'', > require => Group[''public''], > } > > file { "public-home": > path => ''/home/public'', > ensure => directory, > owner => ''public'', > group => ''public'', > recurse => true, > ignore => ''.git'', > source => ''puppet:///files/users/home/public'', > require => User[''public''], > } > } > > Thanks in advance, > Kyle > > http://www.kylehall.info > Mill Run Technology Solutions ( http://millruntech.com ) > Crawford County Federated Library System ( http://www.ccfls.org ) > Meadville Public Library ( http://www.meadvillelibrary.org ) > > -- > 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. > >-- 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! All the files in /etc/puppet are owned by root, so I assumed those files should be as well. Re-owned the files to puppet and now it works great! Thanks again for the help. Kyle http://www.kylehall.info Mill Run Technology Solutions ( http://millruntech.com ) Crawford County Federated Library System ( http://www.ccfls.org ) Meadville Public Library ( http://www.meadvillelibrary.org ) On Tue, Jul 5, 2011 at 12:53 PM, Ken Barber <ken@puppetlabs.com> wrote:> Hi Kyle, > > The source paths need to be accessible by the same user that > puppetmasterd is running as ... which is usually puppet. Some of those > files are owned by root and 700 or 600 so it can''t read them: > >> drwx------ 2 root root 4.0K 2011-07-05 07:39 autostart > > Look at the error: > >> err: /Stage[main]/User-public/File[public-home-cs]: Failed to generate >> additional resources using ''eval_generate'': Error 400 on SERVER: >> Permission denied - >> /etc/puppet/files/users/home/public/.config/autostart > > The error is on the server ... the point being, its not the client > permissions that you should be worried about. > > Make the directory and its children (say .config) accessible to > puppet, probably by changing the owner (or a chmod - depends on what > you''ve got in these dirs) - and sort out applying the correct > permissions on the client with the file {} resource. > > ken. > > On Tue, Jul 5, 2011 at 2:42 PM, Kyle Hall <kyle.m.hall@gmail.com> wrote: >> Hello All, >> I administrate public Internet computers for a number of libraries. >> I have a user ''public'' and I am trying to keep all the home''s for this >> user the same across multiple computers. When I try to do this with >> puppet, I get errors for some directories. It only happens on hidden >> directories, but I''m not sure if it is all of them, or just some of >> them. >> >> This is the error: >> err: /Stage[main]/User-public/File[public-home-cs]: Failed to generate >> additional resources using ''eval_generate'': Error 400 on SERVER: >> Permission denied - >> /etc/puppet/files/users/home/public/.config/autostart >> >> If I delete this directory, it will give an error for some other directory. >> >> Here is an ls -alh for /etc/puppet/files/users/home/public/.config >> >> drwxrwxrwx 8 root root 4.0K 2011-07-05 07:39 . >> drwxrwxrwx 27 root root 4.0K 2011-07-05 07:56 .. >> drwx------ 2 root root 4.0K 2011-07-05 07:39 autostart >> drwxr--r-- 2 root root 4.0K 2011-07-05 07:39 deskbar-applet >> drwx------ 2 root root 4.0K 2011-07-05 07:39 enchant >> drwxr-xr-x 3 root root 4.0K 2011-07-05 07:39 gnome-session >> drwxr-xr-x 4 root root 4.0K 2011-07-05 07:39 google-chrome >> drwxr-xr-x 2 root root 4.0K 2011-07-05 07:39 menus >> -rw------- 1 root root 632 2011-07-05 07:39 user-dirs.dirs >> -rw-r--r-- 1 root root 5 2011-07-05 07:39 user-dirs.locale >> >> I''ve tried it with the dir owned as both root and public, same error both ways. >> >> Here is the relevant part of my manifiest: >> >> class user-public { >> group { "public": >> ensure => present, >> } >> >> user { "public": >> ensure => present, >> gid => ''public'', >> shell => ''/bin/bash'', >> home => ''/home/public'', >> managehome => true, >> password => >> ''$6$skUt3Y9e$DCE./FocksDxrsrZN2hIZXiZNNBLPUDKkhg359BAwHVKXU6HsQKb2nkX.B1zngxtUI91zAqdTFZHYaiCAoBoB1'', >> require => Group[''public''], >> } >> >> file { "public-home": >> path => ''/home/public'', >> ensure => directory, >> owner => ''public'', >> group => ''public'', >> recurse => true, >> ignore => ''.git'', >> source => ''puppet:///files/users/home/public'', >> require => User[''public''], >> } >> } >> >> Thanks in advance, >> Kyle >> >> http://www.kylehall.info >> Mill Run Technology Solutions ( http://millruntech.com ) >> Crawford County Federated Library System ( http://www.ccfls.org ) >> Meadville Public Library ( http://www.meadvillelibrary.org ) >> >> -- >> 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. >> >> > > -- > 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. > >-- 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.
Maybe Matching Threads
- Using modules from PuppetForge
- Fileserver Issue
- Failed to generate additional resources using 'eval_generate': end of file reached
- info: Retrieving plugin, err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': undefined method `closed?' for nil:NilClass
- 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca