summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobert Gogolok <gogo@cs.uni-sb.de>2007-06-08 15:53:17 +0000
committerRobert Gogolok <gogo@cs.uni-sb.de>2007-06-08 15:53:17 +0000
commite734f9117d3d81447bec3a1e8681c29c70686432 (patch)
tree676220944f154604eceb21b46f2b730250646245 /src
parent7de10d0a917b3f83f1803bfd72f37509544cf814 (diff)
downloadbcfg2-e734f9117d3d81447bec3a1e8681c29c70686432.tar.gz
bcfg2-e734f9117d3d81447bec3a1e8681c29c70686432.tar.bz2
bcfg2-e734f9117d3d81447bec3a1e8681c29c70686432.zip
bcfg2-admin: FreeBSD selection
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3273 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-admin20
1 files changed, 12 insertions, 8 deletions
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 = '''
<Group profile='true' public='false' name='basic'>
<Group name='%s'/>
</Group>
- <Group name='ubuntu' toolset='debian'/>
- <Group name='debian' toolset='debian'/>
- <Group name='redhat' toolset='rh'/>
- <Group name='suse' toolset='rh'/>
+ <Group name='ubuntu' toolset='debian'/>
+ <Group name='debian' toolset='debian'/>
+ <Group name='freebsd' toolset='freebsd'/>
+ <Group name='gentoo' toolset='gentoo'/>
+ <Group name='redhat' toolset='rh'/>
+ <Group name='suse' toolset='rh'/>
<Group name='mandrake' toolset='rh'/>
- <Group name='solaris' toolset='solaris'/>
- <Group name='gentoo' toolset='gentoo'/>
+ <Group name='solaris' toolset='solaris'/>
</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)