Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

flyway-cli (7) Versions 0.3.1

Installs and execute flyway cli

Policyfile
Berkshelf
Knife
cookbook 'flyway-cli', '= 0.3.1', :supermarket
cookbook 'flyway-cli', '= 0.3.1'
knife supermarket install flyway-cli
knife supermarket download flyway-cli
README
Dependencies
Quality 0%

flyway-cli-cookbook

Build Status

This cookbook configure the CLI version of the flyway tool, and support multiple databases.

Requirements

An already configured database, and a bunch of flyway migrations.

Usage

include_recipe "flyway-cli::default"

## put your migrations in node[:flyway][:migrations_path]
## run migrate

flyway_migrate

Attributes

node[:flyway][:version] = "2.1.1"
node[:flyway][:jdbc_driver][:postgresql][:version] = "9.3-1100-jdbc4"
node[:flyway][:jdbc_driver][:mysql][:version] = "5.1.28"
node[:flyway][:jdbc_driver][:jtds][:version] = "1.3.1"

node[:flyway][:confs] = {
    :default => {
        :jdbc_url => "jdbc:postgresql://localhost:5432/database",
        :jdbc_username => "username",
        :jdbc_password => "password"
    },
    :default2 => {
        :jdbc_url => "jdbc:jtds:sqlserver://localhost/database2",
        :jdbc_username => "username2",
        :jdbc_password => "password2"
    }
}

## Determines if the Opscode Java recipe is included
node[:flyway][:include_java_recipe] = true

Recipes

default

Download flyway, extract it in a folder, download jdbc driver for mysql, postgres and sql server, generate configs for the requested databases.

migrate - DEPRECATED

Use flyway_migrate resource to launch migrations for every configured database.

Authors

Giovanni Toraldo @gionn
Manuel Mazzuola @manuelmazzuola

Dependent cookbooks

ubuntu >= 0.0.0
java ~> 1.17
windows ~> 1.36.1

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric
            

0.3.1 failed this metric

FC015: Consider converting definition to a LWRP: /tmp/cook/aeef94a3030a5ec20e78596f/flyway-cli/definitions/flyway_migrate.rb:1