Issue #7442 has been reported by Gary Law.

----------------------------------------
Bug #7442: User provided password age bug on Solaris with 2.7.0.rc2
https://projects.puppetlabs.com/issues/7442

Author: Gary Law
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Hi

Applying the following:-

user { 'puppet':
  ensure           => 'present',
  comment          => 'Puppet',
  gid              => '52',
  home             => '/var/lib/puppet',
  password         => '!!',
  password_max_age => '-1',
  password_min_age => '-1',
  shell            => '/bin/true',
  uid              => '52',
}

(known good on Darwin and CentOS) fails on Solaris:

$ sudo puppet apply /etc/puppet/manifests/site.pp 
glaw@sv01:~ $ sudo puppet apply /etc/puppet/manifests/site.pp 
prtconf: devinfo facility not available
err: /Stage[main]/Puppet/User[puppet]/password_min_age: change from  to -1 
failed: Could not set password_min_age on user[puppet]: Execution of 
'/usr/bin/passwd -n -1 puppet' returned 6: passwd: Invalid argument to option -n
Invalid argument to option

notice: /Stage[main]/Puppet/User[puppet]/password_max_age: password_max_age 
changed '' to '-1'
notice: Class[Puppet]: Dependency User[puppet] has failures: true
warning: Class[Puppet]: Skipping because of failed dependencies
notice: Stage[main]: Dependency User[puppet] has failures: true
warning: Stage[main]: Skipping because of failed dependencies
notice: Finished catalog run in 0.13 seconds
glaw@sv01:~ $ 

I *think* that the correct command for passwd in this case would be
/usr/bin/passwd -x -1 puppet

But in any event the provider doesn't seem to report on it, so even setting 
this correctly by hand doesn't cause puppet to apply the config without error:

$ sudo puppet resource user puppet
prtconf: devinfo facility not available
user { 'puppet':
  ensure   => 'present',
  comment  => 'Puppet',
  gid      => '52',
  home     => '/var/lib/puppet',
  password => '!!',
  shell    => '/bin/true',
  uid      => '52',
}

Gary



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