1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/net/foreman-proxy/files/foreman-proxy.in
Martin Matuska 1b7d97b184 The Foreman Smart Proxy is a project which provides a restful API to various
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
2014-01-29 11:46:59 +00:00

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"