Project

General

Profile

Feature #3150

foreman-proxy support for invoking sudo as a different user for mcollective

Added by Greg Petras about 7 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Puppet
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

We are using Puppet Enterprise, and Puppet Labs automatically configures the peadmin user as an MCollective client.

It'd be great if there were an optional setting in the config that would allow you to run mco via sudo as a different user. For example:

:mco_user: peadmin

If that was configured, the mco command would be executed with the following parameters:

"/usr/bin/sudo", "-u", "peadmin", "/opt/puppet/bin/mco", "puppet", "runonce", "-I", "<fqdn>"

Thanks!


Related issues

Related to Smart Proxy - Bug #3012: Mcollective does not need sudo to work properlyNew2013-09-02

Associated revisions

Revision 81a34451 (diff)
Added by Greg Petras about 7 years ago

fixes #3150 - adds ability to specify the user to invoke sudo as when calling mco/puppet kick

History

#1 Updated by Dominic Cleal about 7 years ago

  • Project changed from Foreman to Smart Proxy
  • Category changed from Smart Proxy to Puppet

#2 Updated by Dominic Cleal about 7 years ago

  • Related to Bug #3012: Mcollective does not need sudo to work properly added

#3 Updated by Dominic Cleal about 7 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Greg Petras
  • Target version set to 1.15.0
  • Legacy Backlogs Release (now unused) set to 2

#4 Updated by Anonymous about 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF