<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><font class="Apple-style-span" face="arial" size="2">For me, there's a difference between "software management," and "systems management." &nbsp;There may be other conventions, but this is my personal view of things, and there often are not clear lines of distinction.</font><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">Software management is *directly* tied to "software package management," (or more generally, "package management."). &nbsp;Every major Linux, BSD and several UNIX distributions (e.g. Solaris, AIX) all use some sort of package management. &nbsp;Every "program" or closely tied collection of programs, along with supporting files (documentation, sample configuration, etc) is bundled into a single package. &nbsp;The idea is that everything in that package should be treated at
 install/uninstall time as single unit. &nbsp;There's usually little the documentation for a program you don't have, and the sample configuration files are useless without something to actually parse them.</div><div style="font-family: arial; font-size: 10pt; "><br></div><div><font class="Apple-style-span" face="arial" size="2">Let's say you want install the best email client on the planet: &nbsp;Mutt. &nbsp;The package for Mutt on my home system includes the /usr/bin/mutt binary, a basic configuration file, three other supporting programs (which all deal with encrypting email), translation files for 29 languages, and a host of documentation.&nbsp;</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">Mutt does a lot of things, including connecting to email servers, handling encrypted email, keeping caches of read email files, etc. &nbsp;Most of these tasks are
 handed by other libraries, and not by Mutt directly. &nbsp;So in order to use Mutt, you need them installed,&nbsp;because&nbsp;Mutt is useless without them (or severely limited, at least). &nbsp;</font></div><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">At the same time, many packages contain *only* library files that are used by other programs. &nbsp;Things like libc, curses and openssl are like this, and have their own packages, even though they may not have any "programs" that are used directly. &nbsp;If you remove the curses library package, Mutt (among other programs) will cease to work. &nbsp;If you the glibc package, your entire system will probably come to a crashing halt, and getting it running again will not be pleasant.</div><div><font class="Apple-style-span" face="arial" size="2">At the same time,</font></div><div><font class="Apple-style-span" face="arial"
 size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">To deal with the problems in these two examples, package&nbsp;management&nbsp;systems have a concept of dependencies between packages. &nbsp;The "mutt" package has requirements for glibc, libcurses and a host of other packages. &nbsp;If those packages are not present on the system already, then the "mutt" package will not install. &nbsp;On the other hand, if you try to remove the "libcurses" package, the package manager should refuse to do so because there are other programs installed (such as Mutt) that require that package for operation. &nbsp;(There are, of course, administrative overrides for all this, but I'm not going to deal with them now.)</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">Good package management programs (which almost all Linux and BSD distributions now
 have) will either resolved the dependencies at installation time ("You asked for Mutt to be installed, but you also need to install libcurses as well. &nbsp;Do you want to install both?") or warn you that something else requires the program you asked to remove ("You requested that libcurses be removed, but Mutt requires it. &nbsp;Do you want to remove both?"). &nbsp;This ability is a wonderful thing, especially when setting new systems, since you can just list the "end programs" that you want to actually use, instead of those programs, plus all of their many&nbsp;dependencies.</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">Now, software/package management is really one aspect of a much broader systems management category. Bundling and installing "mutt" is a software management task.
 &nbsp;Configuring a usable workstations is a much higher-level task, which includes sub-tasks like "install and configure an email client" (which can have sub-sub-tasks like "install mutt" and "create appropriate /etc/Muttrc file"). &nbsp;Systems configuration also can include things like "install package X, resolving and installing all dependencies as needed," or "mount an NFS share," or "at system install time, partition the hard disks thusly," or "install NTP, configure it to start at boot, use 3 different external NTP servers, automatically restart if the /etc/ntpd.conf file changes, and punch firewall rules to allow client connections from designated subnets." &nbsp;(All four of these examples are things I have cfengine do across a few hundred boxes at $day_job.)<br><br></font></div><div></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">So to actually answer
 your questions...</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">I'd start with something simple. &nbsp;A "base" install of some sort. &nbsp;On RPM based systems, there's a&nbsp;procedure&nbsp;called "kickstart", which allows you to automate installations. &nbsp;Included in kickstart installs is the ability to include a list of programs. &nbsp;The program will automatically resolve the dependencies for you, and install everything you need.</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">You will only need to create your own packages if you need software that is not included in the base distribution. &nbsp;For example at $day_job, I use a program called "multitail"[1] that is not included in the main distrubution. &nbsp;I've compiled and created an RPM for it,
 and install that package on all of my systems. &nbsp;But I don't have to do that for GCC, since there is already a package for it.</font></div><div><div><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">You do not need to rebuild the packages each time you make a change.</div><div style="font-family: arial; font-size: 10pt; "><br></div><div><font class="Apple-style-span" face="arial" size="2">There are several ways to distribute packages. &nbsp;The simplest way is to copy them to the "client" systems and install them directly. &nbsp;This can be done with an NFS mount, over HTTP, or ssh--it doesn't really matter. &nbsp;If you find that you have a lot of custom packages, you may want to consider creating and running your own package repository, and&nbsp;configuring&nbsp;you systems to use that, just like you would any other software repository. &nbsp;There is a program called "mrepo"[2] that
 does this, but it sounds like this would be a "stage 3" sort of thing...</font></div><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">One nice thing about using a repository is that your systems configuration program (cfengine, puppet, chef) can then make use of your built-in package tools to handle all of the grunt work of installing packages. &nbsp;For my cfengine-based systems, I simply add the package to a list, and it will be installed (if possible) the next time the policy is executed.</div><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">The configuration management programs do not *directly* handle the software packages, but they will direct other programs to do this. &nbsp;On Debian systems they will call apt-get, while on RPM systems they will call RPM or YUM as appropriate.</div><div style="font-family: arial;
 font-size: 10pt; "><br></div><div><font class="Apple-style-span" face="arial" size="2">The other place that systems&nbsp;management&nbsp;comes into play here is actually configuring the programs after installation. &nbsp;For example, if you are building an small collection of web servers, it is not enough to merely install the "httpd" package. &nbsp;You also need to properly edit the configuration files to use the proper hostnames, lock down security, load the proper modules, etc. &nbsp;While you can edit five different files on ten different hosts, it will get tedioius very quickly. &nbsp;</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">Instead, you write rules for your cfg.mngt. program that say (roughly speaking): &nbsp;"make sure that these 5 files stored on the policy host are copied to all the web servers, and restart apache if, and only if, any of the
 files are updated".</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">This does several things. &nbsp;First, it makes sure that you don't forget to edit one of the 50 different files you need to check &nbsp;by mistake (5 files on 10 hosts). &nbsp;Second, it allows you to automate certain actions based on conditional events--restart the webservers, but *only* when you have to. &nbsp;Lastly, it does introduce a new layer of complexity--managing your configuration management tool can be a bit of work, it's true. &nbsp;But the time invested is *far* better spent that duplicating the same sequence of tasks on&nbsp;multiple&nbsp;systems by hand.</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">Hope this answered at least a few of the questions...it's a big
 topic.</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">[1]&nbsp;http://www.vanheusden.com/multitail/<br>[2]&nbsp;http://dag.wieers.com/home-made/mrepo/</div><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">-- <br>
