From nobody Mon Dec 6 17:33:41 2021 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2DE1F18C708D for ; Mon, 6 Dec 2021 17:34:07 +0000 (UTC) (envelope-from dan@langille.org) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4J79XF3N2Pz3kcq for ; Mon, 6 Dec 2021 17:34:05 +0000 (UTC) (envelope-from dan@langille.org) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 607FF320100E for ; Mon, 6 Dec 2021 12:34:04 -0500 (EST) Received: from imap42 ([10.202.2.92]) by compute3.internal (MEProxy); Mon, 06 Dec 2021 12:34:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type:content-transfer-encoding; s=fm2; bh=ZKAnj p39hsIw0D2uO23j74BeDPS0vrbdgPboIAfbYgM=; b=B9LaE69cTfY6NIZuymTNh QaKqu7Tan00jsO8oA9+3rpGJVl+MdJsxSConmQ8YGPnsRDIMOVWYdyLzCKZG6hCD CiGGdawSXhCXy6n7ezjy/lLlYJAlVADNjpAVXXG5wzyMlmwnGFpEiOmJ+d4eSzsO IFo5+cICOPEXq2FNrlaQCZaA2hmObvVD0M6rP2I5EmbIvTHfyC5P9L32qg75HTg4 QE6zStPjVgIEQueEvdlPnoofpgoVMmhv+AaZuOazK2e8cywzHZtxNZXaP0s68go/ Lu/BMuciNv4VO0uFOQwE14Wu2DH56R2voLnxJkad8HpANtrEWd2nUb+3/S8GXHEV A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=ZKAnjp39hsIw0D2uO23j74BeDPS0vrbdgPboIAfbY gM=; b=i2QxnDazhYhmFCCosng03ZgRtkbugOKE7yJq+URO1/Yx7XvsWIasGM0wQ 2X7hKg+e5tK/rIhQnhlJ7T9OPgAYTQyom+nhhT7sDgxZwW3Lw5/ydbn1hQGW2byu wzZ6ikyjKLtsoZ88UJ+Xb43MBeQnv+XliMprbVvnuUR78Uv7TjTv7hu+fIjh2LSe gUGWyg1IANjKpI6SVOhSCxITUv+ItyzL2I0OC3N9F4HFIpmr5TTBjnWY3HQyh5zx Ma4UOWC66iNDqjhPtymZQpIl+CoHf6jCxaPIoMa9j0tj/+sJm3QPVkxv57hQEdrH oUt5XXtrS6A76OO7ktKBHn8nO/Mpg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrjeefgddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepfdffrghnucfnrghnghhilhhlvgdfuceouggrnheslhgr nhhgihhllhgvrdhorhhgqeenucggtffrrghtthgvrhhnpedutdevleefvdduhfdthfdvje evkeehtdelieevgeetvdffvdekfefggeefkeffteenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpegurghnsehlrghnghhilhhlvgdrohhrgh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id B998F218007A; Mon, 6 Dec 2021 12:34:03 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4458-g51a91c06b2-fm-20211130.004-g51a91c06 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Message-Id: <0bc4b4f5-93c2-4f7e-805c-5aa0efc9538f@www.fastmail.com> In-Reply-To: <9D13B32D-0EDD-4F1A-8E09-83E8D681B98D@darktemple.ch> References: <9c25f179-c051-20ef-5e6c-fda9673e9a2f@langille.org> <3d0ab685-bb39-47c9-ab7d-63250e5b1746@www.fastmail.com> <9D13B32D-0EDD-4F1A-8E09-83E8D681B98D@darktemple.ch> Date: Mon, 06 Dec 2021 12:33:41 -0500 From: "Dan Langille" To: questions@freebsd.org Subject: Re: poudriere options Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4J79XF3N2Pz3kcq X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm2 header.b=B9LaE69c; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=i2QxnDaz; dmarc=pass (policy=none) header.from=langille.org; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 64.147.123.19 as permitted sender) smtp.mailfrom=dan@langille.org X-Spamd-Result: default: False [-3.88 / 15.00]; XM_UA_NO_VERSION(0.01)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.19]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; NEURAL_HAM_SHORT(-0.79)[-0.786]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.19:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[langille.org:s=fm2,messagingengine.com:s=fm1]; FREEFALL_USER(0.00)[dan]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; RWL_MAILSPIKE_POSSIBLE(0.00)[64.147.123.19:from]; MID_RHS_WWW(0.50)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, Dec 6, 2021, at 12:28 PM, M. Mader wrote: > Am 6. Dezember 2021 17:56:10 MEZ schrieb Dan Langille : >> >> >>On Mon, Dec 6, 2021, at 10:38 AM, M. Mader wrote: >>> Am 6. Dezember 2021 16:05:17 MEZ schrieb Albert Shih : >>>>Le 06/12/2021 =C3=A0 09:50:36-0500, Dan Langille a =C3=A9crit >>>> >>>>Hi, >>>> >>>>> > >>>>> > I run poudriere with some jail, with differents options. >>>>> > >>>>> > I would like to know the best way to save that options, currentl= y I use >>>>> > pourdriere options to set those options but that's are not very = convenient >>>>> > to backup in puppet/ansible-kind tools. >>>>> > >>>>> > Is they are any way to set poudriere jail options in other way ? >>>>> >>>>> Can you give us an example of the options you want to save please? >>>>> >>>> >>>>Two examples, >>>> >>>> 1/ I run icinga2 for monitoring my services and use >>>> >>>> net-mgmt/monitoring-plugins >>>> >>>> for that. I need to =C2=ABcustom=C2=BB that ports options because = by default I'm >>>> missing LDAP, MYSQL, PGSQL >>>> >>>> Well this one are easy because I just need to add those tree optio= ns. >>>> >>>> 2/ I run also www/rt5, with that I need the option >>>> >>>> www/rt5 -> I need few options but most important I use AP_MODPERL >>>> instead of the default. >>>> >>>> thats mean I also need (at least) >>>> >>>> OPTIONS_FILE_SET+=3DMODPERL >>>> >>>> for www/p5-HTML-Mason >>>> >>>>So it's not a big deal to do that for one jail, but with time I'm go= ing to >>>>forget I need those options. >>>> >>>>Currently what I do is when I create a new jail (for a new version of >>>>FreeBSD), I redo the pourdiere options, and check if it's ok with >>>> >>>> diff -r old-jail-options-dir new-jail-options-dir >>>> >>>>something not only boring but prone to error. >>>> >>>>Regards >>>> >>>>-- >>>>Albert SHIH >>>>Observatoire de Paris >>>>France >>>>Heure local/Local time: >>>>lun. 06 d=C3=A9c. 2021 15:56:40 CET >>>> >>> >>> You can set these options on a per package. And in the case of=20 >>> poudriere even per jail. >>> Meaning that you only have to copy the separate files containing tho= se=20 >>> options around.=20 >>> I've never actually set up puppet, but I imagine that would be possi= ble=20 >>> with puppet. >>> >>> Sadly I'm not on my computer, so I can't tell you reliably where to = put=20 >>> those files. >>> >>> But either: >>> man poudriere >>> Or >>> man poudriere-options >>> should answer that. >>> >>> It's the equivalent of setting options for pkg somewhere in /var/db/= pkg/ >>> >>> I'm terribly sorry for the vague answer. But I found out how to do i= t=20 >>> just by reading poudriere's manpages, so everyone else should be abl= e=20 >>> to do so, since I'm usually not the sharpest tool in the shed ;) >> >>You can put them all in /usr/local/etc/poudriere.d/make.conf >> >>I suspect... >> > >>You can put them all in /usr/local/etc/poudriere.d/make.conf > > Sure. But to maintain options per package, I'd go with separate per=20 > package option files. Here are some entries from my file: net_samba410_UNSET+=3DQUOTAS net-mgmt_librenms_SET+=3DPYSERVICE net-mgmt_librenms_UNSET+=3DPYPOLLER Is that what you expected? What did you want? --=20 Dan Langille dan@langille.org