diff options
author | Saz <me@saz.sh> | 2011-11-07 18:36:31 +0100 |
---|---|---|
committer | Saz <me@saz.sh> | 2011-11-07 18:36:31 +0100 |
commit | 7c77a722a783adfb80e640392018e0fe5dd987d8 (patch) | |
tree | c10dde4f0c6468a87dd1174edf9aa7dd8624aad0 /manifests/config.pp | |
download | puppet-pureftpd-7c77a722a783adfb80e640392018e0fe5dd987d8.tar.gz puppet-pureftpd-7c77a722a783adfb80e640392018e0fe5dd987d8.tar.bz2 |
initial release
Diffstat (limited to 'manifests/config.pp')
-rw-r--r-- | manifests/config.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp new file mode 100644 index 0000000..71e6bd8 --- /dev/null +++ b/manifests/config.pp @@ -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'], + } +} |