2 if ($::kernel == 'Linux' and $::is_virtual and $::virtual == 'kvm') {
4 $grub_do_kernel_serial = true
5 $grub_do_grub_serial = true
6 $grub_do_ifnames = true
7 } elsif $::hostname in [ubc-enc2bl01,ubc-enc2bl02,ubc-enc2bl09,ubc-enc2bl10,casulana,mirror-anu,sallinen,storace,mirror-accumu,bm-bl1,bm-bl2,bm-bl3,bm-bl4,bm-bl5,bm-bl6,bm-bl7,bm-bl8,bm-bl9,bm-bl10,bm-bl11,bm-bl12,bm-bl13,bm-bl14] {
9 $grub_do_kernel_serial = true
10 $grub_do_grub_serial = true
11 } elsif $::hostname in [mirror-skroutz,aagaard,acker,arm-arm-01,fasolo] {
13 $grub_do_kernel_serial = true
14 $grub_do_grub_serial = true
15 } elsif $::hostname in [acker,arm-arm-03] {
17 $grub_do_kernel_serial = true
18 $grub_do_grub_serial = false
23 $grub_do_nopat = $::hostname in [ubc-enc2bl01,ubc-enc2bl02,ubc-enc2bl09,ubc-enc2bl10,casulana,mirror-anu,sallinen,storace,mirror-accumu,bm-bl1,bm-bl2,bm-bl3,bm-bl4,bm-bl5,bm-bl6,bm-bl7,bm-bl8,bm-bl9,bm-bl10,bm-bl11,bm-bl12,bm-bl13,bm-bl14]
24 $grub_do_extra = $::hostname in [fasolo]
27 file { '/etc/default/grub':
29 source => 'puppet:///modules/grub/etc-default-grub',
30 notify => Exec['update-grub']
33 file { '/etc/default/grub.d':
39 source => 'puppet:///files/empty/',
42 file { '/etc/default/grub.d/puppet-grub-serial.cfg':
43 ensure => $grub_do_kernel_serial ? { true => 'present', default => 'absent' },
44 content => template('grub/puppet-grub-serial.cfg.erb'),
45 notify => Exec['update-grub']
48 file { '/etc/default/grub.d/puppet-kernel-serial.cfg':
49 ensure => $grub_do_grub_serial ? { true => 'present', default => 'absent' },
50 content => template('grub/puppet-kernel-serial.cfg.erb'),
51 notify => Exec['update-grub']
54 file { '/etc/default/grub.d/puppet-net-ifnames.cfg':
55 ensure => $grub_do_ifnames ? { true => 'present', default => 'absent' },
56 content => template('grub/puppet-net-ifnames.cfg.erb'),
57 notify => Exec['update-grub']
60 file { '/etc/default/grub.d/puppet-kernel-nopat.cfg':
61 ensure => $grub_do_nopat ? { true => 'present', default => 'absent' },
62 content => template('grub/puppet-kernel-nopat.cfg.erb'),
63 notify => Exec['update-grub']
66 file { '/etc/default/grub.d/puppet-kernel-extra.cfg':
67 ensure => $grub_do_extra ? { true => 'present', default => 'absent' },
68 content => template('grub/puppet-kernel-extra.cfg.erb'),
69 notify => Exec['update-grub']
75 path => '/usr/bin:/usr/sbin:/bin:/sbin',