Commit cb1ef5c5 authored by Andreas Kempe's avatar Andreas Kempe
Browse files

workstation: factor out NIS to its own class

To prepare for LDAP support, NIS is factored out into its own class.
parent dccb9292
class freebsd::nis {
file { '/etc/auto_master':
ensure => file,
source => 'puppet:///modules/freebsd/nis/auto_master',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file { '/etc/nsswitch.conf':
ensure => file,
source => 'puppet:///modules/freebsd/nis/nsswitch.conf',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file { '/etc/krb5.conf':
ensure => file,
source => 'puppet:///modules/freebsd/nis/krb5.conf',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file { '/etc/pam.d/sshd':
ensure => file,
source => 'puppet:///modules/freebsd/nis/pam.sshd',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file { '/etc/pam.d/system':
ensure => file,
source => 'puppet:///modules/freebsd/nis/pam.system',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file { '/etc/pam.d/su':
ensure => file,
source => 'puppet:///modules/freebsd/nis/pam.su',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file_line { 'Set nisdomain':
path => '/etc/rc.conf',
line => 'nisdomainname="lysator"',
}
file_line { 'Enable nis client':
path => '/etc/rc.conf',
line => 'nis_client_enable="YES"',
}
file_line { 'Set nis flags':
path => '/etc/rc.conf',
line => 'nis_client_flags="-s -m -S lysator,nis.lysator.liu.se,nis-slave.lysator.liu.se"',
}
file_line { 'Enable autofs':
path => '/etc/rc.conf',
line => 'autofs_enable="YES"',
}
file { '/etc/autofs/include_yp':
ensure => file,
source => 'puppet:///modules/freebsd/nis/include_yp',
owner => 'root',
group => 'wheel',
mode => '0744',
}
file { '/etc/autofs/include':
ensure => 'link',
target => '/etc/autofs/include_yp',
}
}
......@@ -174,54 +174,6 @@ class freebsd::workstation inherits freebsd::base {
ensure => installed,
}
file { '/etc/auto_master':
ensure => file,
source => 'puppet:///modules/freebsd/workstation/auto_master',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file { '/etc/nsswitch.conf':
ensure => file,
source => 'puppet:///modules/freebsd/workstation/nsswitch.conf',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file { '/etc/krb5.conf':
ensure => file,
source => 'puppet:///modules/freebsd/workstation/krb5.conf',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file { '/etc/pam.d/sshd':
ensure => file,
source => 'puppet:///modules/freebsd/workstation/pam.sshd',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file { '/etc/pam.d/system':
ensure => file,
source => 'puppet:///modules/freebsd/workstation/pam.system',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file { '/etc/pam.d/su':
ensure => file,
source => 'puppet:///modules/freebsd/workstation/pam.su',
owner => 'root',
group => 'wheel',
mode => '0644',
}
file { '/etc/ssh/ssh_config':
ensure => file,
source => 'puppet:///modules/freebsd/workstation/ssh_config',
......@@ -260,44 +212,11 @@ class freebsd::workstation inherits freebsd::base {
line => 'dbus_enable="YES"',
}
file_line { 'Set nisdomain':
path => '/etc/rc.conf',
line => 'nisdomainname="lysator"',
}
file_line { 'Enable nis client':
path => '/etc/rc.conf',
line => 'nis_client_enable="YES"',
}
file_line { 'Set nis flags':
path => '/etc/rc.conf',
line => 'nis_client_flags="-s -m -S lysator,nis.lysator.liu.se,nis-slave.lysator.liu.se"',
}
file_line { 'Enable autofs':
path => '/etc/rc.conf',
line => 'autofs_enable="YES"',
}
file_line { 'Enable slim login manager':
path => '/etc/rc.conf',
line => 'slim_enable="YES"',
}
file { '/etc/autofs/include_yp':
ensure => file,
source => 'puppet:///modules/freebsd/workstation/include_yp',
owner => 'root',
group => 'wheel',
mode => '0744',
}
file { '/etc/autofs/include':
ensure => 'link',
target => '/etc/autofs/include_yp',
}
# Set default Xorg keyboard layout to Swedish.
file { '/usr/local/etc/X11/xorg.conf.d/keyboard.conf':
ensure => file,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment