Issue #17455 has been updated by eric sorenson.

Status changed from Unreviewed to Needs More Information
Assignee set to Corey Osman

Hi Corey, thanks for the bug report. Unfortunately, I couldn't reproduce this 
-- is it still an issue for you on the latest version of Puppet 2.7.20?

<pre>
[eric@deglitch vagrant]$ puppet resource cron
cron { 'hi':
  ensure  => 'present',
  command => '/bin/echo 'hi there'',
  minute  => ['1'],
  target  => 'eric',
  user    => 'eric',
}
[eric@deglitch vagrant]$ exit
[vagrant@deglitch ~]$ sudo -u eric puppet resource cron
cron { 'hi':
  ensure  => 'present',
  command => '/bin/echo 'hi there'',
  minute  => ['1'],
  target  => 'eric',
  user    => 'eric',
}
</pre>

I've put this ticket's status into "Needs more Information" and assigned it to 
you. Please either (a) update it with the information I've requested and 
re-assign it to me if you need more help, or (b) change the status to "Closed" 
if you were able to resolve the issue on your own. 
----------------------------------------
Bug #17455: puppet resource bug when using sudo command
https://projects.puppetlabs.com/issues/17455#change-79909

Author: Corey Osman
Status: Needs More Information
Priority: Normal
Assignee: Corey Osman
Category: 
Target version: 
Affected Puppet version: 2.7.12
Keywords: puppet resource sudo cron
Branch: 


How to reproduce:

sudo su - <username> puppet resource cron

results:

/usr/bin/puppet: line 3: require: command not found
/usr/bin/puppet: line 4: Puppet::Util::CommandLine.new.execute: command not 
found

If you su - <username> and then run puppet resource cron the command works as 
expected.


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