cookbook 'flyway-cli', '= 0.3.1'
flyway-cli (7) Versions 0.3.1 Follow1
Installs and execute flyway cli
cookbook 'flyway-cli', '= 0.3.1', :supermarket
knife supermarket install flyway-cli
knife supermarket download flyway-cli
flyway-cli-cookbook
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
0.3.1 failed this metric