netrc

Puppet .netrc management

code-management

codemanagement

19,492 downloads

17,684 latest version

4.1 quality score

Version information

  • 0.1.2 (latest)
  • 0.1.1
  • 0.1.0
released Jun 17th 2016
This version is compatible with:
  • Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.2.0 < 5.0.0
  • Debian
    ,
    Ubuntu
    ,
    RedHat

Start using this module

Documentation

codemanagement/netrc — version 0.1.2 Jun 17th 2016

Build
Status

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Usage
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Dependencies
  7. Contributors

Overview

Puppet module for the deployment of GNU .netrc files. Supports Puppet3 & Puppet4

Module Description

This module provides an easy way to manage and deploy machine credentials to user specific .netrc files.

Usage

class { 'netrc':
   user => 'myuser',
   path => '/home/myuser/.netrc',
}

netrc::machine { 'ftp.foo.com':
   netrc_path => '/home/myuser/.netrc',
   login      => 'remote_user',
   password   => 'hunter5',
}

Reference

Classes

Public Classes

  • netrc: Top level configuration of .netrc file
Parameters

The following parameters are available in netrc:

user

Required Owner of the .netrc file to be created

path

Required Absolute path of the .netrc file to be created.

group

Group of the .netrc file to be created. Defaults to $user

Public Classes

The netrc module has no private classes.

Types

netrc::machine

Represents the login details for a single machine entry in a .netrc file

Parameters
machine

Required Remote machine which the credentials are for. Default: $name

netrc_path

Required Absolute path to the .netrc file in which to store these credentials. Must be the same as that defined in the netrc resource

login

Required Username on remote machine

password

Required Password on remote machine

Limitations

  • Supports only one .netrc file per machine

Dependencies

netrc module depends on the following

Contributors

List of contributors can be found at: https://github.com/code-management/netrc/graphs/contributors