Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


proftpd-ii (6) Versions 0.5.2

Installs/Configures proftpd-ii

cookbook 'proftpd-ii', '= 0.5.2', :supermarket
cookbook 'proftpd-ii', '= 0.5.2'
knife supermarket install proftpd-ii
knife supermarket download proftpd-ii
Quality 43%

proftpd-ii Cookbook

Installs and configures ProFTPd Server ( and some of
its modules. It also setups configuration like Apache's scripts (
(eg. sites-available/sites-enabled`).

It provides an LWRP for easily deploying virtualhosts. It's recommended to
always use a vhost configuration instead of the default, global configuration.

The latest and greatest revision of this cookbook will always be available



The following cookbooks are dependencies for this:

  • yum-repoforge - needed to install RPM packages for proftpd.


The following platforms are supported and tested:

  • CentOS 6.7
  • CentOS 7.2

Chef Server

The recommended chef version is at least >= 11.0


To use the cookbook, you can just add the default recipe to the run_list. It
will install and configure the daemon. Then you can use attributes or LWRPs to
configure custom values and virtual hosts.

Helper Recipes

  • ldap.rb installs the LDAP module, enables it and provides a sample

  • sftp.rb installs the sFTP module, enables it and provides a sample

  • example_lwrp.rb provides some examples on using the LWRP resources.


Attributes are documented on attributes/default.rb file. This way I don't need
to duplicate definitions here and there :)



This cookbook includes proftpd_vhost LWRP which facilitates creating a new
virtual host. It also contains support for using notifies, so you can notify
the server to reload after some configuration changes.

For example, to use the proftpd_vhost:

# install first
include_recipe 'proftpd-ii'

# a normal ftp site
proftpd_vhost 'ftp' do
  enable true
  port 21
  notifies :restart, 'service[proftpd]', :delayed

# a tls and ldap-enabled site
proftpd_vhost 'ldap' do
  port 990
  debug_level 10
  auth_order 'mod_ldap.c'

  tls true
  tls_required true
  tls_cert /etc/proftpd/ssl/proftpd.crt.pem
  tls_key /etc/proftpd/ssl/proftpd.key.pem

  ldap true
  ldap_use_tls true
  ldap_server ''
  ldap_user_base_dn 'ou=users,dc=example,dc=com'
  ldap_user_filter '(uid=%u)'
  ldap_group_base_dn 'ou=groups,dc=example,dc=com'
  ldap_group_filter '(&(memberUid=%u)(objectclass=posixGroup))' 
  options = {
    'QueryTimeout' => 30,
    'ForceGeneratedHomedir' => 'on'
  ldap_extra_options options

  notifies :restart, 'service[proftpd]', :delayed

# sftp, if module enabled
proftpd_vhost 'sftp' do
  port 2222
  sftp true
  notifies :restart, 'service[proftpd]', :delayed

If you want to configure but not enable the virtual host, you can use
enable false on the LWRP definition.


Enables a module in the configuration.

It creates a LoadModule directive and puts it on mods-enabled directory.
For example, enabling some custom modules:

proftpd_module 'ldap'
proftpd_module 'sftp'

License and Author

Copyright 2016, Movile

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

yum-repoforge >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

proftpd-ii CHANGELOG

This file is used to list changes made in each version of the proftpd-ii cookbook.


  • Added TLSCertificateChainFile directive


  • Global section with all default server directives (#4)
  • Development: support for centos7 with docker on vagrant
  • Added CreateHome directive
  • sFTP package/example is optional since it's a custom package
  • Attribute explanations on attributes/default.rb


  • Added support for sFTP module and configuration


  • Added support for TLS configuration


  • Added support for LDAP module and configuration


  • Support for LWRPs


  • Initial release of proftpd-ii

Collaborator Number Metric

0.5.2 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

0.5.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Foodcritic Metric

0.5.2 failed this metric

FC009: Resource attribute not recognised: proftpd-ii/recipes/default.rb:39
Run with Foodcritic Version 12.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric

0.5.2 passed this metric

No Binaries Metric

0.5.2 passed this metric

Testing File Metric

0.5.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Version Tag Metric

0.5.2 passed this metric