Katello/katello — pull request #1353 by xsuchy (2013-01-04 12:22:45+00:00)
Title: Bug 889488 - Katello-configure is not "stable"

This will address
```
notice: /File[/var/log/katello/katello-configure]/seluser: seluser changed 'unconfined_u' to 'system_u'
notice: /Stage[main]/Candlepin::Config/Postgres::Createuser[candlepin]/Exec[createuser-candlepin]/returns: executed successfully
notice: /Stage[main]/Foreman::Config/Postgres::Createuser[foreman]/Exec[createuser-foreman]/returns: executed successfully
info: /Stage[main]/Foreman::Config/Postgres::Createuser[foreman]/Exec[createuser-foreman]: Scheduling refresh of Service[foreman]
notice: /Stage[main]/Foreman::Config/Postgres::Createdb[foreman]/Exec[createdb-foreman]/returns: executed successfully
info: /Stage[main]/Foreman::Config/Postgres::Createdb[foreman]/Exec[createdb-foreman]: Scheduling refresh of Service[foreman]
notice: /Stage[main]/Katello::Config/Postgres::Createuser[katellouser]/Exec[createuser-katellouser]/returns: executed successfully
notice: /Stage[main]/Katello::Config/Postgres::Createdb[katelloschema]/Exec[createdb-katelloschema]/returns: executed successfully
```
when running katello-configure again.

However two things remain:
```
notice: /File[/var/log/foreman/thin-log.5500.log]/mode: mode changed '644' to '640'
info: /File[/var/log/foreman]: Scheduling refresh of Service[foreman]
notice: /File[/var/log/foreman/thin-log.5501.log]/mode: mode changed '644' to '640'
info: /File[/var/log/foreman]: Scheduling refresh of Service[foreman]
notice: /Stage[main]/Foreman::Config/Exec[foreman_config]/returns: executed successfully
info: /Stage[main]/Foreman::Config/Exec[foreman_config]: Scheduling refresh of Service[foreman]
notice: /Stage[main]/Foreman::Service/Service[foreman]: Triggered 'refresh' from 3 events
```
The first is not easy to get rid of, as that log is created some time after the daemon start. And since I have migration to mod_passenger on my desk I will not spend time on this.
Second is configuration of foreman. And I do not know how to detect that foreman is already configured with the same parameters.