From owner-freebsd-pkg@freebsd.org Tue Apr 5 16:52:26 2016 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF84EB04FF1 for ; Tue, 5 Apr 2016 16:52:26 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6A48A18AC; Tue, 5 Apr 2016 16:52:26 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from zero-gravitas.local (vpn-1.adestra.com [46.236.37.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id BF6109D56; Tue, 5 Apr 2016 16:52:22 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/BF6109D56; dkim=none; dkim-atps=neutral Subject: Re: FreeBSD Port: ports-mgmt/pkg To: Brad Davis References: <20160405034626.GA1875@corpmail.liquidneon.com> <5703E001.5020007@FreeBSD.org> <20160405160311.GB1875@corpmail.liquidneon.com> Cc: freebsd-pkg@freebsd.org From: Matthew Seaman Message-ID: <5703ED4D.4000004@FreeBSD.org> Date: Tue, 5 Apr 2016 17:52:29 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160405160311.GB1875@corpmail.liquidneon.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4sjCd7LsXpqVi0e44DmflnbWPidcb9fDP" X-Virus-Scanned: clamav-milter 0.99.1 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2016 16:52:27 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4sjCd7LsXpqVi0e44DmflnbWPidcb9fDP Content-Type: multipart/mixed; boundary="8wbB6wAei6cHt9DtgfcNHI55hL7bJxRVs" From: Matthew Seaman To: Brad Davis Cc: freebsd-pkg@freebsd.org Message-ID: <5703ED4D.4000004@FreeBSD.org> Subject: Re: FreeBSD Port: ports-mgmt/pkg References: <20160405034626.GA1875@corpmail.liquidneon.com> <5703E001.5020007@FreeBSD.org> <20160405160311.GB1875@corpmail.liquidneon.com> In-Reply-To: <20160405160311.GB1875@corpmail.liquidneon.com> --8wbB6wAei6cHt9DtgfcNHI55hL7bJxRVs Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016/04/05 17:03, Brad Davis wrote: > Can I see the relevent section of your puppet manifest? Sure. This is just one module, which happens to be used for setting up NPRE and various monitoring tasks. There are many other modules that install packages, but they all work pretty similarly. We have this as parameter settings -- $default_package_name =3D ['nrpe','nagios-plugins','p5-Nagios-Plugin'= ] case $::osfamily { [...] 'FreeBSD': { $config =3D '/usr/local/etc/nrpe.cfg' $package_name =3D $default_package_name $service_name =3D 'nrpe2' $pluginspath =3D '/usr/local/libexec/nagios' $includedir =3D '/usr/local/etc/nrpe.d/' } [...] } which is referenced here for installing packages: class nrpe::install inherits nrpe { if $operatingsystem =3D=3D 'FreeBSD' { package { $package_name : ensure =3D> $package_ensure, provider =3D> 'pkgng', require =3D> Class['pkgrepo'], } } else{ package { $package_name : ensure =3D> $package_ensure, } } } The 'pkgng' provider is from here: https://github.com/xaque208/puppet-pkgng but it's apparently version 0.2.3 from around a year ago, which was installed from Puppetforge: puppet module install zleslie/pkgng Cheers, Matthew --8wbB6wAei6cHt9DtgfcNHI55hL7bJxRVs-- --4sjCd7LsXpqVi0e44DmflnbWPidcb9fDP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJXA+1TXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnPPAP/jStQlZOoVJHGlmuZ/uiMoMH KBTQgHkuH5+n2fl6zxFX3QurFgh/HalktI3LQtfhgsAO7M4kmvhyw5+POu1ZcLrU R1UY7a4Fsg9e74KCckRGbNT6+dCFzC6vrEBk8w9LSPMm7rcNc2/ehWlJcrG9sLSr Geyv9Pl4SfPw74QPj3uOKoxOQspoa+Gfv9WlDg9xGlwr7nbSG8Hgn9e05DXQRy+R IID9Lngi8V5VkUvrl0n0Dho149Nom3w4xfP+R7QmURqa1lrkl/Gpj4uSGRZzl9hl Lh3dLjQTjrCZWpR5h3l9Jvd+VDMex+XfXMHbHqsXABLCeYfrQaZCoYz44sbLWSrn lUy6IlSFMacdRFvIj4OET3i60SJsXIXiA5bGzIroA+foCTyG7x2VQoYm0L0d3/ZY +P0Q6k6siBsSJOjB9UJJMzm4LxdYPRjr6nEZF6iGU4dFweaFKpg/rKSNcBvD9Jfm awCSgOzfXG9tieoyxzca7SghH2kcM6m8i328cMZB5zGWYPUvXKU9XaBX5GlksUgs Cy/XL8MDDW1N8/HIY3hWrnajAWFIeqvLsq3LA+zmF0Gi/UtXbBEC6ZZ3Pj9jmULO 0VHp/WquSMhy6e0yWUHmN8+o+JLSWKLib5d9ZybU0IJbfpZSSgOkRkbgcT+b3i6O lmbNlLFlye/5kfoBL2Ml =Cj1E -----END PGP SIGNATURE----- --4sjCd7LsXpqVi0e44DmflnbWPidcb9fDP--