Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2016 17:52:29 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        Brad Davis <brd@FreeBSD.org>
Cc:        freebsd-pkg@freebsd.org
Subject:   Re: FreeBSD Port: ports-mgmt/pkg
Message-ID:  <5703ED4D.4000004@FreeBSD.org>
In-Reply-To: <20160405160311.GB1875@corpmail.liquidneon.com>
References:  <CAKw-smCs2YycijBzAbwKypCtyCikL3k9kDVbSLZSOTUOh7D25g@mail.gmail.com> <20160405034626.GA1875@corpmail.liquidneon.com> <CAKw-smDu9%2BDu1rLYPQb1G09aqODY_oc%2BXq29qCQT%2B12P-K=bPA@mail.gmail.com> <5703E001.5020007@FreeBSD.org> <20160405160311.GB1875@corpmail.liquidneon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--4sjCd7LsXpqVi0e44DmflnbWPidcb9fDP
Content-Type: multipart/mixed; boundary="8wbB6wAei6cHt9DtgfcNHI55hL7bJxRVs"
From: Matthew Seaman <matthew@FreeBSD.org>
To: Brad Davis <brd@FreeBSD.org>
Cc: freebsd-pkg@freebsd.org
Message-ID: <5703ED4D.4000004@FreeBSD.org>
Subject: Re: FreeBSD Port: ports-mgmt/pkg
References: <CAKw-smCs2YycijBzAbwKypCtyCikL3k9kDVbSLZSOTUOh7D25g@mail.gmail.com>
 <20160405034626.GA1875@corpmail.liquidneon.com>
 <CAKw-smDu9+Du1rLYPQb1G09aqODY_oc+Xq29qCQT+12P-K=bPA@mail.gmail.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--



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