On Tue Mar 25, 2025 at 11:03 AM CET, Mikolaj Kucharski wrote:
> Hi.
>
> I am addressing two issues here. The setproctitle problem in the rc.d(8)
> scripts I reported in the past https://marc.info/?t=170056003800006&r=1&w=2
> and change for pexp works for me.
>
> Second is, salt needs tornado.
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/sysutils/salt/Makefile,v
> diff -u -p -u -r1.189 Makefile
> --- Makefile  20 Mar 2025 09:30:47 -0000      1.189
> +++ Makefile  25 Mar 2025 09:49:33 -0000
> @@ -17,6 +17,7 @@ COMMENT =           remote execution and configur
>  
>  MODPY_DISTV =        3007.1
>  DISTNAME =           salt-${MODPY_DISTV}
> +REVISION =           1
>  
>  CATEGORIES =         sysutils net devel
>  
> @@ -39,12 +40,14 @@ BUILD_DEPENDS =           textproc/py-yaml \
>  # requirements/base.txt
>  RUN_DEPENDS =                devel/py-looseversion \
>                       devel/py-jmespath \
> +                     devel/py-setproctitle \
>                       net/py-msgpack>=0.6.2v0 \
>                       security/py-cryptography \
>                       textproc/py-MarkupSafe \
>                       textproc/py-yaml \
>                       www/py-jinja2 \
>                       www/py-requests \
> +                     www/py-tornado \
>                       sysutils/py-distro>=1.5.0 \
>                       sysutils/py-packaging
>  
> Index: pkg/salt_api.rc
> ===================================================================
> RCS file: /cvs/ports/sysutils/salt/pkg/salt_api.rc,v
> diff -u -p -u -r1.3 salt_api.rc
> --- pkg/salt_api.rc   11 Mar 2022 19:58:00 -0000      1.3
> +++ pkg/salt_api.rc   25 Mar 2025 09:49:33 -0000
> @@ -5,7 +5,7 @@ daemon_user="_salt"
>  
>  . /etc/rc.d/rc.subr
>  
> -pexp="${MODPY_BIN} ${daemon}${daemon_flags:+ ${daemon_flags}}"
> +pexp="python${MODPY_VERSION}: ${MODPY_BIN} ${daemon}${daemon_flags:+ 
> ${daemon_flags}}.*"
>  rc_reload=NO
>  
>  rc_cmd $1
> Index: pkg/salt_master.rc
> ===================================================================
> RCS file: /cvs/ports/sysutils/salt/pkg/salt_master.rc,v
> diff -u -p -u -r1.6 salt_master.rc
> --- pkg/salt_master.rc        11 Mar 2022 19:58:00 -0000      1.6
> +++ pkg/salt_master.rc        25 Mar 2025 09:49:33 -0000
> @@ -4,7 +4,7 @@ daemon="${TRUEPREFIX}/bin/salt-master -d
>  
>  . /etc/rc.d/rc.subr
>  
> -pexp="${MODPY_BIN} ${daemon}${daemon_flags:+ ${daemon_flags}}"
> +pexp="python${MODPY_VERSION}: ${MODPY_BIN} ${daemon}${daemon_flags:+ 
> ${daemon_flags}}.*"
>  rc_reload=NO
>  
>  rc_cmd $1
> Index: pkg/salt_minion.rc
> ===================================================================
> RCS file: /cvs/ports/sysutils/salt/pkg/salt_minion.rc,v
> diff -u -p -u -r1.5 salt_minion.rc
> --- pkg/salt_minion.rc        11 Mar 2022 19:58:00 -0000      1.5
> +++ pkg/salt_minion.rc        25 Mar 2025 09:49:33 -0000
> @@ -4,7 +4,7 @@ daemon="${TRUEPREFIX}/bin/salt-minion -d
>  
>  . /etc/rc.d/rc.subr
>  
> -pexp="${MODPY_BIN} ${daemon}${daemon_flags:+ ${daemon_flags}}"
> +pexp="python${MODPY_VERSION}: ${MODPY_BIN} ${daemon}${daemon_flags:+ 
> ${daemon_flags}}.*"
>  rc_reload=NO
>  
>  rc_cmd $1
> Index: pkg/salt_proxy.rc
> ===================================================================
> RCS file: /cvs/ports/sysutils/salt/pkg/salt_proxy.rc,v
> diff -u -p -u -r1.3 salt_proxy.rc
> --- pkg/salt_proxy.rc 11 Mar 2022 19:58:00 -0000      1.3
> +++ pkg/salt_proxy.rc 25 Mar 2025 09:49:33 -0000
> @@ -4,7 +4,7 @@ daemon="${TRUEPREFIX}/bin/salt-proxy -d"
>  
>  . /etc/rc.d/rc.subr
>  
> -pexp="${MODPY_BIN} ${daemon}${daemon_flags:+ ${daemon_flags}}"
> +pexp="python${MODPY_VERSION}: ${MODPY_BIN} ${daemon}${daemon_flags:+ 
> ${daemon_flags}}.*"
>  rc_reload=NO
>  
>  rc_cmd $1
> Index: pkg/salt_syndic.rc
> ===================================================================
> RCS file: /cvs/ports/sysutils/salt/pkg/salt_syndic.rc,v
> diff -u -p -u -r1.4 salt_syndic.rc
> --- pkg/salt_syndic.rc        11 Mar 2022 19:58:00 -0000      1.4
> +++ pkg/salt_syndic.rc        25 Mar 2025 09:49:33 -0000
> @@ -5,7 +5,7 @@ daemon_flags="-u _salt"
>  
>  . /etc/rc.d/rc.subr
>  
> -pexp="${MODPY_BIN} ${daemon}${daemon_flags:+ ${daemon_flags}}"
> +pexp="python${MODPY_VERSION}: ${MODPY_BIN} ${daemon}${daemon_flags:+ 
> ${daemon_flags}}.*"
>  rc_reload=NO
>  
>  rc_cmd $1

Hi all,

I would really recommend to make two different ports - one for 3006.x
(LTS) and one for 3007.x (STS).

STS is NOT recommended for production use:
https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/linux-rpm.html

"Warning

STS not recommended for Production

Salt Project recommends deploying LTS releases for Production
environments."

And I can confirm that 3007.1 is really buggy - both server and minion.

-- 
With kind regards / Með bestu kveðju / Mit freundlichen Grüßen

Uwe Werler

Reply via email to