Skip to content
Snippets Groups Projects
Commit 423acdc7 authored by Andreas Kempe's avatar Andreas Kempe
Browse files

ldap: move netgroup config to separate modules

Move the netgroup configuration to separate modules to allow different
configuration for different systems.
parent 824e1895
No related branches found
No related tags found
No related merge requests found
...@@ -15,17 +15,6 @@ class freebsd::ldap { ...@@ -15,17 +15,6 @@ class freebsd::ldap {
mode => '0644', mode => '0644',
} }
file_line { 'Allow normal user login':
path => '/etc/master.passwd',
line => '+:::::::::',
notify => Exec['Update /etc/passwd'],
}
exec { 'Update /etc/passwd':
command => '/usr/sbin/pwd_mkdb -p /etc/master.passwd',
refreshonly => true,
}
file { '/etc/krb5.conf': file { '/etc/krb5.conf':
ensure => file, ensure => file,
source => 'puppet:///modules/freebsd/ldap/krb5.conf', source => 'puppet:///modules/freebsd/ldap/krb5.conf',
......
class freebsd::ldap::root {
file_line { 'Allow normal user login':
path => '/etc/master.passwd',
line => '+@root::::::::/var/empty:/bin/tcsh',
notify => Exec['Update /etc/passwd'],
}
file_line { 'Allow normal user login':
path => '/etc/master.passwd',
line => '+:::::::::',
notify => Exec['Update /etc/passwd'],
}
exec { 'Update /etc/passwd':
command => '/usr/sbin/pwd_mkdb -p /etc/master.passwd',
refreshonly => true,
}
}
class freebsd::ldap::user {
file_line { 'Allow normal user login':
path => '/etc/master.passwd',
line => '+:::::::::',
notify => Exec['Update /etc/passwd'],
}
exec { 'Update /etc/passwd':
command => '/usr/sbin/pwd_mkdb -p /etc/master.passwd',
refreshonly => true,
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment