Project

General

Profile

Actions

Bug #230

closed

Run functionality doesn't work in daemon mode

Added by SyRenity Now almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Puppet integration
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

  • Launched Foreman via init.d script
  • Clicked Run on some node
  • Got immediately error notice
  • Nothing in logs
  • Suspect permissions (i.e. foreman running under foreman account)
Actions #1

Updated by Ohad Levy almost 14 years ago

  • Status changed from New to Need more information
  • Priority changed from High to Normal

is this a puppet bug? or permission issue on the sudo side? do you have any more information about this problem?

Actions #2

Updated by SyRenity Now almost 14 years ago

This seems to be issue present only when Foreman runs under daemon.

When I su to foreman account, then launch the following command:

sudo /usr/sbin/puppetrun --host usdemo.test.com

It works normally.

Actions #3

Updated by SyRenity Now almost 14 years ago

By the way, there is nothing in logs -i.e. the cmd variable doesn't contain anything (whether 0 or any error code).

Just empty string.

Actions #4

Updated by Ohad Levy almost 14 years ago

do you have:

Defaults:foreman !requiretty

in your sudoers file?

Actions #5

Updated by SyRenity Now almost 14 years ago

That worked!

Please update the wiki for Puppetrun, as it contains only these instructions:
foreman ALL = NOPASSWD: /usr/sbin/puppetrun

http://theforeman.org/projects/foreman/wiki/Puppetrun

Actions #6

Updated by Ohad Levy almost 14 years ago

  • Status changed from Need more information to Closed

SyRenity Now wrote:

That worked!

Please update the wiki for Puppetrun, as it contains only these instructions:
foreman ALL = NOPASSWD: /usr/sbin/puppetrun

http://theforeman.org/projects/foreman/wiki/Puppetrun

You have wiki access too :)

it was documented in the puppet module for foreman :)

Actions

Also available in: Atom PDF