On Friday, September 6, 2013 8:07:24 AM UTC-5, Andreas Dvorak wrote:
>
> Hi Dick,
>
> thank you for the help, but it did not change anythink. The error mesage
> stays exactly the same.
>
> Puppet ignores the setting of the home variable.
>
> Now I have created the missing home directory in /export and the user is
> created, but in the wrong directory.
>
>
Something is very screwy here. Is your actual User resource is exactly as
you present? In particular, is the value of the 'home' parameter to your
misbehaving User resource exactly as you present? Because the simplest
explanation would be that the base directory is really expressed in terms
of a variable (e.g. "$home/$username"), and the base directory part has a
different value than you expect.
If the exact declaration you presented in fact does produce the result you
reported, then either the User type or the selected User provider is
misbehaving. The default provider for Solaris is normally "user_role_add",
but if you have installed a custom User provider then is might be chosen
instead. If you run the agent with --debug logging enabled then it should
warn you about any such conflict. Also, you can ensure that the agent uses
user_role_add on solaris clients by adding this to your user declaration:
provider => $::osfamily ? { 'solaris' => 'user_role_add', default =>
undef }
If adding that changes the behavior, then you really ought to find the
other User provider that was previously being chosen, and figure out what
its purpose is supposed to be, as you would be circumventing it by using
user_role_add.
You might also want to check the catalog delivered to the client. It's in
YAML format, so you can read it with ordinary text tools. What you're
looking for is whether the catalog specifies '/home/user1' or
'/export/home/user1'. If the former, then the problem resides on the
client (and thus probably in the provider); if the latter, then it resides
on the master, in the User type itself.
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.