I have started designing katello interface that will return katello
templates in CDL format and would like to ask for more information about
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
<os name="fedora" version="13"/>
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)
- 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).
Lukas Zapletal | E32E400A
RHN Satellite Engineering
Red Hat Czech s.r.o. Brno
i wanted to do this for a long time, and finally got it it. See the link
below for an essay on RESTful API design, based on lessons learnt from
From the intro: "This is essay is an attempt to put down my thoughts on
how to design a real-world yet beautiful RESTful API." It goes into such
topics as JSON vs XML, why not XMLSchema, creating CLIs, and more.
Mark, it also contains a worked out version of your idea to use forms
for describing inputs.
Feedback is welcome!
Even with html_safe provider account xml output was wrong - there were whitespaces
in x509 certificate and imagefactory failed with error:
Traceback (most recent call last):
File "/usr/bin/euca-bundle-vol", line 492, in <module>
File "/usr/bin/euca-bundle-vol", line 467, in main
File "/usr/lib/python2.7/site-packages/euca2ools/__init__.py", line 994, in generate_manifest
user_pub_key = X509.load_cert(cert_path).get_pubkey().get_rsa()
File "/usr/lib64/python2.7/site-packages/M2Crypto/X509.py", line 611, in load_cert
File "/usr/lib64/python2.7/site-packages/M2Crypto/X509.py", line 639, in load_cert_bio
This patch is quite dirty, I'm sure there is a nice way how to tweak rails' 'to_xml' method or
use xml builder template but I didn't find a way how to use it properly.