Issue #1409 has been reported by ctrlaltdel.
----------------------------------------
Bug #1409: ssh_authorized_key instantiation should not require the user being
already present
http://reductivelabs.com/redmine/issues/show/1409
Author: ctrlaltdel
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Keywords:
Complexity: Unknown
Patch: None
Affected version: 0.24.5
If I understand it correctly, the user being present should only be required by
the provider and not by the type itself.
<pre>
user {"francois":
ensure => present,
managehome => true,
}
ssh_authorized_key {"[EMAIL PROTECTED]":
ensure => present,
type => rsa,
key => "AAAA...",
user => "francois",
}
</pre>
results in:
<pre>
err: Could not create [EMAIL PROTECTED]: Parameter user failed: user francois
doesn't exist
/var/puppet/lib/puppet/type/ssh_authorized_key.rb:32:in `expand_path'
/var/puppet/lib/puppet/type/ssh_authorized_key.rb:32:in `value='
/usr/lib/ruby/site_ruby/1.8/puppet/util/methodhelper.rb:16:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/util/methodhelper.rb:16:in `set_options'
/usr/lib/ruby/site_ruby/1.8/puppet/util/methodhelper.rb:13:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/util/methodhelper.rb:13:in `set_options'
/usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:296:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:237:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/metatype/attributes.rb:577:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/metatype/attributes.rb:577:in `newattr'
/usr/lib/ruby/site_ruby/1.8/puppet/metatype/attributes.rb:513:in `[]='
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:254:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:251:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:251:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/metatype/instances.rb:151:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/metatype/instances.rb:151:in `create'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:87:in `to_type'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:194:in `to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:122:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:122:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:191:in `to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:200:in `call'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:200:in `to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:122:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:122:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:191:in `to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:206:in `call'
/usr/lib/ruby/site_ruby/1.8/puppet/transportable.rb:206:in `to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:181:in `getconfig'
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:253:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:445:in `thinmark'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in
`realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:252:in `run'
/usr/lib/ruby/1.8/sync.rb:229:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:245:in `run'
/usr/sbin/puppetd:439
warning: Not using cache on failed catalog
warning: Configuration could not be instantiated: Parameter user failed: user
francois doesn't exist
</pre>
----------------------------------------
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---