1 # RDE Puppet Base config
3 # This is the base class for all machines.
13 file { '/etc/defaultdomain':
14 path => '/etc/defaultdomain',
19 notify => Service['nis/client'],
22 service { 'nis/domain':
26 notify => Service['nis/client'],
29 nsswitch { 'nsswitch':
31 automount => 'files nis',
34 host => 'files dns nis',
35 netgroup => 'files nis',
36 password => 'files nis',
37 notify => [Service['nis/client'], Service['autofs']],
40 service { 'nis/client':
44 notify => Service['autofs'],
47 service { 'dns/client':
54 #nameserver => ['10.100.13.21', '10.100.13.22'],
55 nameserver => ['10.100.0.10', '10.100.0.30'],
56 domain => 'gddsi.com',
57 search => ['gddsi.com'],
58 notify => [Service['dns/client'], Service['autofs']],
66 path => '/etc/inet/ntp.conf',
70 source => 'puppet:///modules/rde/ntp.conf',
71 notify => Service['ntp']
80 service { 'rpc/bind': ensure => 'running', }
82 service { 'zones-proxy-client':
88 # I'm not sure if this is needed on clients. It was needed for
89 # the NIS server and slave.
91 fmri => 'svc:/network/rpc/bind',
92 property => 'config/local_only',
101 notify => Service['rpc/bind'],
104 service { 'sendmail':
110 if ($hostname = 'rdeadm1') {
111 file_line { 'sendmail_relay':
113 path => '/etc/mail/sendmail.cf',
114 line => 'DSsmtp-west.gd-ms.us.',
115 notify => Service['sendmail'],
118 file_line { 'sendmail_relay':
120 path => '/etc/mail/sendmail.cf',
121 line => 'DSrdeadm1.gddsi.com',
122 notify => Service['sendmail'],
127 fmri => 'svc:/network/smtp:sendmail',
128 property => 'config/local_only',
131 notify => Service['sendmail'],
134 file { '/etc/passwd':
146 file { '/etc/shadow':
154 comment => 'NIS Master',
155 ip => '10.100.13.21',
160 comment => 'NIS Slave',
161 ip => '10.100.13.22',
169 source => 'puppet:///modules/rde/motd',
173 path => '/etc/issue',
177 source => 'puppet:///modules/rde/issue',
181 path => '/etc/sudoers.d/admins',
185 content => "+ccadms ALL=(ALL) ALL\np2282c ALL=(ALL) NOPASSWD:ALL\nhn06511 ALL=(ALL) NOPASSWD:ALL\n",
188 # Add "+" to /etc/group
189 file_line { 'groups':
190 path => '/etc/group',
195 # Add "+" to /etc/shadow
196 file_line { 'shadow':
197 path => '/etc/shadow',
202 # Everybody mounts these
203 file_line { 'vob_storage',
205 path => '/etc/vfstab',
206 line => 'muosrdenas1:/rdevob1 - /rdevob1 nfs - yes -',
208 file_line { 'view_storage',
210 path => '/etc/vfstab',
211 line => 'muosrdenas1:/rdeview1 - /rdeview1 nfs - yes -',
214 if ($hostname == 'rdevob1' || $hostname == 'rdevob2') {
215 file_line { 'transfer':
217 path => '/etc/vfstab',
218 line => 'muosrdenas1:/transfer - /transfer nfs - yes -',
220 file_line { 'rdevob2',
222 path => '/etc/vfstab',
223 line => 'muosrdenas1:/rdevob2 - /rdevob2 nfs - yes -',
227 if ($hostname == 'rdevob1') {
228 file_line { 'export',
230 path => '/etc/vfstab',
231 line => 'muosrdenas1:/export - /export nfs - yes -',
235 if ($hostname == 'rdevob1') {
236 file_line { 'rdeview2',
238 path => '/etc/vfstab',
239 line => 'muosrdenas1:/rdeview2 - /rdeview2 nfs - yes -',
243 $std_packages = ['vim', 'gvim', 'tcsh', 'xauth', 'xclock', 'xterm', 'top', 'rdesktop', 'firefox', 'telnet', 'git', 'expect', 'make', 'gcc', 'motif', 'libxp']
245 package { $std_packages: