Hi all.
I want to write module for kerberos configuration. I planned configure
realms by using subclasses like in saz-sudo module:
...
### Adding sudoers definition (includes installation of sudo)
sudo::conf { ''admins'':
priority => 10,
content => ''%admins ALL=(ALL) NOPASSWD: ALL'',
}
...
But this module just createing file in sudoers.d directory. krb5.conf
did not provide ''include'' directive, so i need to manage whole
file.
First i want to use augeas for this purposes, but find that augeas
supplied with debian squeeze have troubles with krb5.conf.
File have next structure:
[section1]
option1 = value
option2 = value
[section2]
option3 = value
option4 = value
For example configuration of two realms looks like:
[realms]
ATHENA.MIT.EDU = {
kdc = kerberos.mit.edu:88
kdc = kerberos-1.mit.edu:88
kdc = kerberos-2.mit.edu:88
admin_server = kerberos.mit.edu
default_domain = mit.edu
}
MEDIA-LAB.MIT.EDU = {
kdc = kerberos.media.mit.edu
admin_server = kerberos.media.mit.edu
}
[domain_realm]
.mit.edu = ATHENA.MIT.EDU
mit.edu = ATHENA.MIT.EDU
.media.mit.edu = MEDIA-LAB.MIT.EDU
media.mit.edu = MEDIA-LAB.MIT.EDU
Anybody have idea, how i can manage krb5.conf without augeas?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Steve Traylen
2012-Jan-26 18:00 UTC
Re: [Puppet Users] Question about puppet module development
On Jan 26, 2012, at 12:03 PM, Spirit wrote:> Hi all. > I want to write module for kerberos configuration. I planned configure > realms by using subclasses like in saz-sudo module: ><snip>> > Anybody have idea, how i can manage krb5.conf without augeas? >The following uses the concat module to manage a krb5.conf file. http://cern.ch/go/vSK8 Steve. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Reasonably Related Threads
- [LLVMdev] CommandLine: using cl::Positional with enum
- [LLVMdev] CommandLine: using cl::Positional with enum
- [LLVMdev] CommandLine: using cl::Positional with enum
- [LLVMdev] CommandLine: using cl::Positional with enum
- [LLVMdev] CommandLine: using cl::Positional with enum