Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Config Directory on Redhat & CentOS #3

Open
jkarns87 opened this issue Apr 2, 2014 · 3 comments
Open

Config Directory on Redhat & CentOS #3

jkarns87 opened this issue Apr 2, 2014 · 3 comments

Comments

@jkarns87
Copy link

jkarns87 commented Apr 2, 2014

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',
}

@alvagante
Copy link
Member

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

@alvagante
Copy link
Member

btw,
does the package create the /etc/proftpd dir?

@jkarns87
Copy link
Author

jkarns87 commented Apr 3, 2014

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" [email protected]
To: "example42/puppet-proftpd" [email protected]
Cc: "jmk61" [email protected]
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: [email protected]

liquorvicar added a commit to BiffBangPow/puppet-proftpd that referenced this issue Jun 17, 2015
liquorvicar added a commit to BiffBangPow/puppet-proftpd that referenced this issue Jun 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants