Cover V10, I06


jun2001.tar


Listing 1 Example of hosts.conf

########################################################
#
# Configuration file for hosts definition in PICA
#
# $Id: hosts.conf,v 1.3 2001/02/08 14:58:50 cvs Exp $
#
# Miguel Armas <kuko@ulpgc.es>
# Esteban Manchado <zoso@ulpgc.es>
########################################################

defaults {
   ## ---- The following entries are MANDATORY ----
   picaroot = '/var/lib/pica';   # root dir of PICA cfg tree
   ssh      = '/usr/bin/ssh';    # ssh binary
   
   ## ---- Optional configuration entries ----
   diff     =  '/usr/bin/diff'; # diff binary for -f command
   method   =  'tar';           # distribution method (tar or ssh)
   tar      =  '/bin/tar';      # tar binary
   
   ## ---- Optional directory definitions ----
   #picaalrm = ''; # where to install the alarms (def: $picaroot/alarms)
   #picatmp  = ''; # PICA temp dir (def: $picaroot/tmp)
   picasrc = '/opt/SysAdm'; # Where to find the source files
   
   vars {
      ## ---- User defined variable ----
      docdir  = '/var/www/html/doc';
      picasrc = '/opt/SysAdm';
   }
}

###########################
# Host Group Definitions  #
###########################

## RedHat Linux Servers
hostgroup redhat {
    vars {
        method = 'rsync';
    }
    members { 
        fobos,
    deimos,
    mercurio
    }
}

## Solaris Servers
hostgroup solaris {
    vars {
        ssh = '/usr/local/bin/ssh';
    }
    members { 
    sar
    }
}

## DNS servers
hostgroup dnsservers {
    vars {
        dnsdir = '/var/named';
    }
    members { fobos, deimos, mercurio }
}

## Documentation servers
hostgroup doc {
    vars {
        docdir = '/var/named';
    }
    members { mercurio }
}

#####################
# Host Definitions  #
#####################

host mercurio {
    fqdn = mercurio.ulpgc.es;
    vars {
        docdir = '/home/httpd/html/doc';
    }
}

host sar;
host fobos;
host deimos;