By thomas, Fri, 07/24/2009 - 00:07
If you want to be able to install groups of packages from your repository, you'll need to define those groups in a comps.xml file. The syntax of the comps.xml file is fairly straightforward. You define groups, then within a group you define if a package is mandatory, required or optional. For our example, we can create a "Local Client" group that will install puppet, func and augeas.
<comps>
<!--  <meta> -->
<!-- Meta information will go here eventually -->
<!--  </meta> -->
  <group>
    <id>localclient</id>
    <name>Local Client</name>
    <default>true</default>
    <description>Default RPMS from Local Clients</description>
    <uservisible>true</uservisible>
    <packagelist>
      <packagereq type="default">puppet</packagereq>
      <packagereq type="default">ruby-augeas</packagereq>
      <packagereq type="default">facter</packagereq>
      <packagereq type="default">func</packagereq>
    </packagelist>
  </group>
</comps>