Puppet Class: motd::params

Defined in:
manifests/params.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/params.pp', line 1

class motd::params() {
  case $::osfamily {
    'debian': {
      case $::lsbdistcodename {
        'precise', 'trusty': {
          $motd_file = '/etc/motd.tail'
        }
        default: {
          $motd_file = '/etc/motd'
        }
      }
    }
    'redhat': {
      $motd_file = '/etc/motd'
    }
    default: {
      fail("Unsupported osfamily ${::osfamily}")
    }
  }
}