Skip to content

Puppet module for managing NFS. Based on old version of camptocamp module.

License

Notifications You must be signed in to change notification settings

gnubila-france/puppet-nfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-nfs

Puppet Forge Build Status

Puppet module for managing NFS.

Ports are static and hardcoded, firewall configuration too. PR welcome :)

Based on old version of camptocamp/puppet-nfs module.

Dependencies

You have to configure your puppetmaster so that exported ressources will work.

Examples

Client node

  node "my-nfs-client" {
    include nfs::client
    nfs::mount {"my mounted one":
      share      => '/srv/nfs/myshare',
      mountpoint => '/mnt/nfs/myshare',
      ensure     => present,
      server     => "nfs.mydomain.ltd",
    }

    nfs::mount {"my unwanted one":
      share      => '/srv/nfs/myshare',
      mountpoint => '/mnt/nfs/myshare',
      ensure     => absent,
      server     => "nfs.mydomain.ltd",
    }
  }

Server node

  node "my-nfs-server" {
    include nfs::server
    nfs::export { 'NFS export':
      share   => '/mnt/nfs/share',
      options => 'rw,no_root_squash',
      guest   => 'xxx.xxx.xxx.*',
    }
  }

Documentation

http://reductivelabs.com/trac/puppet/wiki/ExportedResources