[katello-devel] Update to database.yml

Ivan Nečas inecas at redhat.com
Tue Aug 30 09:11:05 UTC 2011


On 08/30/2011 10:39 AM, Lukas Zapletal wrote:
> On 08/30/2011 03:56 AM, Partha Aji wrote:
>> Any other suggestions ?. I tried to find the logic that says "if 
>> /etc/katello/database.yml exists use that" but couldn't so had to end 
>> up with this ugly version of database.yml
>
> +1 for this solution ^^^^ rather than ugly YAML ;-)
>
> I don't know how to change database.yml too :-(
>
How about adding this to config/environments/development.rb:

   paths.config.database="/etc/katello/database.yml" if 
File.exists?("/etc/katello/database.yml")

--Ivan

-- 
Regards,

  Ivan Necas
  Red Hat Czech s.r.o. Brno




More information about the katello-devel mailing list