An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# flyway-cookbook
[![Cookbook](http://img.shields.io/cookbook/v/flyway.svg)](https://github.com/base2Services/flyway_cookbook)
[![Build Status](https://travis-ci.org/base2Services/flyway_cookbook.svg?branch=master)](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