From owner-freebsd-current@FreeBSD.ORG Wed Jun 14 10:10:34 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9DD416A41B for ; Wed, 14 Jun 2006 10:10:34 +0000 (UTC) (envelope-from rabe@p-i-n.com) Received: from aposerv.p-i-n.com (aposerv.p-i-n.com [145.253.185.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3765243D46 for ; Wed, 14 Jun 2006 10:10:33 +0000 (GMT) (envelope-from rabe@p-i-n.com) Received: from p-i-n.com (inside.p-i-n.com [129.10.9.21]) by aposerv.p-i-n.com (8.12.11/8.12.11) with ESMTP id k5EAAVk0048938 for ; Wed, 14 Jun 2006 12:10:31 +0200 (CEST) (envelope-from rabe@p-i-n.com) Received: (from rabe@localhost) by p-i-n.com (8.11.6/8.11.6) id k5EAAP215679 for freebsd-current@freebsd.org; Wed, 14 Jun 2006 12:10:25 +0200 (CEST) (envelope-from rabe) Date: Wed, 14 Jun 2006 12:10:25 +0200 From: "Raphael H. Becker" To: freebsd-current@freebsd.org Message-ID: <20060614121025.D47362@p-i-n.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: PHOENIX Pharmahandel AG & Co KG, Mannheim, Deutschland Subject: jail__conf in /etc/rc.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 10:10:34 -0000 Hi *, having a jail-server and maintaining lots of jails may cause headache, when editing /etc/rc.conf. My idea is to define per-jail.conf files outside /etc/rc.conf. # ---- /etc/rc.conf ---- # Jail-defaults and stuff jail_enable="YES" jail_list="foo0 foo1 foo2 foo3 bar0 bar1 bar2 " jail_set_hostname_allow="NO" # per-Jail conf: jail_foo0_conf=/etc/jails/foo0.conf jail_foo1_conf=/etc/jails/foo1.conf jail_foo2_conf=/etc/jails/foo2.conf jail_foo3_conf=/etc/jails/foo3.conf [...] ... and in /etc/jails/foo0.conf jail_rootdir="/data/jails/foo0/" jail_hostname="foo0.example.org" jail_ip="192.168.0.10" jail_interface="fxp1" jail_exec_start="/bin/sh /etc/rc" jail_exec_afterstart0="/bin/sh command" ... This would make using conf-templates much easier and you don't need to do evil "script-magic" on /etc/rc.conf. This may fit into the latest /etc/rc.d/jail script: just look for $jail_foo0_conf first and use this .conf (if found). Any alternative solution getting something like this running? Regards Raphael Becker