[prev in list] [next in list] [prev in thread] [next in thread] 

List:       infrastructures
Subject:    [Infrastructures] locconf, one more system configuration tool
From:       aleksandar pantelic <a_pantelic () yahoo ! com>
Date:       2005-03-16 14:40:15
Message-ID: 20050316144016.71550.qmail () web20421 ! mail ! yahoo ! com
[Download RAW message or body]

Greetings all,

I finished developing a system configuration tool I called
locconf.  Locconf is a tool used to configure a system after
an automatic install (or manual install) or even to perform the install
and to update, repair and change the system during its lifetime.  
The goal is to make all changes (system and application level) on the gold
server and let locconf apply them (so the sys admin(s) do not need
to edit any config files and/or run any config commands on the target 
system).

Files and scripts that locconf applies are organized into packages.
Packages support the os, hardware and host specifics; multiple sites are
also supported with the master and local pkgs.  Even the systems that 
can not directly access the gold server are supported.

locconf's cli:
locconf -h
usage:
 locconf -instal|-upgrade [-force_upgrade]|-remove|-fix|-verify|-info
         [-prepare_pkg [-inst_during_startup|-transfer <host>|
          -inst_on_remote <host>|
          -inst_on_remote_during_startup <host>] [-full]]
         [-osrev <osrev> ] [-hw <hw> ] [-host <host[.<domain>]>]
          [-ip <ip>]
         [-f] [-R <dir>] [-v] [-testview]
         all | <pkg> [pkgN] | <dir/file> [<dirN/fileN>]

 locconf -inst_prepared [<file>] [-v]

sample pkg layout:
restrictlogin pkg
 pre
 post
 pkg_conf
 pkg_conf2
 ALL/SunOS/etc/nsswitch.conf.script
 ALL/SunOS/local/sys/restrictlogindoc
 ALL/SunOS/etc/passwd.script
 ALL/SunOS/etc/shadow.script
 cadadmin/SunOS/etc/passwd.script
 cadadmin/SunOS/etc/shadow.script
 mailadmin/SunOS/etc/passwd.script
 mailadmin/SunOS/etc/shadow.script

pkg_conf file:
LOCCONF_HOST
lic1|compsrv1|compsrv2: cadadmin
mailsrv-.*: mailadmin

pkg_connf2:
LOCCONF_OSREV
SunOS.*: SunOS

so pkg_conf and pkg_conf2 are used to select the appropriate dirs
(locconf will set LOCCONF* env vars, admins can also add the custom vars),
and files from the selected dirs are copied and scripts (<file>.script)
are executed (they usually edit the existing files).

Sample Master/Remote site setup:
Master site:
master repository (pkgs)
 bind9 fw1
prod repository
 bind9_local
test repository
 bind9 fw1 bind9_local
Remote site:
master (read only)
 bind9 fw1
prod
 bind9_local fw1_local tex
test
 bind9_local fw1_local tex

few cli examples:
locconf -install -R /a -osrev SunOS-5.8 -host foo bind9
LOCCONF_NETCARD=3com locconf -install -prepare_pkg -inst_on_remote fw2b 
 -host fw2b  -os SunOS-5.9 -R /d2 -v bind9
locconf -remove -R /a -osrev SunOS-5.8 -host foo -v bind9 gdb
locconf -info -host serv4 -testview all
locconf -verify -v -R /disk2 -host srv3 /etc/passwd /etc/shadow
locconf -upgrade -osrev SunOS-5.8 -R /a all
locconf -upgrade all
locconf -install -R /a all
locconf -fix -host serv2 -v -f all

I posted locconf and scripts.pl (simple perl scripts) and notes.txt and
post_swinst.txt (just plain text) at

http://www.geocities.com/a_pantelic/locconf

start with notes.txt.html

I consider this software and documentation "beta" so all comments are
welcome.

-ap

_______________________________________________
Infrastructures mailing list
Infrastructures@mailman.terraluna.org
http://mailman.terraluna.org/mailman/listinfo/infrastructures
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic