cookbook 'basic_vsftpd', '~> 0.1.4'
basic_vsftpd (4) Versions 0.1.4 Follow0
Installs/Configures vsftpd package
cookbook 'basic_vsftpd', '~> 0.1.4', :supermarket
knife supermarket install basic_vsftpd
knife supermarket download basic_vsftpd
basic_vsftpd Cookbook
A basic cookbook to install and configure the vsftpd package.
All vsftpd configuration options can be set using this cookbook,
and no "helpful" defaults are provided.
See Attributes for details.
Supported platforms
This cookbook has only been tested for Ubuntu 14.04.
Testing/adding support for other platforms is encouraged. See Contributing.
Recipes
default
This recipe:
* installs the vsftpd package
* renames the original vsftpd.conf file to vsftpd.conf.orig for reference
* creates a new vsftpd.conf configuration file
from node['basic_vsftpd']['config']['...']
attributes
* if node['basic_vsftpd']['config']['user_config_dir']
is set, creates an empty user config directory
* enables and starts the vsftpd
service
chroot_list
Creates a chroot_list file for vsftpd from node attributes.
See [Other attributes](@other-attributes) for details.
If you don't want to use this recipe, you can create the chroot_list file manually.
userlist
Creates a userlist file for vsftpd from node attributes.
See [Other attributes](@other-attributes) for details.
If you don't want to use this recipe, you can create the userlist file manually.
Resources
user_conf
This resource creates a user configuration file in the vsftpd user_config_dir directory.
Properties:
* user, string, name property, the name of the user
* content, string, the content of the user config file
Actions:
* :create, :delete
Note: This resource requires the node['basic_vsftpd']['config']['user_config_dir']
attribute to be set and for the directory to exist.
Attributes
vsftpd config attributes
Only two vsftpd configuration attributes are set by default.
The default values are the same as the vsftpd defaults,
and are set only to make the defaults available to the node.
* node['basic_vsftpd']['config']['chroot_list_file'], default: '/etc/vsftpd.chroot_list'
* node['basic_vsftpd']['config']['userlist_file'], default: '/etc/vsftpd.user_list'
To set other vsftpd.conf attributes
```
string attributes:
default['basic_vsftpd']['config']['option_name'] = 'string_option_value'
YES/NO attributes
default['basic_vsftpd']['config']['yesno_option_name'] = 'YES' # or 'NO'
numeric attributes
default['basic_vsftpd']['config']['numeric_option_name'] = 12345
default['basic_vsftpd']['config']['numeric_option_name'] = '12345' # also OK
```
Note: When setting node['basic_vsftpd']['config'][...]
attributes using Ruby,
each should be set individually, not all at once using a Ruby hash. That is,
```
Yes
default['basic_vsftpd']['config']['option1'] = 'setting1'
default['basic_vsftpd']['config']['option2'] = 'setting2'
NO!
default['basic_vsftpd']['config'] = {
'option1' => 'setting1',
'option2' => 'setting2'
}
```
Other attributes
- node['basic_vsftpd']['chroot_list'], default: [ ], used by the chroot_list recipe, list of user names to fill vsftpd's chroot_list file.
- node['basic_vsftpd']['userlist'], default: [ ], used by the userlist recipe, list of user names to fill vsftpd's userlist file.
Requirements
Contributing
Examples:
Often the real trick is in configuring vsftpd,
for a specific application,
but that's outside the scope of this cookbook.
Please consider documenting useful configuration examples
by adding a page to the wiki.
Code:
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Author: Tom Wilson (tom at rollnorocks.com)
Copyright (C) 2015, Tom Wilson
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
basic_vsftpd CHANGELOG
0.1.4
- README update only
0.1.3
- Keep original vsftpd.conf file on system for reference
0.1.2
- Updates to metadata comments for supermarket
0.1.1
- Added Travis CI support
- Cosmetic changes to license, headers, and readme.
0.1.0
- Initial release of basic_vsftpd
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
0.1.4 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.4 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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.4 passed this metric
No Binaries Metric
0.1.4 passed this metric
Testing File Metric
0.1.4 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 https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.4 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.4 failed this metric
0.1.4 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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.4 passed this metric
No Binaries Metric
0.1.4 passed this metric
Testing File Metric
0.1.4 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 https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.4 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.4 passed this metric
0.1.4 passed this metric
Testing File Metric
0.1.4 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 https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.4 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.4 failed this metric
0.1.4 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number