IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 1 and Version 2 of IPPConfigSystem


Ignore:
Timestamp:
Aug 11, 2009, 3:27:15 PM (17 years ago)
Author:
jhoblitt
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IPPConfigSystem

    v1 v2  
     1The IPP "config system" is a few adhoc scripts that have evolved over time out of necessity.  The basics theory of the system is that there are lots of configuration files that are "common" between various different "groups" of nodes.  Where a "group" may be a complete subset or superset of another group. For example, there are some configuration that are global to all IPP nodes, some that are site specific (Manoa, MHPCC, etc.), and yet others that are restricted to a smaller group of machines, like the database nodes at MHPCC.
     2
     3The current tree heiracry looks like this (defined in ''.mountunionrc'').
     4
     5
     6{{{
     7- common
     8    - manoa
     9        - common
     10            - nodes
     11    - mops
     12        - common
     13            - nodes
     14    - mhpcc
     15        - common
     16            - common-db
     17                - nodes-db
     18            - nodes
     19}}}
     20
     21As an example of ipp022, everything in the directory common{/etc} is part of union of common{/etc} & manoa/common{/etc} & manoa/nodes/ipp022{/etc} directories.  This gets mounted as a unionfs mount under the directory union/ipp022.  If a duplicate file exists in any of the directories "lower" down in the union order, the lowest version will overide the parrent.  For example; the file maona/nodes/ipp022/etc/hosts will override the file common/etc/hosts in the composite union mount.
     22
     23The basic commands are:
     24 * ''mountunion'' : mount all possible unions under the dir union
     25 * ''mountunion -u'' : unmount all unions
     26 * ''push <bsd glob>'' : push the configs out to these hosts, for example ''./push ippdb??''
     27 * ''addmountchain'' : UNFINISHED - updates .mountunionrc file but the structure pushed into this file currently lives inline in the code -- edit the code and run the util to update the .rc file
     28
     29There is also a Makefile with a number of useful targets in it, such as:
     30
     31 * ssh_known_hosts : collect the ssh keys from all known hosts (defined in ssh_key_hosts.txt) and dup the results into the common dir
     32 * wave1 / wave2 / wave 3 : groups of hosts at MHPCC to push too
     33 * mhpcc : calls wave1, wave2, wave3
     34
     35New hosts can be added to the system with the ''fetch.*'' scripts which need to be updated for each major grouping of machines as the host specific files are kept in different dirs for each site.
     36
     37----
     38'''An example of editing the common /etc/mysql/my.cnf for the ippdbXX machines at MHPCC.'''
     39
    140Setup ssh-agent, [http://www.google.com/search?q=ssh-agent].
    241