- Overview
- Module Description - What the module does and why it is useful
- Usage
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Dependencies
- Contributors
Puppet module for the deployment of GNU .netrc
files. Supports Puppet3 & Puppet4
This module provides an easy way to manage and deploy machine credentials to user specific .netrc
files.
class { 'netrc':
user => 'myuser',
path => '/home/myuser/.netrc',
}
netrc::machine { 'ftp.foo.com':
netrc_path => '/home/myuser/.netrc',
login => 'remote_user',
password => 'hunter5',
}
netrc
: Top level configuration of.netrc
file
The following parameters are available in netrc
:
Required Owner of the .netrc
file to be created
Required Absolute path of the .netrc
file to be created.
Group of the .netrc
file to be created. Defaults to $user
The netrc
module has no private classes.
Represents the login details for a single machine entry in a .netrc
file
Required Remote machine which the credentials are for. Default: $name
Required Absolute path to the .netrc
file in which to store these credentials. Must be the same as that defined in the netrc
resource
Required Username on remote machine
Required Password on remote machine
- Supports only one
.netrc
file per machine
netrc
module depends on the following
List of contributors can be found at: https://github.com/code-management/netrc/graphs/contributors