On Tuesday, 5 June 2012 06:25:23 UTC+2, Dhaval wrote:
>
>
> On Monday, June 4, 2012 6:13:45 PM UTC+5:30, Paul Tötterman wrote: 
>>
>> Hi Dhaval,
>>  
>>
>>> can you anyone suggest me how can i update .k5login to append new entry 
>>> or 
>>> remove existing line 
>>>
>>
>>
Hi Dhaval,

 This is not what you asked for exactly but might do the job, it allows you 
to 
build up a k5login from a  collection of distinct places in your manifests.

 We manage k5login now with file snippets (bits) from a custom define, 
 e.g  the following works for us:

  kerberos::k5enty{'steve':}
  kerberos::k5entry{['ralph','john']:}

The definition is here http://pastie.org/4047068 and the trivial template
here, http://pastie.org/4047074/

Can you use the file_line type in puppet stdlib? 
>> https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/type/file_line.rb
>>
>>
Using the file_line type makes sense  for this file format, I will probably 
switch to it.

 

> Cheers,
>> Paul 
>>
>  
>  
> Thanks Paul,
>  
> i am bit new to Puppet, can you guide me how can i use this template file, 
> some example will help me a lot, Do i need to learn ruby as well for using 
> such type of templates ?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/f_t6SfVugf0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to