mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
1b7d97b184
sub-systems. Its goal is to provide API for a higher level orchestration tools (such as Foreman). The Smart proxy provides an easy way to add or extended existing subsystems and API's. Currently supported are: DHCP - ISC DHCP and MS DHCP Servers DNS - Bind and MS DNS Servers TFTP - any UNIX based tftp server Puppet - Any Puppet server from 0.24.x Puppet CA - Manage certificate signing, cleaning and autosign on a Puppet CA server BMC - BMC management etc WWW: http://theforeman.org
29 lines
692 B
Bash
29 lines
692 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: foreman-proxy
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable foreman-proxy:
|
|
# foreman_proxy_enable (bool): Set to "NO" by default
|
|
# Set it to "YES" to enable nsca.
|
|
. /etc/rc.subr
|
|
|
|
name="foreman_proxy"
|
|
rcvar="foreman_proxy_enable"
|
|
|
|
command="%%PREFIX%%/sbin/smart-proxy"
|
|
command_interpreter="%%RUBY%%"
|
|
pidfile="%%FOREMAN_PROXY_RUNDIR%%/foreman-proxy.pid"
|
|
|
|
foreman_proxy_enable=${foreman_proxy_enable:-"NO"}
|
|
foreman_proxy_user=${foreman_proxy_user-"%%FOREMAN_PROXY_USER%%"}
|
|
|
|
load_rc_config "${name}"
|
|
|
|
required_files="%%PREFIX%%/etc/foreman-proxy/settings.yml"
|
|
|
|
run_rc_command "$1"
|