You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
class pureftpd::config {
|
|
|
|
file { "${pureftpd::params::config_dir}conf":
|
|
|
|
ensure => directory,
|
|
|
|
recurse => true,
|
|
|
|
purge => true,
|
|
|
|
force => true,
|
|
|
|
owner => root,
|
|
|
|
group => root,
|
|
|
|
source => $pureftpd::config_source ? {
|
|
|
|
undef => "puppet:///modules/${module_name}/${pureftpd::params::config_source}",
|
|
|
|
default => $pureftpd::config_source,
|
|
|
|
},
|
|
|
|
require => Class['pureftpd::install'],
|
|
|
|
notify => Class['pureftpd::service'],
|
|
|
|
}
|
|
|
|
|
|
|
|
file { $pureftpd::params::config_default_file:
|
|
|
|
ensure => present,
|
|
|
|
owner => root,
|
|
|
|
group => root,
|
|
|
|
content => template("${module_name}/default_config.erb"),
|
|
|
|
require => Class['pureftpd::install'],
|
|
|
|
notify => Class['pureftpd::service'],
|
|
|
|
}
|
|
|
|
}
|