Christian Horn wrote:
> Hi,
>
> for RHEL we set the dns-domain of systems using
> --hostname=host.domain.tld and are done.
> Searchdomains and nameservers are also handled by the cobbler-
> provided snippets just fine.
>
> For SLES the autoyast.xml file expects a value for the hostname
> _without_domain_ and the domain in a separate field / separate
> xml-tags.
>
> Ultimate goal is ofcourse to use the --hostname syntax for both,
> but this would require me to separate hostname and domainname
> for filling it into the autoyast.xml file.
> Didnt get this done, only seen string.replace which works fine
> to strip off/replace known strings, but not to strip off the
> while domain.
>
> For now we do this for SLES: --hostname=host and --ksmeta=
> 'dnsdomain=my.domain.tld' and fill this into the autoyast.xml.
>
> Someone having a nicer idea? I.e. using shellcode (so 'sed'
> here) in the snippets that is used when generating the
> kickstartfile for the system would help.
> There is some regex-replace in cheetah, needs 'import re',
> but i failed getting this to run.
>
>
> Christian
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>
Lots of the network config snippets need to be ported to other
distros. This hasn't been done yet. It does seem you could get by
with splitting the string in the snippets.
You should not need regexen, but only (first, rest) = mystring.split(":",1)
The list of whitelisted modules is in settings, IIRC, though I thought
it was already whitelisted. Including arbitrary modules in Cheetah
templates is a security hole so we have some code to prevent that.
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler