Forge Home


Puppet module for NIS management


8,333 latest version

2.3 quality score

Version information

  • 0.3.0 (latest)
  • 0.2.0
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Sep 4th 2015

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'desalvo-nis', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add desalvo-nis
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install desalvo-nis --version 0.3.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



desalvo/nis — version 0.3.0 Sep 4th 2015


Puppet module for managing NIS clients and servers.

Table of Contents

  1. Overview - What is the NIS module?
  2. Usage


This module is a simple collection of configurations to set up a nis master/slave or client.



  • ypdomain: the NIS domain name
  • ypserv: the NIS server, can be a single value or an array
  • ypmaster: the NIS master, for server configurations
  • client: enable the client configuration, default is true
  • server: enable the server configuration, default is false
  • master: enable the a master server if true or a slave one if false
  • groups: enable group login via NIS. Default is none.
  • securenets: securenets file to be used
  • hostallow: list of hosts to allow for portmap/rpcbind

Defining a nis client

class {'nis':
    ypdomain => 'mydomain',
    ypserv   => ['',''],
    groups   => ['users'],

Defining a nis slave

class {'nis':
    ypdomain   => 'mydomain',
    ypserv     => '',
    ypmaster   => '',
    master     => true,
    securenets => 'puppet:///modules/mymodule/securenets',
    hostallow  => ['','192.168.0.*'],
    groups     => ['users'],


Release Notes


  • Add puppet 4 support
  • Fix ypserv directive in templates


  • Add multiple nis servers support


  • Fix the nis auth enable procedure


  • Using custom augeas lenses to edit /var/yp/nicknames


  • Initial version