From e734f9117d3d81447bec3a1e8681c29c70686432 Mon Sep 17 00:00:00 2001 From: Robert Gogolok Date: Fri, 8 Jun 2007 15:53:17 +0000 Subject: bcfg2-admin: FreeBSD selection git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3273 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-admin | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src/sbin/bcfg2-admin') diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin index 6dc4319e1..969f7f2b0 100755 --- a/src/sbin/bcfg2-admin +++ b/src/sbin/bcfg2-admin @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python '''bcfg2-admin is a script that helps to administrate a bcfg2 deployment''' import getopt, difflib, logging, lxml.etree, os, popen2, re, socket, sys, ConfigParser @@ -46,13 +46,14 @@ groups = ''' - - - - + + + + + + - - + ''' clients = ''' @@ -70,6 +71,7 @@ d. Debian e. Ubuntu f. Solaris g. Gentoo +h. FreeBSD ''' def err_exit(emsg): @@ -123,7 +125,7 @@ def initialize_repo(cfile): while ( selection == '' ): print prompt selection = raw_input(" selection: ") - if selection.lower() not in 'abcdefg': + if selection.lower() not in 'abcdefgh': selection = '' if selection.lower() == 'a': selection = 'redhat' @@ -139,6 +141,8 @@ def initialize_repo(cfile): selection = 'solaris' elif selection.lower() == 'g': selection = 'gentoo' + elif selection.lower() == 'h': + selection = 'freebsd' open("%s/Metadata/groups.xml"%repo, "w").write(groups%selection) -- cgit v1.2.3-1-g7c22