LAUS 0.21

LAUS is a Linux automated update service software.
LAUS is a Linux automated update service software. LAUS helps to admin a lot of workstations by automating updates. LAUS consists of:

· a script which runs during startup and does the hard work
· compiler to ease the definition of tasks

DEFINITIONS

server name of server
laus username on server

Files:

laus.skel script for init runlevel
to be called with "start"

laus.sh command do get & execute commands from server

laus.pl command compiler
used to create laus-actions

*sample example input for laus.pl

laus-actions script copied from server and executed by the client

INSTALLATION:

1) create user laus on server
home is /var/laus or something else but then you have to adjust all scripts
only laus (and root) should be able to access this directory
laus doesn't need to login
create a directory data (~laus/data)
this is the place to put all files to be transfered
adjust servername (LAUSHOST) in laus.pl & copy to a bin directory
create an empty ~laus/data/laus-actions file
create directory ~laus/.ssh to hold ssh keys (see below)

example:
DIR=/var/laus
mkdir $DIR
useradd -c "LAUS admin user" -d $DIR -p "*" -s /bin/false laus
chmod 770 $DIR
chown laus.root $DIR
mkdir $DIR/data
mkdir $DIR/.ssh

EDIT laus.pl
cp laus.pl /usr/bin
echo "echo LAUS" > ~laus/data/laus-actions

2) create files on client
decide where to but the work files - /var/laus is a good place
only root should be able to access this directory
create directory log to hold log file and state to hold flags
copy laus.sh to /usr/sbin and add the file laus.skel to be called
adjust servername (LAUSHOST) in laus.sh
during startup (with network already running): laus.skel start

Example:

DIR=/var/laus
mkdir $DIR
chmod 700 $DIR
mkdir $DIR/log
mkdir $DIR/state

EDIT laus.sh
cp laus.sh /usr/sbin

cd /etc/rc.d
cp ~/laus/laus.skel laus
(cd rc2.d; ln -s ../laus S90laus)
(cd rc3.d; ln -s ../laus S90laus)
(cd rc5.d; ln -s ../laus S90laus)


3) setup ssh

on the client
if you haven't done this by now: create a ssh key and copy it to
user laus on the server
don't use a passphrase (just return)
"ssh laus@server" should work without passwd

[ -e $HOME/.ssh/identity.pub ] || ssh-keygen
scp $HOME/.ssh/identity.pub
root@server:/var/laus/.ssh/authorized_keys
# the next command should work without errors
scp laus@server:data/laus-actions .

use rsa/dsa keys for ssh2:
add options to ssh-keygen
-t rsa or
-t dsa
use .ssh/id_dsa.pub or .ssh/id_dsa.pub instead of identity.pub

4) check setup

create laus-actions on server
Call laus.sh on the client. This should copy the laus-actions file
from the server and execute it

on server:
echo "do echo LAUS - nothing to do" | laus.pl > ~laus/data/laus-actions

on client:
laus.sh

USAGE:

Put everything into the script laus-actions on the server this will be copied and executed by the clients laus.pl helps to create good scripts.

COMPILER

laus.pl converts simple commands to shells scripts:

all files are copied from ~/laus/data on server using ssh/scp includes logging to log/laus.log

Usage:

1) laus.pl < actions.laus > /var/laus/data/laus-actions

2) you can also translate "on the fly" by calling laus.pl in
laus-actions: use

last updated on:
November 21st, 2007, 17:37 GMT
price:
FREE!
developed by:
August Hörandl
homepage:
elina.htlw16.ac.at
license type:
GPL (GNU General Public License) 
category:
ROOT \ System \ System Administration

FREE!

In a hurry? Add it to your Download Basket!

user rating 15

3.3/5
 

0/5

Add your review!

SUBMIT