GitHub puppet-sftp_jail

Repo Checks ( 13 of 17 successfull )
Metadata Valid
No translation
passed
Correct Puppet Version Range
Supported Puppet version range is %{PUPPET_SUPPORT_RANGE}
passed
With Puppet Version Range
Puppet version range is present in requirements in metadata.json
passed
With Operatingsystem Support
No translation
passed
Supports Only Current Centos
No translation
failed
Supports Latest Centos
No translation
failed
Supports Only Current Debian
No translation
failed
Supports Latest Debian
No translation
passed
Supports Only Current Ubuntu
No translation
failed
Supports Latest Ubuntu
No translation
passed
In Modulesync Repo
Is listed as a module managed using modulesync_config
passed
Synced
Has a .msync.yml file
passed
Latest Modulesync
Has been synchronized with the latest tagged version of modulesync_config
passed
Has Modulesync
Is present in voxpupuli/modulesync_config/managed_modules.yml
passed
Released
Is in modulesync_config and in forge releases.
passed
Valid Sync File
If a (optional) sync file is present, it must not contain a `.travis.yml` entry.
passed
Reference Dot Md
The repository has a REFERENCE.md. It needs to be generated / puppet-strings documentation is missing.
passed

Open Pull Requests

Admins users subdirs

This is probably not backwards compatible. I tried to keep the existing usage scenario, but I probably failed.

What changed

  • Users can now be managed by this module.
  • Subdirectories can be created in each SFTP users home. A default can be set, so every user gets the same directory structure.
  • SFTP users can be "SFTP admins".

Details on SFTP admin vs "normal" users

Admins can access all other users data. This is generally for services which should put data into or get data from all jails. All SFTP admins share one Jail. This jail for SFTP admins is one directory above the normal users, but it is still a jail. In the admins jail, there is a home directory and each admin has it's personal home in it. Each (normal, not admin) SFTP jail is owned by a group. SFTP admins are member of all "jail groups" and can therefore access all jails.

Open PR in GitHub
create sub directories in user homes
enhancement

Pull Request (PR) description

This PR introduces the possibility to create a sub directories in user homes. Creating nested sub directories is possible.

By default no sub directories are created in any users home. Pass a list of sub directories to $sftp_jail::sub_dirs. This list is used as a default list of sub directories for all users.

If you want to create an individual list of sub directories in one users home, pass a list of sub directories to the sub_dirs parameter, when creating the user with sftp_jail::jail or sftp_jail::user respectively.

Optionally it is possible to enable merging. If enabled, the users sub directory list is merged with the default sub directory list. This is usefull, when multiple or all users do have some sub directories in common. Merging can be enabled globally by setting $sftp_jail::merge_subdirs to true. Similar to the list of sub directories, it is possible to enable or disable merging on a per user basis.

Open PR in GitHub