Update .k5login with Puppet

223 views
Skip to first unread message

Dhaval

unread,
Jun 4, 2012, 1:43:00 AM6/4/12
to puppet...@googlegroups.com
Hi,

can you anyone suggest me how can i update .k5login to append new entry or
remove existing line

when i tried using

k5login { '/root/.k5login':
ensure => present,
path => '/root/.k5login',
principals => 'dha...@MYREALM.COM',
}

it completelty removes all lines form k5login and put above entry but how can i
append/remove entry to exsitng k5

Thanks,
Dhaval

Paul Tötterman

unread,
Jun 4, 2012, 8:43:45 AM6/4/12
to puppet...@googlegroups.com
Hi Dhaval,
 
can you anyone suggest me how can i update .k5login to append new entry or
remove existing line


Cheers,
Paul 

Steve Traylen

unread,
Jun 7, 2012, 6:52:52 PM6/7/12
to puppet...@googlegroups.com
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
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 ?
Reply all
Reply to author
Forward
0 new messages