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

nucleus-be/puppet-proftpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published