diff options
author | Steffen Zieger <me@saz.sh> | 2012-08-15 14:04:18 +0200 |
---|---|---|
committer | Steffen Zieger <me@saz.sh> | 2012-08-15 14:04:18 +0200 |
commit | 2e035dc8d4309207cffff6600e370c51be04d9fa (patch) | |
tree | dcb24bcab5dc60ba9e7a0e05550cefa0404b19e0 /manifests/params.pp | |
parent | 768e7eb0c6c6861b000684f5f9b98298c89ef51a (diff) | |
download | puppet-pureftpd-master.tar.gz puppet-pureftpd-master.tar.bz2 |
Diffstat (limited to 'manifests/params.pp')
-rw-r--r-- | manifests/params.pp | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/manifests/params.pp b/manifests/params.pp index 911da7e..5b32e18 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -1,22 +1,34 @@ 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 $::osfamily { + 'Debian': { + case $pureftpd::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 } + case $pureftpd::virtualchroot { + true: { + $real_virtualchroot = true + } + default: { + $real_virtualchroot = false } + } } |