Home | History | Annotate | Download | only in nfsgen
      1 #
      2 # CDDL HEADER START
      3 #
      4 # The contents of this file are subject to the terms of the
      5 # Common Development and Distribution License (the "License").
      6 # You may not use this file except in compliance with the License.
      7 #
      8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9 # or http://www.opensolaris.org/os/licensing.
     10 # See the License for the specific language governing permissions
     11 # and limitations under the License.
     12 #
     13 # When distributing Covered Code, include this CDDL HEADER in each
     14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15 # If applicable, add the following below this CDDL HEADER, with the
     16 # fields enclosed by brackets "[]" replaced with your own identifying
     17 # information: Portions Copyright [yyyy] [name of copyright owner]
     18 #
     19 # CDDL HEADER END
     20 #
     21 
     22 #
     23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 # ident	"@(#)config.vars	1.1	09/04/27 SMI"
     27 #
     28 
     29 #
     30 # Common variables for all setup
     31 #
     32 
     33 # Test client hostname
     34 export CLIENT=${CLIENT:-$(hostname)}
     35 
     36 # TX labled zone path
     37 export ZONE_PATH=${ZONE_PATH%%/}
     38 
     39 # Shared directory on server
     40 SHRDIR=${SHRDIR:-"/nfsgen_share"}
     41 export SHRDIR=${ZONE_PATH}${SHRDIR}
     42 
     43 # Mount point on client
     44 MNTDIR=${MNTDIR:-"/nfsgen_mount"}
     45 export MNTDIR=${ZONE_PATH}${MNTDIR}
     46 
     47 # Share group
     48 export SHRGRP=${SHRGRP:-"nfsgen_shgrp"}
     49 
     50 # Mount options
     51 export MNTOPT=${MNTOPT:-"rw"}
     52 
     53 # NFSv4 mapid domain
     54 export NFSMAPID_DOMAIN=${NFSMAPID_DOMAIN:-"sun.com"}
     55 
     56 # DEBUG variable for the suite
     57 export NFSGEN_DEBUG=\$NFSGEN_DEBUG
     58 
     59 # Temp directory
     60 SRV_TMPDIR=${STF_TMPDIR:-"/var/tmp"}
     61 STF_TMPDIR=${STF_TMPDIR:-$STF_CONFIG}
     62 DATETAG=$(date +"%y-%m-%d-%H-%M-%S" | sed 's/-//'g)
     63 STF_TMPDIR=$STF_TMPDIR/TMPDIR-nfsgen-$DATETAG
     64 SRV_TMPDIR=$SRV_TMPDIR/TMPDIR-nfsgen-$DATETAG
     65 export STF_TMPDIR
     66 
     67 # Test group
     68 export TGROUP=${TGROUP:-"nfsgengrp"}
     69 # Test user
     70 export TUSER01=${TUSER01:-"nfsgen01"}
     71 export TUSER02=${TUSER02:-"nfsgen02"}
     72 
     73 SETUP=${SETUP:-nfsv4}
     74 KRB5TOOLS_HOME=${KRB5TOOLS_HOME:-/opt/SUNWstc-krb5tools}
     75 
     76 # If the flag file is created, we don't need to cleanup krb5.
     77 KRB5_NO_CLEANUP_FILE=$STF_TMPDIR/nfsgen.krb5.no_cleanup
     78 
     79 # use the same password for all principals
     80 KPASSWORD=nfsgen
     81 
     82 STF_VARIABLES=" SERVER CLIENT ZONE_PATH SETUP SHRDIR SHRGRP SHROPT MNTDIR \
     83 		MNTOPT NFSMAPID_DOMAIN STF_TMPDIR TUSER01 TUSER02 TGROUP \
     84 		_NFS_STF_DEBUG NFSGEN_DEBUG CLIENT2 TestZFS SRV_TMPDIR \
     85 		KRB5TOOLS_HOME KRB5_NO_CLEANUP_FILE DNS_SERVER KPASSWORD \
     86 		DNS_DOMAIN SRV_DNS_DOMAIN CLT2_DNS_DOMAIN"
     87 
     88 STF_NOT_SAFE="  SERVER CLIENT ZONE_PATH SETUP SHRDIR SHRGRP SHROPT MNTDIR \
     89                 MNTOPT NFSMAPID_DOMAIN STF_TMPDIR TUSER01 TUSER02 TGROUP \
     90                 KRB5_NO_CLEANUP_FILE DNS_SERVER KPASSWORD DNS_DOMAIN \
     91                 SRV_DNS_DOMAIN CLT2_DNS_DOMAIN SRV_TMPDIR"
     92