Hello,
I have started designing katello interface that will return katello
templates in CDL format and would like to ask for more information about
CDL.
I am particularly interested in all the tags that can appear in the XML
document. Also all possible values that are currently accepted is a must
for me - e.g. os tag (which operating system and version combinations
are supported atm).
I already found few exampled which gave me pretty nice overview how it
looks like:
<template>
<name>f13 jeos</name>
<os name="fedora" version="13"/>
<description>Fedora 13</description>
<repos>
<
repo>http://repo.oddthesis.org/cirras/packages/fedora/13/RPMS/noarch/&...
</repos>
<packages>
<packagegroup>core</packagegroup>
<package><name>bash</name></package>
<package><name>kernel</name></package>
<package><name>grub</name></package>
</packages>
</template>
Let me describe current template in Katello. We associate template with
environment first, then users are able to add content to it (only using
CLI atm - no support in the UI):
- products (= 1 or more repositories)
- package (no package group support yet)
- erratum
- parameter
- foreman host group (not done yet - puppet classes definitions)
- parameters (for puppet classes)
Looking on the example above I have a nice match here:
CDL vs Katello
name = template name
description = description
os = product info
repos = products
packages = packages
package group = n/a
I guess we have all required information to build image template from
Katello, skipping package groups (we can add them later).
Opinions?
--
Later,
Lukas "lzap" Zapletal