Jesse Becker<br><br>--- On <b>Mon, 9/5/11, Calvin Pryor <i>&lt;calvinpryor@gmail.com&gt;</i></b> wrote:<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div id="yiv1003031739"><div class="yiv1003031739gmail_quote">On Mon, Sep 5, 2011 at 10:41 AM, Jesse Becker <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:jesse_becker@yahoo.com" target="_blank" href="/mc/compose?to=jesse_becker@yahoo.com">jesse_becker@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="yiv1003031739gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit;"><div>I'd also suggest learning to build RPM/DEB packages as well. &nbsp;That let's you easily encapsulate and distribute programs to multiple machines, but that's probably a "stage 2" sort of thing.</div>
</td></tr></tbody></table></blockquote><div><br></div><div>Jesse you are reading my mind. My next question was going to be how to abstract the software from the hardware, so we can set up a master system with all the packages we want, then push these packages to the rest of the boxes.&nbsp;</div>
<div><br></div><div>How can we replicating packages ? If I add/remove packages from the "master", can these changes be propagated to the rest of the lab automatically ? Or would I have to rebuild the "master package" after all changes are made, and push out this new package manually ? Or are changes in the packages handled by one of the tools you already mentioned (puppet, cfengine, chef) ? Since you also suggested&nbsp;learning&nbsp;how to build packages, I'm guessing&nbsp;puppet/cfengine/chef does not handle the software packages ? &nbsp;</div>
<div><br></div><div>Looking at this&nbsp;<a rel="nofollow" target="_blank" href="http://en.wikipedia.org/wiki/Configuration_management">http://en.wikipedia.org/wiki/Configuration_management</a>&nbsp;sounds like&nbsp;&nbsp;puppet/cfengine/chef is "<span class="yiv1003031739Apple-style-span" style="font-family:sans-serif;line-height:19px;background-color:rgb(255, 255, 255);">Computer hardware configuration management" and package replication is "software configuration management" ? but the link makes the software stuff seem more like what developers would use ?&nbsp;</span></div>
<div><span class="yiv1003031739Apple-style-span" style="font-family:sans-serif;line-height:19px;background-color:rgb(255, 255, 255);"><br></span></div><div><span class="yiv1003031739Apple-style-span" style="font-family:sans-serif;line-height:19px;background-color:rgb(255, 255, 255);"><br>
</span></div><div><span class="yiv1003031739Apple-style-span" style="font-family:sans-serif;line-height:19px;background-color:rgb(255, 255, 255);"><br></span></div><span class="yiv1003031739Apple-style-span" style="font-family:sans-serif;font-size:13px;line-height:19px;background-color:rgb(255, 255, 255);"><div>
<span class="yiv1003031739mw-headline" id="yiv1003031739Computer_hardware_configuration_management"><br></span></div></span><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>UFO Chicago -- Users of Free Operating Systems<br>Free Software Rules -- Proprietary Drools!<br><a href="http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/ufo" target="_blank">http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/ufo</a></div></blockquote></div></div></div></td></tr></table>