aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: f4cf65556dfd32836787e48698e382339e64d549 (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
39
40
41
42
43
44
45
46
47
48
# Puppet NFS

## Requirements

* [concat module](https://github.com/ripienaar/puppet-concat)

## Tested on...

* Debian 5 (Lenny)
* Debian 6 (Squeeze)
* CentOS 6

## Example usage

### Install NFS client tools

    node /box/ {
      include nfs
    }

### Install NFS client and server

    node /box/ {
      class { 'nfs':
        server => true;
      }
    }

### Export NFS shares

    node /box/ {
      class { 'nfs':
        server => true;
      }

      nfs::export { '/srv/nfs01 10.0.1.1/24':
        export_directory => '/srv/nfs01',
        export_target    => '10.0.1.1/24',
        export_options   => 'rw,sync,no_root_squash',
      }

      nfs::export { '/srv/nfs01 10.0.2.1/24':
        export_directory => '/srv/nfs01',
        export_target    => '10.0.2.1/24',
        export_options   => 'rw,sync,no_root_squash',
      }
    }