Open jkarns87 opened 10 years ago
Thanks, I think that:
$config_file = $::operatingsystem ? {
/(?i:RedHat|CentOS)/ => '/etc/proftpd.conf',
default => '/etc/proftpd/proftpd.conf',
}
should be enough, a (possibly puppet-linted) PR is welcomed
btw, does the package create the /etc/proftpd dir?
Good Morning Alessandro:
No the package didn't create the /etc/proftpd dir.
Besides the conf file in "/etc" these are the directories that the package created
/var/log/proftpd /var/log/proftpd/access.log /var/log/proftpd/auth.log /var/run/proftpd /var/run/proftpd/proftpd.delay /var/run/proftpd/proftpd.pid /var/run/proftpd/proftpd.scoreboard /var/run/proftpd/proftpd.sock
Thanks Joey
----- Original Message -----
From: "Alessandro Franceschi" notifications@github.com To: "example42/puppet-proftpd" puppet-proftpd@noreply.github.com Cc: "jmk61" jmk61@psu.edu Sent: Wednesday, April 2, 2014 3:05:39 PM Subject: Re: [puppet-proftpd] Config Directory on Redhat & CentOS (#3)
btw, does the package create the /etc/proftpd dir?
— Reply to this email directly or view it on GitHub .
Joseph Karns System Administrator Outreach Information Technology The Pennsylvania State University The 329 Building, Suite 306E University Park PA 16802 Phone: 814-865-7824 Mobile: 814-251-3569 E-mail: jmk61@psu.edu
On RHEL 6.5 using all defaults err: /File[proftpd.conf]/ensure: change from absent to present failed: Could not set 'present on ensure: No such file or directory - /etc/proftpd/proftpd.conf at /puppet/envs/mktwordpressdev/modules/proftpd/manifests/init.pp:358
Changed params.pp to check os and set $config_dir & $config_file to correct location.
$config_dir = $::operatingsystem ? { /(?i:RedHat|CentOS)/ => '/etc', default => '/etc/proftpd', }
$config_file = $::operatingsystem ? { /(?i:RedHat|CentOS)/ => '/etc/proftpd.conf', default => '/etc/proftpd/proftpd.conf', }