aboutsummaryrefslogtreecommitdiff
path: root/manifests/install.pp
blob: c7665ba89227aee608065062a0c8ba4c74859760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# = Class nfs::install
#
class nfs::install {

  case $::osfamily {
    'RedHat': {
      # Both client and server are installed using
      # a single package on RHEL

      if $::nfs::client or $::nfs::server {
        package { $::nfs::pkg_list_client:
          ensure => $::nfs::pkg_ensure;
        }
      }
    }

    'Debian': {
      # On Debian client and server packages are split.

      if $::nfs::client {
        package { $::nfs::pkg_list_client:
          ensure => $::nfs::pkg_ensure;
        }
      }

      if $::nfs::server {
        package { $::nfs::pkg_list_server:
          ensure => $::nfs::pkg_ensure;
        }
      }
    }

    default: {
      fail "Operating system ${::operatingsystem} is not supported yet."
    }
  }
}