Changes between Version 2 and Version 3 of Web/QuattorClientUsage
- Timestamp:
- Mar 21, 2010, 10:23:09 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Web/QuattorClientUsage
v2 v3 5 5 = Fetching profiles = 6 6 Quattor 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 }}} 7 10 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. 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'''. 12 12 13 13 = Configuring a node = 14 14 Quattor 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 {{{ 16 16 ncm-ncd --co accounts 17 17 }}} 18 18 This will also configure any components defined as pre- or post-dependencies. For example, the package manager spma is normally defined as a pre-dependency. 19 19 20 20 == Configuring all components == 21 21 To configure all components defined in the profile, use the <tt>-all</tt> flag to ncm-ncd: 22 22 {{{ 23 23 ncm-ncd --co -all 24 }}} 24 25 25 26 == Configuring a single component == 26 27 To prevent pre- and post-dependencies from being configured: 27 28 {{{ 28 29 ncm-ncd --co accounts --nodeps --autodeps no 30 }}} 29 31 30 32 = Query configuration = 31 33 To 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 {{{ 33 35 [root@client-node root]# ncm-query --co ccm 34 36 … … 52 54 $ retrieve_wait : (long) '30' 53 55 $ world_readable : (long) '1' 54 56 }}} 55 57 And here's an example of querying a specific path: 56 58 {{{ 57 59 [root@client-node root]# ncm-query --dump /hardware/harddisks/hda 58 60 … … 63 65 $ interface : (string) 'ide' 64 66 $ model : (string) 'Generic IDE disk' 67 }}} 65 68 66 69 = Package management = … … 72 75 73 76 spma is normally invoked via its controlling component: 74 77 {{{ 75 78 [root@client-node root]# ncm-ncd --co spma 76 79 … … 82 85 [OK] /usr/bin/spma --quiet finished succesfully (please check spma.log) 83 86 [INFO] configure on component spma executed, 0 errors, 0 warnings 84 85 This will (re)generate the package list ( /var/lib/spma-target.cf) from87 }}} 88 This will (re)generate the package list (`/var/lib/spma-target.cf`) from 86 89 the 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 fail90 inspecting spma's log file at `/var/log/spma.log`. SPMA runs may fail 88 91 due to dependency problems as it is very difficult to check 89 92 dependencies at the time the node templates are compiled. (You may