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 [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.