Code Monkey home page Code Monkey logo

Comments (8)

plorent avatar plorent commented on August 15, 2024

No, if you do not specify it, the default.yml.erb template from the cookbook application_ruby will be used.

from application_ruby.

quentindemetz avatar quentindemetz commented on August 15, 2024

The documentation reads:

database_template: the name of the template that will be rendered to create the database.yml file; if specified it will be looked up in the application cookbook. Defaults to "database.yml.erb" from this cookbook

from application_ruby.

plorent avatar plorent commented on August 15, 2024

Yes, so 'if specified' -> you set it in the rails block in your application cookbook.
If not specified -> takes the database.yml.erb from application_ruby cookbook.

from application_ruby.

quentindemetz avatar quentindemetz commented on August 15, 2024

Understood. Your first comment mentioned default.yml.erb which was confusing. Thanks for the clarification.

from application_ruby.

plorent avatar plorent commented on August 15, 2024

That was indeed confusing. Apologies for the typo.

from application_ruby.

coderanger avatar coderanger commented on August 15, 2024

This is no longer an issue in the development version.

from application_ruby.

quentindemetz avatar quentindemetz commented on August 15, 2024

@coderanger what do you mean by that? I can't see an example where I can specify my custom template file with the latest release. A hint would me warmly welcome :)

Thanks

from application_ruby.

coderanger avatar coderanger commented on August 15, 2024

@quentindemetz You generally don't need to as the database property will convert everything inside its hash/block into the database.yml file, but you can override the default via database_config_source 'nameottemplate.erb'. You can see the default template at https://github.com/poise/application_ruby/blob/master/chef/templates/database.yml.erb

from application_ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.