dcsobral/puppet-users — Issue #5: errors while using users:account for user creation
Author: vjakkina
Created: 2011-12-06 16:36:23+00:00
State: open

Hi,

I am trying to use the puppet-users module to manage the users creation in my test-environment. After the module installation, I have added the definitions in nodes.pp so as to create a test user Bob as below-

------------------------------------------------
node 'ubuntu' {
include	user-creation
}

class user-creation {
users::account { "bob":
ensure => present,
fullname => "Uncle Bob",
uid => 10000,
#groups => [ "wheel" ], # Extra groups, defaults to none
shell => '/bin/bash', # default value
password => 'hash',
}
}
------------------------------------------------------------------

Puppet agent throws error while parsing the module. Here is the exact error.

----------------------------------------------------------------

root@ubuntu-sql:~# puppet agent --server="ubuntu" --certname="ubuntu-sql" --no-daemonize --verbose
notice: Starting Puppet client version 2.7.6
info: Caching catalog for ubuntu-sql
info: Applying configuration version '1323187672'
err: /Stage[main]/User-creation/Users::Account[bob]/File[/home/bob]: Failed to generate additional resources using 'eval_generate: Error 400 on SERVER: Not authorized to call search on /file_metadata/files/users/home/default/host/bob.ubuntu-sql.localdomain with {:ignore=>["*.git", "*.swp", "*.un~"], :recurse=>true, :links=>"manage", :checksum_type=>"md5"}
err: /Stage[main]/User-creation/Users::Account[bob]/File[/home/bob]: Could not evaluate: Error 400 on SERVER: Not authorized to call find on /file_metadata/files/users/home/default/host/bob.ubuntu-sql.localdomain Could not retrieve file metadata for puppet:///files/users/home/default/host/bob.ubuntu-sql.localdomain: Error 400 on SERVER: Not authorized to call find on /file_metadata/files/users/home/default/host/bob.ubuntu-sql.localdomain at /etc/puppet/modules/users/manifests/definitions/account.pp:97
notice: /Stage[main]/User-creation/Users::Account[bob]/File[/home/bob/.ssh]: Dependency File[/home/bob] has failures: true
warning: /Stage[main]/User-creation/Users::Account[bob]/File[/home/bob/.ssh]: Skipping because of failed dependencies
notice: /Stage[main]/User-creation/Users::Account[bob]/File[/home/bob/.bash_history]: Dependency File[/home/bob] has failures: true
warning: /Stage[main]/User-creation/Users::Account[bob]/File[/home/bob/.bash_history]: Skipping because of failed dependencies
notice: Finished catalog run in 0.11 seconds
------------------------------------------------------------------------------------

Can you please help me out in getting the module working.

Many Thanks,
venu