Aaron Lippold wrote:
> Hay Mike,
>
> Dan is working with me on the generalization stuff for my project. I
> still have to set him up with a cobbler server so he has been doing it
> mostly on a Ubuntu box. I will get him going tomorrow with that. Where
> is the link to the patch process again?
>
> Thanks,
>
> Aaron
>   

https://fedorahosted.org/cobbler/wiki/PatchProcess


> On Tue, Jul 29, 2008 at 4:09 PM, Michael DeHaan <[EMAIL PROTECTED]> wrote:
>   
>> Dan G wrote:
>>     
>>> OK, hotmail sucks! Please see below. hopefully this time with proper line 
>>> breaks.
>>> ________________________________
>>>
>>>       
>>>> From: [EMAIL PROTECTED]
>>>> To: [email protected]
>>>> Subject: Snippet with generalized functions
>>>> Date: Mon, 28 Jul 2008 18:26:37 -0500
>>>>
>>>> Attached is a snippet that makes use of cheetah methods. These are similar 
>>>> to some of the functionality that the Solaris SST offers. They basically 
>>>> encapsulate many (usually obscure) sed commands into handy functions.
>>>>
>>>>         
>>> $set_config_value('/etc/login.defs', 'LOGIN_RETRIES', 3)
>>>
>>> is more readable than:
>>>
>>> perl -npe 's/^([ \t]*$LOGIN_RETRIES[ \t]+)[\x21-\x7E]*([ 
>>> \t]*(#.*)?)$/\${1}3\${2}/' -i '/etc/login.defs'
>>>
>>> and the perl (sed) command doesn't take into account the possibility that 
>>> LOGIN_RETRIES may not already be present in the file. The use of a function 
>>> makes kickstart templates more readable and helps avoid errors.
>>>
>>> Because of the utility of these functions, I would suggest they be 
>>> distributed with cobbler, possibly as 'built-in' methods.
>>>
>>> Development note: although I have tested that these functions do not cause 
>>> any Cheetah errors, I have not tested the resulting kickstarts in an actual 
>>> provision. They may still cause errors on the client side :( .
>>>
>>> ~
>>> Dan
>>>
>>>
>>>       
>>>> ________________________________
>>>> With Windows Live for mobile, your contacts travel with you. Connect on 
>>>> the go.
>>>>
>>>>         
>>> _________________________________________________________________
>>> With Windows Live for mobile, your contacts travel with you.
>>> http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_mobile_072008
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> cobbler mailing list
>>> [email protected]
>>> https://fedorahosted.org/mailman/listinfo/cobbler
>>>
>>>       
>> Dan,
>>
>> Neat.   Do you have a patch to cobbler to make this automatically
>> available to all cobbler templates?   Something like this might be
>> interesting.
>>
>> Basically I think it's just an edit to templar.py to insert the include
>> at the top of all the templates, and we could ship it in
>> /etc/cobbler/cheetah.includes or something?
>>
>> I'm also interested in your generalization of Snippet inclusion with the
>> "Advanced Snippet" functionality down to Cheetah functions, as that
>> function is something we could also include in that file.
>>
>> --Michael
>>
>> _______________________________________________
>> cobbler mailing list
>> [email protected]
>> https://fedorahosted.org/mailman/listinfo/cobbler
>>
>>     
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to