Giter Club home page Giter Club logo

vsftpd-formula's Introduction

vsftpd-formula

Travis CI Build Status Semantic Release

Formula to set up and configure vsftpd.

See the full SaltStack Formulas installation and usage instructions.

If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section.

If you want to use this formula, please pay attention to the FORMULA file and/or git tag, which contains the currently released version. This formula is versioned according to Semantic Versioning.

See Formula Versioning Section for more details.

Commit message formatting is significant!!

Please see How to contribute for more details.

Installs and configures the vsftpd package.

Installs the vsftpd package.

This state manages the file vsftpd.conf under /etc/vsftpd (template found in "vsftpd/files"). The configuration is populated by values in "vsftpd/map.jinja" based on the package's default values (and RedHat, Debian, Suse and Arch family distribution specific values), which can then be overridden by values of the same name in pillar.

Manages the startup and running state of the vsftpd service.

Linux testing is done with kitchen-salt.

  • Ruby
  • Docker
$ gem install bundler
$ bundle install
$ bin/kitchen test [platform]

Where [platform] is the platform name defined in kitchen.yml, e.g. debian-9-2019-2-py3.

Creates the docker instance and runs the vsftpd main state, ready for testing.

Runs the inspec tests on the actual instance.

Removes the docker instance.

Runs all of the stages above in one go: i.e. destroy + converge + verify + destroy.

Gives you SSH access to the instance for manual testing.

vsftpd-formula's People

Contributors

aboe76 avatar baby-gnu avatar dafyddj avatar grandmasterv avatar javierbertoli avatar myii avatar n-rodriguez avatar nadvornik avatar noelmcloughlin avatar psladek avatar puneetk avatar rabidcicada avatar semantic-release-bot avatar themalkolm avatar vladvasiliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vsftpd-formula's Issues

secure_chroot_dir not persisting after reboot and stops VSFTPD server from starting

Hello!

I have come across an issue with this formula where a reboot of the server causes VSFTPD to not start. This is due to the secure_chroot_dir /var/run/vsftpd/empty not persisting across reboots.

Default behaviour in CentOS/RHEL 7 is that this directory will be removed on restart of the server and not be created because neither the VSFTPD package or this formula creates a systemd tempfiles config.

The software should define what directories it needs in /run (which replaced /var/run in Fedora 15) by placing a configuration file in /usr/lib/tmpfiles.d. During the boot process, systemd-tmpfiles populates /run based on that configuration.

The default VSFTPD config from the package does not include the secure_chroot_dir setting.

So we can either remove this config setting or change the formula to deploy a systemd temfiles config. I'm willing to make a patch a pull request but want feedback on which way would be preferred. I'm only using this on CentOS 7 so I'd hope others could test it on other platforms like Ubuntu.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.