Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Latest commit

 

History

History
110 lines (89 loc) · 2.4 KB

README.md

File metadata and controls

110 lines (89 loc) · 2.4 KB

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\'"',
		    },
	    }
    }