Issue #8282 has been reported by Dan Bode.
----------------------------------------
Bug #8282: install action cannot run as root
https://projects.puppetlabs.com/issues/8282
Author: Dan Bode
Status: Unreviewed
Priority: Normal
Assignee: Dan Bode
Category:
Target version:
Keywords:
Branch:
When using --login = root, I get the error:
<pre>
$ puppet node install --keyfile ~/.ssh/dans-new-key.pem --installer-payload
puppet-enterprise-1.1rc1-all.tar --installer-answers pe-install-answers.txt
--login root ec2-107-20-21-245.compute-1.amazonaws.com
Waiting for SSH response ... Done
Uploading Puppet ... Done
Uploading Puppet Answer File ... Done
Installing Puppet ...err: undefined local variable or method `cmd' for
Puppet::CloudPack:Module
err: Try 'puppet help node install' for usage
</pre>
Looking at the code, it looks like a pretty obvious type.
<pre>
ssh.run(steps.map { |c| login == 'root' ? cmd : "sudo #{c}" })
</pre>
cmd should be changed to c
--
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.