aboutsummaryrefslogtreecommitdiff
path: root/manifests/config.pp
blob: 19c3596e81cdc8108f606511e57420a122882767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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'],
        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'],
    }
}