Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Dec 2021 12:33:41 -0500
From:      "Dan Langille" <dan@langille.org>
To:        questions@freebsd.org
Subject:   Re: poudriere options
Message-ID:  <0bc4b4f5-93c2-4f7e-805c-5aa0efc9538f@www.fastmail.com>
In-Reply-To: <9D13B32D-0EDD-4F1A-8E09-83E8D681B98D@darktemple.ch>
References:  <Ya4N46eihoPZIvEy@io.chezmoi.fr> <9c25f179-c051-20ef-5e6c-fda9673e9a2f@langille.org> <Ya4mrSv1XkifwRSC@io.chezmoi.fr> <D5708C71-F31E-4AFA-869C-5F05304BD557@darktemple.ch> <3d0ab685-bb39-47c9-ab7d-63250e5b1746@www.fastmail.com> <9D13B32D-0EDD-4F1A-8E09-83E8D681B98D@darktemple.ch>

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


On Mon, Dec 6, 2021, at 12:28 PM, M. Mader wrote:
> Am 6. Dezember 2021 17:56:10 MEZ schrieb Dan Langille <dan@langille.or=
g>:
>>
>>
>>On Mon, Dec 6, 2021, at 10:38 AM, M. Mader wrote:
>>> Am 6. Dezember 2021 16:05:17 MEZ schrieb Albert Shih <Albert.Shih@ob=
spm.fr>:
>>>>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0bc4b4f5-93c2-4f7e-805c-5aa0efc9538f>