/[fai]/trunk/examples/simple/class/LAST.var
ViewVC logotype

Contents of /trunk/examples/simple/class/LAST.var

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1906 - (show annotations) (download)
Tue Jul 15 09:27:22 2003 UTC (9 years, 11 months ago) by lange
File size: 1025 byte(s)
moved simple examples to new dir
1 #! /bin/bash
2
3 # this script defines FAI_ACTION but you can also use fai-chboot to set it
4 # Thomas Lange, feb 2003
5
6 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7 mktable() {
8
9 # Here, you have to add all your hosts
10 # This is the table: host -> action
11
12 cat <<-EOT
13
14 kueppers install
15 bigfoot sysinfo
16 pittermaennche install
17 EOT
18 }
19 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
20 getaction() {
21
22 while read host action; do
23 if [ X$HOSTNAME = X$host ]; then
24 echo $action
25 return
26 fi
27 done
28 }
29 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
30
31 act=$(mktable | getaction)
32 [ -n "$act" ] && FAI_ACTION=$act
33 unset mktable act getaction
34
35 # Define a default value for FAI_ACTION
36 # This can be a security hole, since a local will get a root shell if
37 # createvt was defined in FAI_FLAGS.
38 # Uncomment the next line if no default value is needed
39 [ -z "$FAI_ACTION" ] && FAI_ACTION=sysinfo
40 [ "$debug" ] && echo "FAI_ACTION now defined as $FAI_ACTION"
41

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5