https://github.com/base2services/flyway_cookbook
A Chef cookbook for installing and configuring flywaydb database migration tool
https://github.com/base2services/flyway_cookbook
Last synced: about 1 year ago
JSON representation
A Chef cookbook for installing and configuring flywaydb database migration tool
- Host: GitHub
- URL: https://github.com/base2services/flyway_cookbook
- Owner: base2Services
- License: other
- Created: 2015-03-31T23:04:11.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-09T13:32:21.000Z (almost 10 years ago)
- Last Synced: 2025-02-01T20:46:20.216Z (over 1 year ago)
- Language: Ruby
- Homepage: https://supermarket.chef.io/cookbooks/flyway
- Size: 159 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flyway-cookbook
[](https://github.com/base2Services/flyway_cookbook)
[](https://travis-ci.org/base2Services/flyway_cookbook)
Install and configures [flywaydb](http://flywaydb.org) and allows for execution
of database migrations
## Supported Platforms
* Centos, RedHat & Amazon Linux
* Ubuntu, debian
* Windows
## Attributes
Key
Type
Description
Default
['flyway']['version']
String
the version of fly to install
3.2.1
['flyway']['install_dir']
String
the base install directory
- linux /opt
- windows C:\
['flyway']['user']
String
the owner of the flyway install
flyway
['flyway']['group']
String
the group of the flyway install
flyway
['flyway']['conf']
Hash
A hash used to create the default configuration for the flyway.conf file key values automatically get prefixed with flyway. example:
{
url: 'jdbc:mysql/localhost/mydb',
user: 'root',
password: 'changeme'
locations: 'filesystem:/myapp/db_migrations'
}
{}
## Usage
### flyway::default
Include `flyway` in your node's `run_list`:
```json
{
"run_list": [
"recipe[flyway::default]"
],
"flyway": {
"version": "3.2.1",
"install_dir":"/usr/local",
"conf": {
"url": "jdbc:mysql/localhost/mydb",
"user": "root",
"password": "changeme",
"locations": "filesystem:/myapp/db_migrations"
}
}
}
```
## License and Authors
License:: Apache License, Version 2.0
Authors::
* Aaron Walker - base2Services