FreeBSD Bugzilla – Attachment 161452 Details for
Bug 203262
[MAINTAINER] sysutils/py-salt : resolve #203047 & upstream #27151
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
py27-salt-2015.8.0_1.patch
py27-salt-2015.8.0_1.patch (text/plain), 6.95 KB, created by
Jason Unovitch
on 2015-09-27 02:57:16 UTC
(
hide
)
Description:
py27-salt-2015.8.0_1.patch
Filename:
MIME Type:
Creator:
Jason Unovitch
Created:
2015-09-27 02:57:16 UTC
Size:
6.95 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 398019) >+++ Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= salt > PORTVERSION= 2015.8.0 >+PORTREVISION= 1 > CATEGORIES= sysutils python > MASTER_SITES= CHEESESHOP > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >@@ -56,7 +57,9 @@ > --salt-logs-dir=/var/log/salt \ > --salt-pidfile-dir=/var/run > >-USE_RC_SUBR= salt_master \ >+USE_RC_SUBR= salt_api \ >+ salt_proxy \ >+ salt_master \ > salt_minion \ > salt_syndic > >Index: files/pkg-message.in >=================================================================== >--- files/pkg-message.in (revision 398019) >+++ files/pkg-message.in (working copy) >@@ -15,5 +15,13 @@ > o Update 'master: salt' to point to your Salt Master's hostname or IP > o sysrc salt_minion_enable="YES" > >+--------------------------------------------------------------------------------------------------- >+ >+To configure a Salt Proxy Minion, do the following: >+ >+ o sysrc salt_proxy_enable="YES" >+ o sysrc salt_proxy_list="" >+ o Update the salt_proxy_list with the proxy minion name(s) >+ > =================================================================================================== > >Index: files/salt_api.in >=================================================================== >--- files/salt_api.in (revision 398019) >+++ files/salt_api.in (working copy) >@@ -10,17 +10,18 @@ > > # Add the following to /etc/rc.conf[.local] to enable this service > # >-# salt_api_enable="YES" >+# salt_api_enable (bool): Set to NO by default. >+# Set it to YES to enable salt_api > # > > . /etc/rc.subr > >-name="salt_api" >+name=salt_api > rcvar=salt_api_enable > > load_rc_config ${name} > >-: ${salt_api_enable:="NO"} >+: ${salt_api_enable:=NO} > > command="%%PREFIX%%/bin/salt-api" > command_interpreter="%%PYTHON_CMD%%" >Index: files/salt_master.in >=================================================================== >--- files/salt_master.in (revision 398019) >+++ files/salt_master.in (working copy) >@@ -10,17 +10,24 @@ > > # Add the following to /etc/rc.conf[.local] to enable this service > # >-# salt_master_enable="YES" >+# salt_master_enable (bool): Set to NO by default. >+# Set it to YES to enable salt_master. >+# salt_master_paths (string): Set to "/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin" by default. >+# Default $PATH for salt_master. >+# salt_master_eggcache (string): Set to "/tmp" by default. >+# Allows defining egg cache directory to fix runtime on diskless systems. > # > > . /etc/rc.subr > >-name="salt_master" >+name=salt_master > rcvar=salt_master_enable > > load_rc_config ${name} > >-: ${salt_master_enable:="NO"} >+: ${salt_master_enable:=NO} >+: ${salt_master_paths=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin} >+: ${salt_master_eggcache=/tmp} > > command="%%PREFIX%%/bin/salt-master" > command_interpreter="%%PYTHON_CMD%%" >@@ -27,4 +34,7 @@ > required_files="%%PREFIX%%/etc/salt" > command_args="-c ${required_files} -d" > >+export PATH="${salt_master_paths}" >+export PYTHON_EGG_CACHE="${salt_master_eggcache}" >+ > run_rc_command "$1" >Index: files/salt_minion.in >=================================================================== >--- files/salt_minion.in (revision 398019) >+++ files/salt_minion.in (working copy) >@@ -10,19 +10,24 @@ > > # Add the following to /etc/rc.conf[.local] to enable this service > # >-# salt_minion_enable="YES" >+# salt_minion_enable (bool): Set to NO by default. >+# Set it to YES to enable salt_minion >+# salt_minion_paths (string): Set to "/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin" by default. >+# Default $PATH for salt_minion >+# salt_minion_eggcache (string): Set to "/tmp" by default. >+# Allows defining egg cache directory to fix runtime on diskless systems. > # > > . /etc/rc.subr > >-name="salt_minion" >+name=salt_minion > rcvar=salt_minion_enable > > load_rc_config ${name} > >-: ${salt_minion_enable:="NO"} >-: ${salt_minion_paths="$PATH"} >-: ${salt_minion_eggcache="/tmp"} >+: ${salt_minion_enable:=NO} >+: ${salt_minion_paths=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin} >+: ${salt_minion_eggcache=/tmp} > > command="%%PREFIX%%/bin/salt-minion" > command_interpreter="%%PYTHON_CMD%%" >Index: files/salt_proxy.in >=================================================================== >--- files/salt_proxy.in (revision 0) >+++ files/salt_proxy.in (working copy) >@@ -0,0 +1,59 @@ >+#!/bin/sh >+ >+# $FreeBSD$ >+# >+# Salt Proxy startup script >+# >+# PROVIDE: salt_proxy >+# REQUIRE: LOGIN >+# KEYWORD: shutdown >+ >+# Add the following to /etc/rc.conf[.local] to enable this service >+# >+# salt_proxy_enable (bool): Set to NO by default. >+# Set it to YES to enable salt_proxy. >+# salt_proxy_paths (string): Set to "/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin" by default. >+# Default $PATH for Salt >+# salt_proxy_eggcache (string): Set to "/tmp" by default. >+# Allows defining egg cache directory to fix runtime on diskless systems. >+# salt_proxy_list (string): Set to "" by default. >+# Space separated list of proxies. >+# >+ >+. /etc/rc.subr >+ >+name=salt_proxy >+rcvar=salt_proxy_enable >+ >+load_rc_config ${name} >+ >+: ${salt_proxy_enable:=NO} >+: ${salt_proxy_paths=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin} >+: ${salt_proxy_eggcache=/tmp} >+ >+start_cmd=salt_proxy_start >+ >+command="%%PREFIX%%/bin/salt-proxy" >+command_interpreter="%%PYTHON_CMD%%" >+required_files="%%PREFIX%%/etc/salt" >+command_args="-c ${required_files} -d" >+ >+export PATH="${salt_minion_paths}" >+export PYTHON_EGG_CACHE="${salt_minion_eggcache}" >+ >+salt_proxy_start() >+{ >+ if [ -n "${salt_proxy_list}" ]; then >+ echo "${salt_proxy_list} is undefined" >+ return 1 >+ fi >+ >+ local _proxy >+ >+ for _proxy in ${salt_proxy_list}; do >+ echo "Starting salt-proxy: ${_proxy}" >+ ${command_interpreter} ${command} --proxyid ${_proxy} ${command_args} >+ done >+} >+ >+run_rc_command "$1" > >Property changes on: files/salt_proxy.in >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Index: files/salt_syndic.in >=================================================================== >--- files/salt_syndic.in (revision 398019) >+++ files/salt_syndic.in (working copy) >@@ -10,17 +10,18 @@ > > # Add the following to /etc/rc.conf[.local] to enable this service > # >-# salt_syndic_enable="YES" >+# salt_syndic_enable (bool): Set to NO by default. >+# Set it to YES to enable salt_syndic > # > > . /etc/rc.subr > >-name="salt_syndic" >+name=salt_syndic > rcvar=salt_syndic_enable > > load_rc_config ${name} > >-: ${salt_syndic_enable:="NO"} >+: ${salt_syndic_enable:=NO} > > command="%%PREFIX%%/bin/salt-syndic" > command_interpreter="%%PYTHON_CMD%%"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 203262
:
161275
|
161276
|
161407
| 161452