Red Hat Bugzilla – Bug 819067
We should play nice with other systems that might already be using postgresql
Last modified: 2014-09-18 11:32:38 EDT
Description of problem:
When katello/cfse is installed, postgres conf files (postgresql.conf, pg_hba.conf, etc.) get overwritten. This is Not Very Nice.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install postgresql on a system
2. Modify /var/lib/pgsql/data/pg_hba.conf to have a line something like this at the bottom:
host all all 10.11.231.231/25 trust
3. yum install katello-all and katello-configure --deploy="cfse"
4. View contents of pg_hba.conf
File has been overwritten.
We should play nice with other webapps/products on the server.
The rationale outlined earlier as to why we reside in a subdirectory in apache (katello/, cfse/, etc.) and don't reside on webroot ("/") is that we have to reside nicely along other apps on the system. However, brutally wiping out db config files doesn't seem to fit that rationale.
Lets see if it's in the docs already, if not I think there might be time to release note it?
Following the uninstall would also clobber any other app on the machine that's using httpd, postgres, tomcat, etc.
We should just say "Both the SE install and uninstall clobber things like postgres, tomcat and httpd. You probably shouldn't attempt to run any other app on the same host."
We should relnote this, but it is not a 1.0 blocker.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Cloudforms 1.0 requires that Cloud Engine and System Engine each be installed on a dedicated machine. The installers for each application will overwrite existing Postgres and Apache config if any exists, among other things. This issue will be addressed in a future release.
Our installer is puppet based, we rewrite pretty big bunch of configuration files in System Engine:
$ find . -name *erb
All those configuration files are OVERWRITTEN during katello-configuration and we can't do much about it. That is how Puppet works. We do not support third party applications on the same host. If we want, we need to extend our installer with additional configuration options.
Cloud Engine do the same (the installer is also puppet based). So once we will support installation on the same host, we will need to "merge" our receipes. But the behavior will be the same - all files get OVERWRITTEN without questions. This is how Puppet works, declarative language.
This RFE is not doable in the current installer implementation. I am closing this.