proftpd

Puppet module for ProFTPd + proftpd mod MySQL
Jordi Duran i Batidor

Jordi Duran i Batidor

joduba

9,670 downloads

8,313 latest version

3.0 quality score

Version information

  • 0.0.5 (latest)
  • 0.0.4
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Jul 3rd 2019
This version is compatible with:
  • Ubuntu

Start using this module

Documentation

joduba/proftpd — version 0.0.5 Jul 3rd 2019

puppet-proftpd

Overview

This module enables and configures a proftpd FTP server instance.

  • proftpd : Enable and configure the proftpd FTP server

Examples

With all of the module's default settings :

include proftpd

Tweaking a few settings (have a look at manifests/init.pp to know which directives are supported as parameters) :

class { 'proftpd':
    serverName => "My FTPServer",
    timeoutNoTransfer => 900,
    timeoutStalled => 3600,
    timeoutIdle => 600,
    user => 'www-data',
    group => 'www-data',
    passivePorts=> '60000 60199',
    displayConnectContent => 'WARNING!!!

This web services are running with UTF-8 encoding.
Please verify that any published text file is UTF-8 encoded
to avoid any displaying errors.

Thank you',

}

For any directives which aren't directly supported by the module, use the additional directives hash parameter :

class { 'proftpd':
  serverName => "My FTPServer",
  directives  => {
    'Include' => '/etc/proftpd/virtuals.conf',
  },
}

Mod_SQL requires connection information to be passed to the resource

class { 'proftpd':
    serverName => "My FTPServer",
    timeoutNoTransfer => 900,
    timeoutStalled => 3600,
    timeoutIdle => 600,
    user => 'www-data',
    group => 'www-data',
    passivePorts=> '60000 60199',
    displayConnectContent => 'WARNING!!!

This web services are running with UTF-8 encoding.
Please verify that any published text file is UTF-8 encoded
to avoid any displaying errors.

Thank you',
    load_modules          => {
        mod_sql => {
            sqldbhost => "localhost",
            sqldbname => "ftpusers",
            sqldbuser => "ftpusers",
            sqldbpass => "mypassword",
        }
    }

For any directives which aren't directly supported by the module, use the additional directives hash parameter :

class { 'proftpd':
    serverName => "My FTPServer",
    timeoutNoTransfer => 900,
    timeoutStalled => 3600,
    timeoutIdle => 600,
    user => 'www-data',
    group => 'www-data',
    passivePorts=> '60000 60199',
    displayConnectContent => 'WARNING!!!

This web services are running with UTF-8 encoding.
Please verify that any published text file is UTF-8 encoded
to avoid any displaying errors.

Thank you',
    load_modules          => {
        mod_sql => {
            sqldbhost => "localhost",
            sqldbname => "ftpusers",
            sqldbuser => "ftpusers",
            sqldbpass => "mypassword",
            directives  => {
              'SQLUserWhereClause' => '"LoginAllowed = \'true\'"',
            },
        }
    }