The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #8282

install action cannot run as root

Added by Dan Bode over 3 years ago. Updated about 1 year ago.

Status:ClosedStart date:07/07/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:cloud provisioner
Target version:-
Keywords: cloud_provisioner Affected URL:
Branch:https://github.com/puppetlabs/puppet-cloudpack/tree/issue%2Fmaster%2F8282 Affected PE version:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

When using —login = root, I get the error:

$ 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

Looking at the code, it looks like a pretty obvious type.

ssh.run(steps.map { |c| login == 'root' ? cmd : "sudo #{c}" })

cmd should be changed to c

History

#1 Updated by Dan Bode over 3 years ago

  • Branch set to https://github.com/puppetlabs/puppet-cloudpack/tree/issue%2Fmaster%2F8282

#2 Updated by Dan Bode over 3 years ago

  • Status changed from Unreviewed to Merged - Pending Release

#3 Updated by Jeff McCune over 3 years ago

  • Assignee deleted (Dan Bode)
  • Target version set to 0.6.0

#4 Updated by Nigel Kersten over 3 years ago

  • Category set to cloudpack

#5 Updated by Jeff McCune over 3 years ago

  • Status changed from Merged - Pending Release to Closed

#6 Updated by Charlie Sharpsteen about 1 year ago

  • Project changed from Cloud-Provisioner to Puppet Enterprise (Public)
  • Category deleted (cloudpack)
  • Target version deleted (0.6.0)

#7 Updated by Kenn Hussey about 1 year ago

  • Category set to cloud provisioner

Also available in: Atom PDF