Ask Your Question
0

user created by puppet "dosn't work"

asked 2013-08-30 10:21:56 -0500

dwdwdwdwdw gravatar image

updated 2013-08-30 10:57:43 -0500

I am running puppet on ubuntu 12.04 and trying to create a new user with puppet, for the purposes of testing here's what I'm doing in site.pp:

user { "testuser":
            groups => ['ssh'],
            ensure => 'present',
            password  => "password",
    }

/var/log/auth.log shows entries as follows where I have tried to login via ssh:

Aug 30 16:56:01 ws1 sshd[5749]: warning: /etc/hosts.allow, line 14: can't verify hostname: getaddrinfo(31-221-84-11$
Aug 30 16:56:10 ws1 sshd[5749]: reverse mapping checking getaddrinfo for <a href="http://31-221-84-114.cust-31.exponential-e.net">31-221-84-114.cust-31.exponential-e.net</a ...
(more)
edit retag flag offensive close merge delete

Comments

When attempting to log in after Puppet creates the user, what error messages appear in your system logs? For instance, the ssh and ftp daemons should print something in the ...(more)

GregLarkin gravatar imageGregLarkin ( 2013-08-30 10:45:26 -0500 )edit

I have added relevant entries from /var/log/auth.log to my question. Please let me know if you can think of anything else which might help

dwdwdwdwdw gravatar imagedwdwdwdwdw ( 2013-08-30 10:58:29 -0500 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2013-08-30 11:03:25 -0500

GregLarkin gravatar image

Based on your sample code, my guess is that you are not pre-encrypting the user's password as required by the user resource. Please try that and report back here if it works or not:

password
The user’s password, in whatever encrypted format the local system requires.

  • Most modern Unix-like systems use salted SHA1 password hashes. You can use Puppet’s built-in sha1 function to generate a hash from a password.
  • Mac OS X 10.5 and 10.6 also use salted SHA1 hashes.
  • Mac OS X 10.7 (Lion) uses salted SHA512 hashes. The Puppet Labs stdlib module ...
(more)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-08-30 10:21:56 -0500

Seen: 633 times

Last updated: Aug 30 '13