In search of File location for automation with Puppet

Neutrall

Active Member
PartnerNOC
Jul 22, 2014
27
3
53
cPanel Access Level
DataCenter Provider
We now have too many cPanel servers to manage; therefore we are setting up an automation configuration system using puppet.


So far, so good! But I’m missing some file location.


For Exim, I currently have the following files:


/etc/ exim.conf.local

/etc/ exim.conf

/etc/exim.conf.localopts



Are all of Exim configuration contain within those files? (I’m referring mainly to the basic Exim Configuration files.


For Apache, I don’t want to modify directly the httpd.conf file, but I would like to reproduce the setting for Global Configuration, Log rotation and Piped Log Configuration.


I would also like to ensure that all my server have the same password strength from the Password Strength Configuration (In Security Center)


For the other files (like CSF, MailScanner, Softacoulus, MultiPHP php.ini files) I think I got them properly figure out!


Thank you for any help you can provide to help me find the proper files!
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello @Neutrall,

You may actually find the cpconftool script useful for this purpose. It's documented at:

The cpconftool Script - Documentation - cPanel Documentation

You can utilize that tool, or browse to the "Configuration backup contents" section of that document to see a list of Exim and Apache configuration files. Note that /etc/exim.conf.localopts stores the "Basic Editor" options configured in "WHM >> Exim Configuration Manager", and /var/cpanel/cpanel.config stores the "Password Strength Configuration" value.

You may also find the following document helpful:

Installation Guide - Customize Your Installation - Documentation - cPanel Documentation

Let us know if you have any additional questions.

Thanks!