On Thu, May 21, 2009 at 08:28:34AM -0400, Michael DeHaan wrote:
> Christian Horn wrote:
> >
> > 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.
>
> Lots of the network config snippets need to be ported to other
> distros. This hasn't been done yet.
Should contribute our suse-stuff, but its still much in the flux
currently.
> 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)
#if re.match('.*\..*', $hostname)
## there is a domain in $hostname
#set ($myhost,$mydomain) = $hostname.split(".",1)
<hostname>$myhost</hostname>
<domain>$mydomain</domain>
#else
## there is no domain in $hostname
<hostname>$hostname</hostname>
<domain>site</domain>
#end if
This works perfectly now, so we can use the same syntax for
rhel and sles again.
Thanks a bunch, Christian
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler