Changes between Version 2 and Version 3 of Web/QuattorClientUsage


Ignore:
Timestamp:
Mar 21, 2010, 10:23:09 AM (14 years ago)
Author:
loomis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Web/QuattorClientUsage

    v2 v3  
    55= Fetching profiles =
    66Quattor configuration information is stored in configuration profiles, which are XML files retrieved from a server (normally over HTTP/S). Profiles are usually fetched at regular intervals from the server. If you want to manually pull down a profile on a node, use the following command:
     7{{{
     8 [root@client-node root]# ccm-fetch
     9}}}
    710
    8  [root@client-node root]# ccm-fetch
    9 
    10 
    11 If this command returns almost immediately, then the profile is up to date. If it takes a little longer, then a new profile is being fetched. To force the profile to be retrieved from the server, use the -f flag to ccm-fetch.
     11If this command returns almost immediately, then the profile is up to date. If it takes a little longer, then a new profile is being fetched. To force the profile to be retrieved from the server, use the -f flag to '''ccm-fetch'''.
    1212
    1313= Configuring a node =
    1414Quattor configuration is performed by '''components''' which are named ncm-<component-name>. Examples are ncm-accounts which configures the user accounts on the system. Components are configured like this:
    15 
     15{{{
    1616 ncm-ncd --co accounts
    17 
     17}}}
    1818This will also configure any components defined as pre- or post-dependencies. For example, the package manager spma is normally defined as a pre-dependency.
    1919
    2020== Configuring all components ==
    2121To configure all components defined in the profile, use the <tt>-all</tt> flag to ncm-ncd:
    22 
     22{{{
    2323 ncm-ncd --co -all
     24}}}
    2425
    2526== Configuring a single component ==
    2627To prevent pre- and post-dependencies from being configured:
    27 
     28{{{
    2829  ncm-ncd --co accounts --nodeps --autodeps no
     30}}}
    2931
    3032= Query configuration =
    3133To find out what the currently-active profile contains, use the ncm-query command. You can either query by component name, or by path in the tree. Here's an example of querying the configuration of a component:
    32 
     34{{{
    3335 [root@client-node root]# ncm-query --co ccm
    3436 
     
    5254   $ retrieve_wait : (long) '30'
    5355   $ world_readable : (long) '1'
    54 
     56}}}
    5557And here's an example of querying a specific path:
    56 
     58{{{
    5759 [root@client-node root]# ncm-query --dump /hardware/harddisks/hda
    5860 
     
    6365   $ interface : (string) 'ide'
    6466   $ model : (string) 'Generic IDE disk'
     67}}}
    6568
    6669= Package management =
     
    7275
    7376spma is normally invoked via its controlling component:
    74 
     77{{{
    7578 [root@client-node root]# ncm-ncd --co spma
    7679 
     
    8285 [OK] /usr/bin/spma --quiet finished succesfully (please check spma.log)
    8386 [INFO] configure on component spma executed, 0 errors, 0 warnings
    84 
    85 This will (re)generate the package list (/var/lib/spma-target.cf) from
     87}}}
     88This will (re)generate the package list (`/var/lib/spma-target.cf`) from
    8689the profile and run spma. If this procedure fails, you can see why by
    87 inspecting spma's log file at /var/log/spma.log. SPMA runs may fail
     90inspecting spma's log file at `/var/log/spma.log`. SPMA runs may fail
    8891due to dependency problems as it is very difficult to check
    8992dependencies at the time the node templates are compiled. (You may