Skip to content

Manages the pure-ftpd package with comprehensive configuration support'

License

Notifications You must be signed in to change notification settings

tisc0/puppet-pureftpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Joshua Hoblitt
Aug 6, 2013
72dc2e6 · Aug 6, 2013

History

45 Commits
Aug 6, 2013
Aug 6, 2013
Aug 6, 2013
Aug 2, 2013
Aug 2, 2013
Aug 2, 2013
Aug 4, 2013
Aug 2, 2013
Aug 2, 2013
Aug 5, 2013
Aug 6, 2013
Aug 4, 2013

Repository files navigation

Puppet pureftpd Module

Build Status

Description

This is a puppet module for installation and configuration of the pure-ftpd software.

Examples

Basic

Install pure-ftpd with an empty pure-ftpd.conf config file (accepting all defaults) and start pure-ftpd as a stand alone daemon.

class { 'pureftpd': }

Selinux support

class { 'pureftpd':
  use_selinux => true,
}

Setting configuration options

class { 'pureftpd':
  use_selinux => true,
  config      => {
    ipv4only         => 'Yes',
    passiveportrange => '49999:59999',
  }
}

Enabling LDAP authentication

class { 'pureftpd':
  use_selinux => true,
  config      => {
    ipv4only         => 'Yes',
    passiveportrange => '49999:59999',
  },
  config_ldap => {
    ldapserver      => 'ldap.example.com',
    ldapauthmethod  => 'PASSWORD',
    ldapport        => '389',
    ldapbinddn      => 'cn=Manager,dc=c9x,dc=org',
    ldapbindpw      => 'r00tPaSsw0rD',
    ldapbasedn      => 'cn=Users,dc=c9x,dc=org',
    ldapfilter      => '(&(objectClass=posixAccount)(uid=\L))',
    ldaphomedir     => 'homeDirectory',
    ldapversion     => '3',
    ldapdefaultuid  => '100',
    ldapdefaultgid  => '100',
    ldapusetls      => 'False',
    ldapauthmethod  => 'PASSWORD',
  }
}

Enabling PGSQL authentication

class { 'pureftpd':
  use_selinux => true,
  config      => {
    ipv4only         => 'Yes',
    passiveportrange => '49999:59999',
  },
  config_pgsql => {
    pgsqlserver         => 'localhost',
    pgsqlport           => '5432',
    pgsqluser           => 'postgres',
    pgsqlpassword       => 'rootpw',
    pgsqldatabase       => 'pureftpd',
    pgsqlcrypt          => 'cleartext',
    pgsqlgetpw          => 'SELECT Password FROM users WHERE User=\'\L\'',
    pgsqlgetuid         => 'SELECT Uid FROM users WHERE User=\'\L\'',
    pgsqldefaultuid     => '1000',
    pgsqlgetgid         => 'SELECT Gid FROM users WHERE User=\'\L\'',
    pgsqldefaultgid     => '1000',
    pgsqlgetdir         => 'SELECT Dir FROM users WHERE User=\'\L\'',
    pgsqlgetqtafs       => 'SELECT QuotaFiles FROM users WHERE User=\'\L\'',
    pgsqlgetqtasz       => 'SELECT QuotaSize FROM users WHERE User=\'\L\'',
    pgsqlgetratioul     => 'SELECT ULRatio FROM users WHERE User=\'\L\'',
    pgsqlgetratiodl     => 'SELECT DLRatio FROM users WHERE User=\'\L\'',
    pgsqlgetbandwidthul => 'SELECT ULBandwidth FROM users WHERE User=\'\L\'',
    pgsqlgetbandwidthdl => 'SELECT DLBandwidth FROM users WHERE User=\'\L\'',
  }
}

About

Manages the pure-ftpd package with comprehensive configuration support'

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 56.5%
  • Puppet 42.9%
  • HTML 0.6%