Issue #6935 has been reported by Parker Johnson.

----------------------------------------
Bug #6935: AIX user provider fails if a gid is specified instead of a name.
https://projects.puppetlabs.com/issues/6935

Author: Parker Johnson
Status: Unreviewed
Priority: Normal
Assignee: 
Category: provider
Target version: 2.6.x
Affected Puppet version: development
Keywords: AIX user provider puppet gid
Branch: 


Several AIX providers (aixobject/user/group) were merged into the code a couple 
days ago.  I just checked out from source and gave it a try on an AIX6.1 TL4 
host.  Most of it works (thank you! psyched to see puppet and AIX play nice), 
but if you specify a gid instead of a group name, the manifest errors.  See 
below.  I'll be happy to re-test if yall have a hard time finding an AIX host. 
:)

[root@sfcloudap001 puppet]# cat modules/test/manifests/init.pp 
class test {

  group{'test_g':
    ensure => present,
    gid => 6969,
  }

  user{'test_u':
    ensure => present,
    uid => 99,
    gid => 6969,
    home => "/tmp/",
  }
}


[root@autobuild /]# puppet agent --test
warning: iconv doesn't seem to support UTF-8/UTF-16 conversions
info: Caching catalog for autobuild.gid.gap.com
info: Applying configuration version '1301604374'
notice: /Stage[main]/Test/Group[test_g]/ensure: created
err: /Stage[main]/Test/User[test_u]/ensure: change from absent to present 
failed:
Could not set 'present on ensure: undefined method `groupname_by_id' for # at 
/etc/puppet/modules/test/manifests/init.pp:13
notice: Finished catalog run in 2.89 seconds
[root@autobuild /]# 



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to