Changes between Version 8 and Version 9 of AnnotatedExamples


Ignore:
Timestamp:
06/01/10 05:51:21 (12 years ago)
Author:
http://fab.id.fedoraproject.org/
Comment:

xml for the xml parts

Legend:

Unmodified
Added
Removed
Modified
  • AnnotatedExamples

    v8 v9  
    1616Our example starts with the bare minimum configuration setup.  We have a client, a profile group, a list of packages, and a base configuration. 
    1717 
     18==== Metadata/clients.xml ==== 
     19 
    1820{{{ 
    19  # cat Metadata/clients.xml  
     21#!text/xml  
    2022 <Clients version='3.0'> 
    2123   <Client profile='fedora' pingable='N' pingtime='0' name='foo.bar.com'/> 
    2224 </Clients> 
     25}}} 
    2326 
    24  # cat Metadata/groups.xml  
     27==== Metadata/groups.xml ==== 
     28{{{ 
     29#!text/xml 
    2530 <Groups version='3.0'> 
    2631   <Group profile='true' name='fedora' toolset='rh'/> 
    2732 </Groups> 
     33}}} 
    2834 
    29  # cat Base/base.xml  
     35==== Base/base.xml ====  
     36 
     37{{{ 
     38#!text/xml 
    3039 <Base> 
    3140 <Group name='fedora'> 
     
    3342 </Group> 
    3443 </Base> 
    35  
    36  # cat Pkgmgr/packages.xml 
     44}}} 
     45==== Pkgmgr/packages.xml ==== 
     46{{{ 
     47#!text/xml 
    3748 <PackageList type='rpm' priority='0'> 
    3849   <Package name='ntp' version='4.2.0.a.20050816-11.FC5'/> 
     
    4253=== Add service === 
    4354 
    44 Configure the service, and add it to the base. 
     55Configure the service, and add it to the base. Add the content below to the `Svcmgr/services.xml` file.  
     56 
    4557{{{ 
    46  # cat Svcmgr/services.xml  
     58#!text/xml 
    4759 <Services priority='0'> 
    4860   <Service name='ntpd' status='on'/> 
    4961 </Services> 
     62}}} 
    5063 
    51  # cat Base/base.xml  
     64To the `Base/base.xml` file 
     65{{{ 
     66#!text/xml  
    5267 <Base> 
    5368   <Group name='fedora'> 
     
    6479 # cat Cfg/etc/ntp.conf/ntp.conf  
    6580 server ntp1.utexas.edu 
     81}}} 
    6682 
    67  # cat Base/base.xml  
     83And the `Base/base.xml` file 
     84 
     85{{{ 
     86#!text/xml 
    6887 <Base> 
    6988   <Group name='fedora'> 
     
    7594}}} 
    7695 
    77 === Ccreate a bundle === 
     96=== Create a bundle === 
    7897 
    7998The above configuration layout works fine for a single service, but that method of organization would quickly become a nightmare as you approach the number of packages, services, and config files required to represent a fully configured host.  Bundles allow the grouping of related configuration entries that are used to provide a single service. This is done for several reasons: 
     
    83102 * Services associated with a bundle get restarted whenever any entity in that bundle is modified. This ensures that new configuration files and software are used after installation. 
    84103 
    85 The config file, package, and service are really all related components describing the idea of an ntp client, so they should be logically grouped together.  We use a bundle to accomplish this. 
    86  
     104The config file, package, and service are really all related components describing the idea of an ntp client, so they should be logically grouped together.  We use a bundle to accomplish this. The bundle is located at `Bundler/ntp.xml` 
    87105{{{ 
    88  # cat Bundler/ntp.xml 
     106#!text/xml 
    89107 <Bundle name='ntp' version='2.0'> 
    90108   <Package name='ntp'/> 
     
    96114After this bundle is created, it must be associated with a group (or groups). Add a bundle child element to the group(s) which should install this bundle.  
    97115 
     116The `Metadata/groups.xml` file 
     117 
    98118{{{ 
    99  # cat Metadata/groups.xml 
     119#!text/xml 
    100120 <Groups> 
    101121...