Christian Horn wrote:
> 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.
>
Share it in it's flux-state if you don't mind ... we can work on
polishing it later.
A lot of contributions die because folks are waiting for them to be
perfect, where it's almost always better to get them out there and then
fix them in the open; and that can often result in other people helping
them along too.
--Michael
>
>
>> 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
>
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler