From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Apr 9 03:50:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 230C05C2 for ; Tue, 9 Apr 2013 03:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 060B3E36 for ; Tue, 9 Apr 2013 03:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r393o0UE054757 for ; Tue, 9 Apr 2013 03:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r393o0YL054756; Tue, 9 Apr 2013 03:50:00 GMT (envelope-from gnats) Resent-Date: Tue, 9 Apr 2013 03:50:00 GMT Resent-Message-Id: <201304090350.r393o0YL054756@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Edward Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 120DE4F3 for ; Tue, 9 Apr 2013 03:46:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id DC667E0C for ; Tue, 9 Apr 2013 03:46:10 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r393kA47053894 for ; Tue, 9 Apr 2013 03:46:10 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r393kAaJ053893; Tue, 9 Apr 2013 03:46:10 GMT (envelope-from nobody) Message-Id: <201304090346.r393kAaJ053893@red.freebsd.org> Date: Tue, 9 Apr 2013 03:46:10 GMT From: Edward To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/177729: [PATCH] sysutils/puppet: puppet agent failed when connecting to puppet master X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2013 03:50:01 -0000 >Number: 177729 >Category: ports >Synopsis: [PATCH] sysutils/puppet: puppet agent failed when connecting to puppet master >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 09 03:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Edward >Release: FreeBSD 9.1-RELEASE >Organization: >Environment: FreeBSD puppet-testing-port-01.example.com 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: puppet agent display the following error message when connecting to puppet master: Info: Retrieving plugin Error: /File[/var/puppet/lib]: Could not evaluate: Could not retrieve information from environment production source(s) puppet://puppet-testing-port-01.example.com/plugins Info: Caching catalog for puppet-testing-port-02.example.com Info: Applying configuration version '1365200455' This is because the puppet master (puppet-testing-port01.example.com) has a missing directory /usr/local/etc/puppet/modules, which doesn't create by default. The attached diff of sysutils/puppet Makefile will create the directory /usr/local/etc/puppet/modules which do away the error message. >How-To-Repeat: On a fresh installation of sysutils/puppet (without /usr/local/etc/puppet/modules) on puppet master (puppet-testing-port01.example.com), then try to connect puppet agent (puppet-testing-port02.example.com) with it. >Fix: Patch attached with submission follows: --- Makefile.original 2013-04-09 11:04:19.000000000 +0800 +++ Makefile 2013-04-09 11:05:33.000000000 +0800 @@ -95,6 +95,7 @@ --vardir=/var/lib/puppet \ --logdir=/var/log/puppet \ > ${ETCDIR}/puppet.conf-dist + ${MKDIR} -p ${ETCDIR}/modules @${ECHO} ${RUBY_SITELIBDIR}/puppet.rb | \ ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} @${ECHO} ${RUBY_SITELIBDIR}/semver.rb | \ >Release-Note: >Audit-Trail: >Unformatted: