commit
7c77a722a7
83 changed files with 723 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||||
|
name 'saz-pureftpd' |
||||
|
version '1.0.0' |
||||
|
source 'UNKNOWN' |
||||
|
author 'saz' |
||||
|
license 'UNKNOWN' |
||||
|
summary 'UNKNOWN' |
||||
|
description 'Module for configuring pure-ftpd via puppet' |
||||
|
project_page 'https://github.com/saz/puppet-pureftpd' |
@ -0,0 +1,3 @@ |
|||||
|
pureftpd |
||||
|
|
||||
|
This is the pureftpd module. |
@ -0,0 +1,22 @@ |
|||||
|
Files |
||||
|
===== |
||||
|
|
||||
|
Puppet comes with both a client and server for copying files around. The file |
||||
|
serving function is provided as part of the central Puppet daemon, |
||||
|
puppetmasterd, and the client function is used through the source attribute of |
||||
|
file objects. Learn more at |
||||
|
http://projects.puppetlabs.com/projects/puppet/wiki/File_Serving_Configuration |
||||
|
|
||||
|
You can use managed files like this: |
||||
|
|
||||
|
class myclass { |
||||
|
package { mypackage: ensure => latest } |
||||
|
service { myservice: ensure => running } |
||||
|
file { "/etc/myfile": |
||||
|
source => "puppet://$servername/modules/mymodule/myfile" |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
The files are searched for in: |
||||
|
|
||||
|
$modulepath/mymodule/files/myfile |
@ -0,0 +1 @@ |
|||||
|
#clf:/var/log/pure-ftpd/transfer.log |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
25 |
@ -0,0 +1 @@ |
|||||
|
33 |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
/etc/pure-ftpd/pureftpd.pdb |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
no |
@ -0,0 +1,23 @@ |
|||||
|
class pureftpd::config { |
||||
|
file { "${pureftpd::params::config_dir}conf": |
||||
|
ensure => directory, |
||||
|
recurse => true, |
||||
|
purge => true, |
||||
|
force => true, |
||||
|
owner => root, |
||||
|
group => root, |
||||
|
source => $source ? { |
||||
|
undef => "puppet:///modules/${module_name}/${pureftpd::params::config_source}", |
||||
|
default => $pureftpd::config_source, |
||||
|
}, |
||||
|
require => Class['pureftpd::install'], |
||||
|
} |
||||
|
|
||||
|
file { $pureftpd::params::config_default_file: |
||||
|
ensure => present, |
||||
|
owner => root, |
||||
|
group => root, |
||||
|
content => template("${module_name}/default_config.erb"), |
||||
|
require => Class['pureftpd::install'], |
||||
|
} |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
# Class: pureftpd |
||||
|
# |
||||
|
# This module manages pureftpd |
||||
|
# |
||||
|
# Parameters: |
||||
|
# |
||||
|
# Actions: |
||||
|
# |
||||
|
# Requires: |
||||
|
# |
||||
|
# Sample Usage: |
||||
|
# |
||||
|
# [Remember: No empty lines between comments and class definition] |
||||
|
class pureftpd ($auth_type = undef, $config_source = undef, $virtualchroot = false) { |
||||
|
include pureftpd::params, pureftpd::install, pureftpd::config, pureftpd::service |
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
class pureftpd::install { |
||||
|
package { $pureftpd::params::package_name: |
||||
|
ensure => present, |
||||
|
} |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
class pureftpd::params { |
||||
|
case $operatingsystem { |
||||
|
/(Ubuntu|Debian)/: { |
||||
|
case $auth_type { |
||||
|
'mysql': { $real_auth_type = '-mysql' } |
||||
|
'ldap': { $real_auth_type = '-ldap' } |
||||
|
'postgresql': { $real_auth_type = '-postgresql' } |
||||
|
default: { $real_auth_type = '' } |
||||
|
} |
||||
|
$package_name = "pure-ftpd${real_auth_type}" |
||||
|
$config_dir = '/etc/pure-ftpd/' |
||||
|
$service_name = "pure-ftpd${real_auth_type}" |
||||
|
$config_default_file = '/etc/default/pure-ftpd-common' |
||||
|
$config_source = 'debian' |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
case $pureftpd::virtualchroot { |
||||
|
true: { $real_virtualchroot = true } |
||||
|
default: { $real_virtualchroot = false } |
||||
|
} |
||||
|
} |
@ -0,0 +1,9 @@ |
|||||
|
class pureftpd::service { |
||||
|
service { $pureftpd::params::service_name: |
||||
|
ensure => running, |
||||
|
enable => true, |
||||
|
hasrestart => true, |
||||
|
hasstatus => false, |
||||
|
require => Class['pureftpd::config'], |
||||
|
} |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
/* |
||||
|
+-----------------------------------------------------------------------+ |
||||
|
| | |
||||
|
| ==> DO NOT EDIT THIS FILE! <== | |
||||
|
| | |
||||
|
| You should edit the `Modulefile` and run `puppet-module build` | |
||||
|
| to generate the `metadata.json` file for your releases. | |
||||
|
| | |
||||
|
+-----------------------------------------------------------------------+ |
||||
|
*/ |
||||
|
|
||||
|
{} |
Binary file not shown.
@ -0,0 +1,8 @@ |
|||||
|
name 'saz-pureftpd' |
||||
|
version '0.0.1' |
||||
|
source 'UNKNOWN' |
||||
|
author 'saz' |
||||
|
license 'UNKNOWN' |
||||
|
summary 'UNKNOWN' |
||||
|
description 'Module for configuring pure-ftpd via puppet' |
||||
|
project_page 'https://github.com/saz/puppet-pureftpd' |
@ -0,0 +1,3 @@ |
|||||
|
pureftpd |
||||
|
|
||||
|
This is the pureftpd module. |
@ -0,0 +1,22 @@ |
|||||
|
Files |
||||
|
===== |
||||
|
|
||||
|
Puppet comes with both a client and server for copying files around. The file |
||||
|
serving function is provided as part of the central Puppet daemon, |
||||
|
puppetmasterd, and the client function is used through the source attribute of |
||||
|
file objects. Learn more at |
||||
|
http://projects.puppetlabs.com/projects/puppet/wiki/File_Serving_Configuration |
||||
|
|
||||
|
You can use managed files like this: |
||||
|
|
||||
|
class myclass { |
||||
|
package { mypackage: ensure => latest } |
||||
|
service { myservice: ensure => running } |
||||
|
file { "/etc/myfile": |
||||
|
source => "puppet://$servername/modules/mymodule/myfile" |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
The files are searched for in: |
||||
|
|
||||
|
$modulepath/mymodule/files/myfile |
@ -0,0 +1 @@ |
|||||
|
#clf:/var/log/pure-ftpd/transfer.log |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
25 |
@ -0,0 +1 @@ |
|||||
|
33 |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
/etc/pure-ftpd/pureftpd.pdb |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
no |
@ -0,0 +1,23 @@ |
|||||
|
class pureftpd::config { |
||||
|
file { "${pureftpd::params::config_dir}conf": |
||||
|
ensure => directory, |
||||
|
recurse => true, |
||||
|
purge => true, |
||||
|
force => true, |
||||
|
owner => root, |
||||
|
group => root, |
||||
|
source => $source ? { |
||||
|
undef => "puppet:///modules/${module_name}/${pureftpd::params::config_source}", |
||||
|
default => $pureftpd::config_source, |
||||
|
}, |
||||
|
require => Class['pureftpd::install'], |
||||
|
} |
||||
|
|
||||
|
file { $pureftpd::params::config_default_file: |
||||
|
ensure => present, |
||||
|
owner => root, |
||||
|
group => root, |
||||
|
content => template("${module_name}/default_config.erb"), |
||||
|
require => Class['pureftpd::install'], |
||||
|
} |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
# Class: pureftpd |
||||
|
# |
||||
|
# This module manages pureftpd |
||||
|
# |
||||
|
# Parameters: |
||||
|
# |
||||
|
# Actions: |
||||
|
# |
||||
|
# Requires: |
||||
|
# |
||||
|
# Sample Usage: |
||||
|
# |
||||
|
# [Remember: No empty lines between comments and class definition] |
||||
|
class pureftpd ($auth_type = undef, $config_source = undef, $virtualchroot = false) { |
||||
|
include pureftpd::params, pureftpd::install, pureftpd::config, pureftpd::service |
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
class pureftpd::install { |
||||
|
package { $pureftpd::params::package_name: |
||||
|
ensure => present, |
||||
|
} |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
class pureftpd::params { |
||||
|
case $operatingsystem { |
||||
|
/(Ubuntu|Debian)/: { |
||||
|
case $auth_type { |
||||
|
'mysql': { $real_auth_type = '-mysql' } |
||||
|
'ldap': { $real_auth_type = '-ldap' } |
||||
|
'postgresql': { $real_auth_type = '-postgresql' } |
||||
|
default: { $real_auth_type = '' } |
||||
|
} |
||||
|
$package_name = "pure-ftpd${real_auth_type}" |
||||
|
$config_dir = '/etc/pure-ftpd/' |
||||
|
$service_name = "pure-ftpd${real_auth_type}" |
||||
|
$config_default_file = '/etc/default/pure-ftpd-common' |
||||
|
$config_source = 'debian' |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
case $pureftpd::virtualchroot { |
||||
|
true: { $real_virtualchroot = true } |
||||
|
default: { $real_virtualchroot = false } |
||||
|
} |
||||
|
} |
@ -0,0 +1,9 @@ |
|||||
|
class pureftpd::service { |
||||
|
service { $pureftpd::params::service_name: |
||||
|
ensure => running, |
||||
|
enable => true, |
||||
|
hasrestart => true, |
||||
|
hasstatus => false, |
||||
|
require => Class['pureftpd::config'], |
||||
|
} |
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
{ |
||||
|
"summary": "UNKNOWN", |
||||
|
"project_page": "https://github.com/saz/puppet-pureftpd", |
||||
|
"author": "saz", |
||||
|
"source": "UNKNOWN", |
||||
|
"dependencies": [ |
||||
|
|
||||
|
], |
||||
|
"checksums": { |
||||
|
"manifests/params.pp": "e7b3cf3a6115e96a6f76d3ff2c545625", |
||||
|
"files/debian/AltLog": "a3d7f89dc916062234237acf75bde97d", |
||||
|
"files/debian/MinUID": "4fbafd6948b6529caa2b78e476359875", |
||||
|
"spec/spec_helper.rb": "ca19ec4f451ebc7fdb035b52eae6e909", |
||||
|
"files/debian/NoAnonymous": "eb4585ad9fe0426781ed7c49252f8225", |
||||
|
"spec/unit/puppet/provider/README.markdown": "e52668944ee6af2fb5d5b9e798342645", |
||||
|
"files/README.markdown": "3d44458cc68d8513b51e3b56c604eec4", |
||||
|
"files/debian/DontResolve": "eb4585ad9fe0426781ed7c49252f8225", |
||||
|
"files/debian/PureDB": "6db5965698527e1f140dfc73ed40d47c", |
||||
|
"files/debian/UnixAuthentication": "eb4585ad9fe0426781ed7c49252f8225", |
||||
|
"manifests/config.pp": "9a67980c30c5d3c0c0fd9ecfb81627a8", |
||||
|
"README": "34cdc51f71f626da2194b0bbf2e6a6e6", |
||||
|
"manifests/service.pp": "722d62651e6c61da4330332b6382f5a9", |
||||
|
"templates/README.markdown": "aada0a1952329e46b98695349dba6203", |
||||
|
"templates/default_config.erb": "222945189c5b8d4efa9fe2c3cc01f435", |
||||
|
"tests/init.pp": "5d6e84bd06e23c4d565782db67e333ec", |
||||
|
"files/debian/PAMAuthentication": "eb4585ad9fe0426781ed7c49252f8225", |
||||
|
"spec/README.markdown": "32a1fc0121c28aff554ef5d422b8b51e", |
||||
|
"manifests/install.pp": "51caa25f90a479cd501824362b9bdba1", |
||||
|
"files/debian/VerboseLog": "7fa3b767c460b54a2be4d49030b349c7", |
||||
|
"files/debian/MaxClientsNumber": "2a52a5e65fc3c43f409550dfad1f904f", |
||||
|
"metadata.json": "d34d0b70aba36510fbc2df4e667479ef", |
||||
|
"files/debian/ChrootEveryone": "eb4585ad9fe0426781ed7c49252f8225", |
||||
|
"spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c", |
||||
|
"Modulefile": "001e56189832cdc6d7856a6baecd2443", |
||||
|
"manifests/init.pp": "61675a905c40641e70d6f74985fda8c8", |
||||
|
"spec/unit/puppet/type/README.markdown": "de26a7643813abd6c2e7e28071b1ef94" |
||||
|
}, |
||||
|
"license": "UNKNOWN", |
||||
|
"types": [ |
||||
|
|
||||
|
], |
||||
|
"version": "0.0.1", |
||||
|
"name": "saz-pureftpd", |
||||
|
"description": "Module for configuring pure-ftpd via puppet" |
||||
|
} |
@ -0,0 +1,7 @@ |
|||||
|
Specs |
||||
|
===== |
||||
|
|
||||
|
The Puppet project uses RSpec for testing. |
||||
|
|
||||
|
For more information on RSpec, see http://rspec.info/ |
||||
|
|
@ -0,0 +1,6 @@ |
|||||
|
--format |
||||
|
s |
||||
|
--colour |
||||
|
--loadby |
||||
|
mtime |
||||
|
--backtrace |
@ -0,0 +1,18 @@ |
|||||
|
require 'pathname' |
||||
|
dir = Pathname.new(__FILE__).parent |
||||
|
$LOAD_PATH.unshift(dir, dir + 'lib', dir + '../lib') |
||||
|
|
||||
|
require 'mocha' |
||||
|
require 'puppet' |
||||
|
gem 'rspec', '=1.2.9' |
||||
|
require 'spec/autorun' |
||||
|
|
||||
|
Spec::Runner.configure do |config| |
||||
|
config.mock_with :mocha |
||||
|
end |
||||
|
|
||||
|
# We need this because the RAL uses 'should' as a method. This |
||||
|
# allows us the same behaviour but with a different method name. |
||||
|
class Object |
||||
|
alias :must :should |
||||
|
end |
@ -0,0 +1,4 @@ |
|||||
|
Provider Specs |
||||
|
============== |
||||
|
|
||||
|
Define specs for your providers under this directory. |
@ -0,0 +1,4 @@ |
|||||
|
Resource Type Specs |
||||
|
=================== |
||||
|
|
||||
|
Define specs for your resource types in this directory. |
@ -0,0 +1,23 @@ |
|||||
|
Templates |
||||
|
========= |
||||
|
|
||||
|
Puppet supports templates and templating via ERB, which is part of the Ruby |
||||
|
standard library and is used for many other projects including Ruby on Rails. |
||||
|
Templates allow you to manage the content of template files, for example |
||||
|
configuration files that cannot yet be managed as a Puppet type. Learn more at |
||||
|
http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Templating |
||||
|
|
||||
|
You can use templates like this: |
||||
|
|
||||
|
class myclass { |
||||
|
package { mypackage: ensure => latest } |
||||
|
service { myservice: ensure => running } |
||||
|
file { "/etc/myfile": |
||||
|
content => template("mymodule/myfile.erb") |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
The templates are searched for in: |
||||
|
|
||||
|
$templatedir/mymodule/myfile.erb |
||||
|
$modulepath/mymodule/templates/myfile.erb |
@ -0,0 +1,26 @@ |
|||||
|
# Configuration for pure-ftpd |
||||
|
# (this file is sourced by /bin/sh, edit accordingly) |
||||
|
|
||||
|
# STANDALONE_OR_INETD |
||||
|
# valid values are "standalone" and "inetd". |
||||
|
# Any change here overrides the setting in debconf. |
||||
|
STANDALONE_OR_INETD=standalone |
||||
|
|
||||
|
# VIRTUALCHROOT: |
||||
|
# whether to use binary with virtualchroot support |
||||
|
# valid values are "true" or "false" |
||||
|
# Any change here overrides the setting in debconf. |
||||
|
VIRTUALCHROOT=<%= scope.lookupvar('pureftpd::params::real_virtualchroot') %> |
||||
|
|
||||
|
# UPLOADSCRIPT: if this is set and the daemon is run in standalone mode, |
||||
|
# pure-uploadscript will also be run to spawn the program given below |
||||
|
# for handling uploads. see /usr/share/doc/pure-ftpd/README.gz or |
||||
|
# pure-uploadscript(8) |
||||
|
|
||||
|
# example: UPLOADSCRIPT=/usr/local/sbin/uploadhandler.pl |
||||
|
UPLOADSCRIPT= |
||||
|
|
||||
|
# if set, pure-uploadscript will spawn $UPLOADSCRIPT running as the |
||||
|
# given uid and gid |
||||
|
UPLOADUID= |
||||
|
UPLOADGID= |
@ -0,0 +1 @@ |
|||||
|
include pureftpd |
Binary file not shown.
@ -0,0 +1,8 @@ |
|||||
|
name 'saz-pureftpd' |
||||
|
version '1.0.0' |
||||
|
source 'UNKNOWN' |
||||
|
author 'saz' |
||||
|
license 'UNKNOWN' |
||||
|
summary 'UNKNOWN' |
||||
|
description 'Module for configuring pure-ftpd via puppet' |
||||
|
project_page 'https://github.com/saz/puppet-pureftpd' |
@ -0,0 +1,3 @@ |
|||||
|
pureftpd |
||||
|
|
||||
|
This is the pureftpd module. |
@ -0,0 +1,22 @@ |
|||||
|
Files |
||||
|
===== |
||||
|
|
||||
|
Puppet comes with both a client and server for copying files around. The file |
||||
|
serving function is provided as part of the central Puppet daemon, |
||||
|
puppetmasterd, and the client function is used through the source attribute of |
||||
|
file objects. Learn more at |
||||
|
http://projects.puppetlabs.com/projects/puppet/wiki/File_Serving_Configuration |
||||
|
|
||||
|
You can use managed files like this: |
||||
|
|
||||
|
class myclass { |
||||
|
package { mypackage: ensure => latest } |
||||
|
service { myservice: ensure => running } |
||||
|
file { "/etc/myfile": |
||||
|
source => "puppet://$servername/modules/mymodule/myfile" |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
The files are searched for in: |
||||
|
|
||||
|
$modulepath/mymodule/files/myfile |
@ -0,0 +1 @@ |
|||||
|
#clf:/var/log/pure-ftpd/transfer.log |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
25 |
@ -0,0 +1 @@ |
|||||
|
33 |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
/etc/pure-ftpd/pureftpd.pdb |
@ -0,0 +1 @@ |
|||||
|
yes |
@ -0,0 +1 @@ |
|||||
|
no |
@ -0,0 +1,23 @@ |
|||||
|
class pureftpd::config { |
||||
|
file { "${pureftpd::params::config_dir}conf": |
||||
|
ensure => directory, |
||||
|
recurse => true, |
||||
|
purge => true, |
||||
|
force => true, |
||||
|
owner => root, |
||||
|
group => root, |
||||
|
source => $source ? { |
||||
|
undef => "puppet:///modules/${module_name}/${pureftpd::params::config_source}", |
||||
|
default => $pureftpd::config_source, |
||||
|
}, |
||||
|
require => Class['pureftpd::install'], |
||||
|
} |
||||
|
|
||||
|
file { $pureftpd::params::config_default_file: |
||||
|
ensure => present, |
||||
|
owner => root, |
||||
|
group => root, |
||||
|
content => template("${module_name}/default_config.erb"), |
||||
|
require => Class['pureftpd::install'], |
||||
|
} |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
# Class: pureftpd |
||||
|
# |
||||
|
# This module manages pureftpd |
||||
|
# |
||||
|
# Parameters: |
||||
|
# |
||||
|
# Actions: |
||||
|
# |
||||
|
# Requires: |
||||
|
# |
||||
|
# Sample Usage: |
||||
|
# |
||||
|
# [Remember: No empty lines between comments and class definition] |
||||
|
class pureftpd ($auth_type = undef, $config_source = undef, $virtualchroot = false) { |
||||
|
include pureftpd::params, pureftpd::install, pureftpd::config, pureftpd::service |
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
class pureftpd::install { |
||||
|
package { $pureftpd::params::package_name: |
||||
|
ensure => present, |
||||
|
} |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
class pureftpd::params { |
||||
|
case $operatingsystem { |
||||
|
/(Ubuntu|Debian)/: { |
||||
|
case $auth_type { |
||||
|
'mysql': { $real_auth_type = '-mysql' } |
||||
|
'ldap': { $real_auth_type = '-ldap' } |
||||
|
'postgresql': { $real_auth_type = '-postgresql' } |
||||
|
default: { $real_auth_type = '' } |
||||
|
} |
||||
|
$package_name = "pure-ftpd${real_auth_type}" |
||||
|
$config_dir = '/etc/pure-ftpd/' |
||||
|
$service_name = "pure-ftpd${real_auth_type}" |
||||
|
$config_default_file = '/etc/default/pure-ftpd-common' |
||||
|
$config_source = 'debian' |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
case $pureftpd::virtualchroot { |
||||
|
true: { $real_virtualchroot = true } |
||||
|
default: { $real_virtualchroot = false } |
||||
|
} |
||||
|
} |
@ -0,0 +1,9 @@ |
|||||
|
class pureftpd::service { |
||||
|
service { $pureftpd::params::service_name: |
||||
|
ensure => running, |
||||
|
enable => true, |
||||
|
hasrestart => true, |
||||
|
hasstatus => false, |
||||
|
require => Class['pureftpd::config'], |
||||
|
} |
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
{ |
||||
|
"summary": "UNKNOWN", |
||||
|
"project_page": "https://github.com/saz/puppet-pureftpd", |
||||
|
"author": "saz", |
||||
|
"source": "UNKNOWN", |
||||
|
"dependencies": [ |
||||
|
|
||||
|
], |
||||
|
"checksums": { |
||||
|
"manifests/params.pp": "e7b3cf3a6115e96a6f76d3ff2c545625", |
||||
|
"files/debian/AltLog": "a3d7f89dc916062234237acf75bde97d", |
||||
|
"files/debian/MinUID": "4fbafd6948b6529caa2b78e476359875", |
||||
|
"spec/spec_helper.rb": "ca19ec4f451ebc7fdb035b52eae6e909", |
||||
|
"files/debian/NoAnonymous": "eb4585ad9fe0426781ed7c49252f8225", |
||||
|
"spec/unit/puppet/provider/README.markdown": "e52668944ee6af2fb5d5b9e798342645", |
||||
|
"files/README.markdown": "3d44458cc68d8513b51e3b56c604eec4", |
||||
|
"files/debian/DontResolve": "eb4585ad9fe0426781ed7c49252f8225", |
||||
|
"files/debian/PureDB": "6db5965698527e1f140dfc73ed40d47c", |
||||
|
"files/debian/UnixAuthentication": "eb4585ad9fe0426781ed7c49252f8225", |
||||
|
"manifests/config.pp": "9a67980c30c5d3c0c0fd9ecfb81627a8", |
||||
|
"README": "34cdc51f71f626da2194b0bbf2e6a6e6", |
||||
|
"manifests/service.pp": "722d62651e6c61da4330332b6382f5a9", |
||||
|
"templates/README.markdown": "aada0a1952329e46b98695349dba6203", |
||||
|
"templates/default_config.erb": "222945189c5b8d4efa9fe2c3cc01f435", |
||||
|
"tests/init.pp": "5d6e84bd06e23c4d565782db67e333ec", |
||||
|
"files/debian/PAMAuthentication": "eb4585ad9fe0426781ed7c49252f8225", |
||||
|
"spec/README.markdown": "32a1fc0121c28aff554ef5d422b8b51e", |
||||
|
"manifests/install.pp": "51caa25f90a479cd501824362b9bdba1", |
||||
|
"files/debian/VerboseLog": "7fa3b767c460b54a2be4d49030b349c7", |
||||
|
"files/debian/MaxClientsNumber": "2a52a5e65fc3c43f409550dfad1f904f", |
||||
|
"metadata.json": "d34d0b70aba36510fbc2df4e667479ef", |
||||
|
"files/debian/ChrootEveryone": "eb4585ad9fe0426781ed7c49252f8225", |
||||
|
"spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c", |
||||
|
"Modulefile": "f8bddfe97a67a6d778a08b9b570a3ee1", |
||||
|
"manifests/init.pp": "61675a905c40641e70d6f74985fda8c8", |
||||
|
"spec/unit/puppet/type/README.markdown": "de26a7643813abd6c2e7e28071b1ef94" |
||||
|
}, |
||||
|
"license": "UNKNOWN", |
||||
|
"types": [ |
||||
|
|
||||
|
], |
||||
|
"version": "1.0.0", |
||||
|
"name": "saz-pureftpd", |
||||
|
"description": "Module for configuring pure-ftpd via puppet" |
||||
|
} |
@ -0,0 +1,7 @@ |
|||||
|
Specs |
||||
|
===== |
||||
|
|
||||
|
The Puppet project uses RSpec for testing. |
||||
|
|
||||
|
For more information on RSpec, see http://rspec.info/ |
||||
|
|
@ -0,0 +1,6 @@ |
|||||
|
--format |
||||
|
s |
||||
|
--colour |
||||
|
--loadby |
||||
|
mtime |
||||
|
--backtrace |
@ -0,0 +1,18 @@ |
|||||
|
require 'pathname' |
||||
|
dir = Pathname.new(__FILE__).parent |
||||
|
$LOAD_PATH.unshift(dir, dir + 'lib', dir + '../lib') |
||||
|
|
||||
|
require 'mocha' |
||||
|
require 'puppet' |
||||
|
gem 'rspec', '=1.2.9' |
||||
|
require 'spec/autorun' |
||||
|
|
||||
|
Spec::Runner.configure do |config| |
||||
|
config.mock_with :mocha |
||||
|
end |
||||
|
|
||||
|
# We need this because the RAL uses 'should' as a method. This |
||||
|
# allows us the same behaviour but with a different method name. |
||||
|
class Object |
||||
|
alias :must :should |
||||
|
end |
@ -0,0 +1,4 @@ |
|||||
|
Provider Specs |
||||
|
============== |
||||
|
|
||||
|
Define specs for your providers under this directory. |
@ -0,0 +1,4 @@ |
|||||
|
Resource Type Specs |
||||
|
=================== |
||||
|
|
||||
|
Define specs for your resource types in this directory. |
@ -0,0 +1,23 @@ |
|||||
|
Templates |
||||
|
========= |
||||
|
|
||||
|
Puppet supports templates and templating via ERB, which is part of the Ruby |
||||
|
standard library and is used for many other projects including Ruby on Rails. |
||||
|
Templates allow you to manage the content of template files, for example |
||||
|
configuration files that cannot yet be managed as a Puppet type. Learn more at |
||||
|
http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Templating |
||||
|
|
||||
|
You can use templates like this: |
||||
|
|
||||
|
class myclass { |
||||
|
package { mypackage: ensure => latest } |
||||
|
service { myservice: ensure => running } |
||||
|
file { "/etc/myfile": |
||||
|
content => template("mymodule/myfile.erb") |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
The templates are searched for in: |
||||
|
|
||||
|
$templatedir/mymodule/myfile.erb |
||||
|
$modulepath/mymodule/templates/myfile.erb |
@ -0,0 +1,26 @@ |
|||||
|
# Configuration for pure-ftpd |
||||
|
# (this file is sourced by /bin/sh, edit accordingly) |
||||
|
|
||||
|
# STANDALONE_OR_INETD |
||||
|
# valid values are "standalone" and "inetd". |
||||
|
# Any change here overrides the setting in debconf. |
||||
|
STANDALONE_OR_INETD=standalone |
||||
|
|
||||
|
# VIRTUALCHROOT: |
||||
|
# whether to use binary with virtualchroot support |
||||
|
# valid values are "true" or "false" |
||||
|
# Any change here overrides the setting in debconf. |
||||
|
VIRTUALCHROOT=<%= scope.lookupvar('pureftpd::params::real_virtualchroot') %> |
||||
|
|
||||
|
# UPLOADSCRIPT: if this is set and the daemon is run in standalone mode, |
||||
|
# pure-uploadscript will also be run to spawn the program given below |
||||
|
# for handling uploads. see /usr/share/doc/pure-ftpd/README.gz or |
||||
|
# pure-uploadscript(8) |
||||
|
|
||||
|
# example: UPLOADSCRIPT=/usr/local/sbin/uploadhandler.pl |
||||
|
UPLOADSCRIPT= |
||||
|
|
||||
|
# if set, pure-uploadscript will spawn $UPLOADSCRIPT running as the |
||||
|
# given uid and gid |
||||
|
UPLOADUID= |
||||
|
UPLOADGID= |
@ -0,0 +1 @@ |
|||||
|
include pureftpd |
@ -0,0 +1,7 @@ |
|||||
|
Specs |
||||
|
===== |
||||
|
|
||||
|
The Puppet project uses RSpec for testing. |
||||
|
|
||||
|
For more information on RSpec, see http://rspec.info/ |
||||
|
|
@ -0,0 +1,6 @@ |
|||||
|
--format |
||||
|
s |
||||
|
--colour |
||||
|
--loadby |
||||
|
mtime |
||||
|
--backtrace |
@ -0,0 +1,18 @@ |
|||||
|
require 'pathname' |
||||
|
dir = Pathname.new(__FILE__).parent |
||||
|
$LOAD_PATH.unshift(dir, dir + 'lib', dir + '../lib') |
||||
|
|
||||
|
require 'mocha' |
||||
|
require 'puppet' |
||||
|
gem 'rspec', '=1.2.9' |
||||
|
require 'spec/autorun' |
||||
|
|
||||
|
Spec::Runner.configure do |config| |
||||
|
config.mock_with :mocha |
||||
|
end |
||||
|
|
||||
|
# We need this because the RAL uses 'should' as a method. This |
||||
|
# allows us the same behaviour but with a different method name. |
||||
|
class Object |
||||
|
alias :must :should |
||||
|
end |
@ -0,0 +1,4 @@ |
|||||
|
Provider Specs |
||||
|
============== |
||||
|
|
||||
|
Define specs for your providers under this directory. |
@ -0,0 +1,4 @@ |
|||||
|
Resource Type Specs |
||||
|
=================== |
||||
|
|
||||
|
Define specs for your resource types in this directory. |
@ -0,0 +1,23 @@ |
|||||
|
Templates |
||||
|
========= |
||||
|
|
||||
|
Puppet supports templates and templating via ERB, which is part of the Ruby |
||||
|
standard library and is used for many other projects including Ruby on Rails. |
||||
|
Templates allow you to manage the content of template files, for example |
||||
|
configuration files that cannot yet be managed as a Puppet type. Learn more at |
||||
|
http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Templating |
||||
|
|
||||
|
You can use templates like this: |
||||
|
|
||||
|
class myclass { |
||||
|
package { mypackage: ensure => latest } |
||||
|
service { myservice: ensure => running } |
||||
|
file { "/etc/myfile": |
||||
|
content => template("mymodule/myfile.erb") |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
The templates are searched for in: |
||||
|
|
||||
|
$templatedir/mymodule/myfile.erb |
||||
|
$modulepath/mymodule/templates/myfile.erb |
@ -0,0 +1,26 @@ |
|||||
|
# Configuration for pure-ftpd |
||||
|
# (this file is sourced by /bin/sh, edit accordingly) |
||||
|
|
||||
|
# STANDALONE_OR_INETD |
||||
|
# valid values are "standalone" and "inetd". |
||||
|
# Any change here overrides the setting in debconf. |
||||
|
STANDALONE_OR_INETD=standalone |
||||
|
|
||||
|
# VIRTUALCHROOT: |
||||
|
# whether to use binary with virtualchroot support |
||||
|
# valid values are "true" or "false" |
||||
|
# Any change here overrides the setting in debconf. |
||||
|
VIRTUALCHROOT=<%= scope.lookupvar('pureftpd::params::real_virtualchroot') %> |
||||
|
|
||||
|
# UPLOADSCRIPT: if this is set and the daemon is run in standalone mode, |
||||
|
# pure-uploadscript will also be run to spawn the program given below |
||||
|
# for handling uploads. see /usr/share/doc/pure-ftpd/README.gz or |
||||
|
# pure-uploadscript(8) |
||||
|
|
||||
|
# example: UPLOADSCRIPT=/usr/local/sbin/uploadhandler.pl |
||||
|
UPLOADSCRIPT= |
||||
|
|
||||
|
# if set, pure-uploadscript will spawn $UPLOADSCRIPT running as the |
||||
|
# given uid and gid |
||||
|
UPLOADUID= |
||||
|
UPLOADGID= |
@ -0,0 +1 @@ |
|||||
|
include pureftpd |
Loading…
Reference in new issue