Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Dec 2012 19:14:08 -0500 (EST)
From:      Garrett Wollman <wollman@csail.mit.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/174557: puppet rc script uses wrong $command_interpreter
Message-ID:  <201212190014.qBJ0E8Wh053522@xyz.csail.mit.edu>
Resent-Message-ID: <201212190020.qBJ0K0qN045085@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         174557
>Category:       ports
>Synopsis:       puppet rc script uses wrong $command_interpreter
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 19 00:20:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Wollman
>Release:        FreeBSD 9.1-RC3 amd64
>Organization:
MIT Computer Science & Artificial Intelligence Laboratory
>Environment:
System: FreeBSD xyz.csail.mit.edu 9.1-RC3 FreeBSD 9.1-RC3 #14 r242372M: Thu Nov 1 01:12:44 EDT 2012 wollman@xyz.csail.mit.edu:/usr/obj/usr/src/sys/CSAIL amd64

Latest Puppet port (3.0.1_2) and Ruby 1.9.3.327,1

>Description:

$LOCALBASE/etc/rc.d/puppet specifies that command_interpreter is
$LOCALBASE/bin/ruby18.  This is wrong when using Ruby 1.9.  The error
causes (embarrassingly) Puppet to be unable to start itself (using the
Puppet::Type::Service::ProviderFreebsd service provider).

>How-To-Repeat:

Install Puppet port.
Run the following manifest:
  service {'puppet': ensure => running, enable => true, }
Watch the fail:

Error: undefined method `error' for Service[puppet](provider=freebsd):Puppet::Type::Service::ProviderFreebsd
Error: /Stage[main]/Csail::Puppet/Service[puppet]/ensure: change from stopped to running failed: undefined method `error' for Service[puppet](provider=freebsd):Puppet::Type::Service::ProviderFreebsd

>Fix:

Edit in the correct path when the rc file is installed.



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212190014.qBJ0E8Wh053522>